|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.types.ConnectorImpl
DOM-Based implementation of the IConnector interface.
| Field Summary | |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
protected Element |
elt
|
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
INTERFACE_ELT_NAME
Tag name for interfaces in this object. |
static String |
TYPE_ELT_NAME
Tag name for types in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.types.IConnector |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ConnectorImpl(Element elt)
|
|
| Method Summary | |
void |
addInterface(IInterface newInterface)
Add a interface to this Connector. |
void |
addInterfaces(Collection interfaces)
Add a collection of interfaces to this Connector. |
void |
clearDescription()
Clear the description from this Connector. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearInterfaces()
Remove all interfaces from this Connector. |
void |
clearType()
Clear the type from this Connector. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllInterfaces()
Get all the interfaces from this Connector. |
IDescription |
getDescription()
Get the description from this Connector. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
String |
getId()
Gets the value of the id attribute on this object. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
IInterface |
getInterface(String id)
Gets the interface from this Connector with the given id. |
Collection |
getInterfaces(Collection ids)
Gets the interfaces from this Connector with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
IXMLLink |
getType()
Get the type from this Connector. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllInterfaces(Collection interfacesToCheck)
Determine if this Connector contains each element in the given set of interfaces. |
boolean |
hasDescription(IDescription value)
Determine if this Connector has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasInterface(IInterface interfaceToCheck)
Determine if this Connector contains a given interface. |
Collection |
hasInterfaces(Collection interfacesToCheck)
Determine if this Connector contains the given set of interfaces. |
boolean |
hasType(IXMLLink value)
Determine if this Connector has the given type |
boolean |
isEqual(IConnector ConnectorToCheck)
Determine if another Connector has the same id as this one. |
boolean |
isEquivalent(IConnector c)
Determine if another Connector is equivalent to this one, ignoring ID's. |
void |
removeInterface(IInterface interfaceToRemove)
Remove the given interface from this Connector. |
void |
removeInterfaces(Collection interfaces)
Remove all the given interfaces from this Connector. |
void |
setDescription(IDescription value)
Set the description for this Connector. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
void |
setId(String id)
Set the id attribute on this object. |
void |
setType(IXMLLink value)
Set the type for this Connector. |
void |
setXArch(IXArch xArch)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String ID_ATTR_NAME
public static final String DESCRIPTION_ELT_NAME
public static final String INTERFACE_ELT_NAME
public static final String TYPE_ELT_NAME
protected Element elt
| Constructor Detail |
public ConnectorImpl(Element elt)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic boolean equals(Object o)
public int hashCode()
public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementpublic void setId(String id)
setId in interface IConnectorid - attribute value.public void clearId()
clearId in interface IConnectorpublic String getId()
getId in interface IConnectornull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IConnectorid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IConnector
setDescription in interface IConnectorvalue - new descriptionpublic void clearDescription()
IConnector
clearDescription in interface IConnectorpublic IDescription getDescription()
IConnector
getDescription in interface IConnectorpublic boolean hasDescription(IDescription value)
IConnector
hasDescription in interface IConnectorvalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addInterface(IInterface newInterface)
IConnector
addInterface in interface IConnectornewInterface - interface to add.public void addInterfaces(Collection interfaces)
IConnector
addInterfaces in interface IConnectorinterfaces - interfaces to add.public void clearInterfaces()
IConnector
clearInterfaces in interface IConnectorpublic void removeInterface(IInterface interfaceToRemove)
IConnectorisEquivalent(...) function.
removeInterface in interface IConnectorinterfaceToRemove - interface to remove.public void removeInterfaces(Collection interfaces)
IConnectorisEquivalent(...) function.
removeInterfaces in interface IConnectorinterfaces - interface to remove.public Collection getAllInterfaces()
IConnector
getAllInterfaces in interface IConnectorpublic boolean hasInterface(IInterface interfaceToCheck)
IConnector
hasInterface in interface IConnectortrue if this Connector contains the given
interfaceToCheck, false otherwise.public Collection hasInterfaces(Collection interfacesToCheck)
IConnector
hasInterfaces in interface IConnectorinterfacesToCheck - interfaces to check for.
java.lang.Boolean. If the ith
element in interfaces was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllInterfaces(Collection interfacesToCheck)
IConnector
hasAllInterfaces in interface IConnectorinterfacesToCheck - interfaces to check for.
true if every element in
interfaces is found in this Connector,
false otherwise.public IInterface getInterface(String id)
IConnector
getInterface in interface IConnectorid - ID to look for.
null if not found.public Collection getInterfaces(Collection ids)
IConnector
getInterfaces in interface IConnectorids - ID to look for.
public void setType(IXMLLink value)
IConnector
setType in interface IConnectorvalue - new typepublic void clearType()
IConnector
clearType in interface IConnectorpublic IXMLLink getType()
IConnector
getType in interface IConnectorpublic boolean hasType(IXMLLink value)
IConnector
hasType in interface IConnectorvalue - type to compare
true if the types are equivalent,
false otherwisepublic boolean isEqual(IConnector ConnectorToCheck)
IConnector
isEqual in interface IConnectorConnectorToCheck - Connector to compare with this
one.public boolean isEquivalent(IConnector c)
IConnector
isEquivalent in interface IConnectorc - Connector to compare to this one.
true if all the child elements of this
Connector are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||