|
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.instance.ConnectorInstanceImpl
DOM-Based implementation of the IConnectorInstance 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_INSTANCE_ELT_NAME
Tag name for interfaceInstances in this object. |
static String |
SUB_ARCHITECTURE_ELT_NAME
Tag name for subArchitectures in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.instance.IConnectorInstance |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ConnectorInstanceImpl(Element elt)
|
|
| Method Summary | |
void |
addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
Add a interfaceInstance to this ConnectorInstance. |
void |
addInterfaceInstances(Collection interfaceInstances)
Add a collection of interfaceInstances to this ConnectorInstance. |
void |
clearDescription()
Clear the description from this ConnectorInstance. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearInterfaceInstances()
Remove all interfaceInstances from this ConnectorInstance. |
void |
clearSubArchitecture()
Clear the subArchitecture from this ConnectorInstance. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllInterfaceInstances()
Get all the interfaceInstances from this ConnectorInstance. |
IDescription |
getDescription()
Get the description from this ConnectorInstance. |
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. |
IInterfaceInstance |
getInterfaceInstance(String id)
Gets the interfaceInstance from this ConnectorInstance with the given id. |
Collection |
getInterfaceInstances(Collection ids)
Gets the interfaceInstances from this ConnectorInstance with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
ISubArchitecture |
getSubArchitecture()
Get the subArchitecture from this ConnectorInstance. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllInterfaceInstances(Collection interfaceInstancesToCheck)
Determine if this ConnectorInstance contains each element in the given set of interfaceInstances. |
boolean |
hasDescription(IDescription value)
Determine if this ConnectorInstance has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasInterfaceInstance(IInterfaceInstance interfaceInstanceToCheck)
Determine if this ConnectorInstance contains a given interfaceInstance. |
Collection |
hasInterfaceInstances(Collection interfaceInstancesToCheck)
Determine if this ConnectorInstance contains the given set of interfaceInstances. |
boolean |
hasSubArchitecture(ISubArchitecture value)
Determine if this ConnectorInstance has the given subArchitecture |
boolean |
isEqual(IConnectorInstance ConnectorInstanceToCheck)
Determine if another ConnectorInstance has the same id as this one. |
boolean |
isEquivalent(IConnectorInstance c)
Determine if another ConnectorInstance is equivalent to this one, ignoring ID's. |
void |
removeInterfaceInstance(IInterfaceInstance interfaceInstanceToRemove)
Remove the given interfaceInstance from this ConnectorInstance. |
void |
removeInterfaceInstances(Collection interfaceInstances)
Remove all the given interfaceInstances from this ConnectorInstance. |
void |
setDescription(IDescription value)
Set the description for this ConnectorInstance. |
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 |
setSubArchitecture(ISubArchitecture value)
Set the subArchitecture for this ConnectorInstance. |
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_INSTANCE_ELT_NAME
public static final String SUB_ARCHITECTURE_ELT_NAME
protected Element elt
| Constructor Detail |
public ConnectorInstanceImpl(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 IConnectorInstanceid - attribute value.public void clearId()
clearId in interface IConnectorInstancepublic String getId()
getId in interface IConnectorInstancenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IConnectorInstanceid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IConnectorInstance
setDescription in interface IConnectorInstancevalue - new descriptionpublic void clearDescription()
IConnectorInstance
clearDescription in interface IConnectorInstancepublic IDescription getDescription()
IConnectorInstance
getDescription in interface IConnectorInstancepublic boolean hasDescription(IDescription value)
IConnectorInstance
hasDescription in interface IConnectorInstancevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
IConnectorInstance
addInterfaceInstance in interface IConnectorInstancenewInterfaceInstance - interfaceInstance to add.public void addInterfaceInstances(Collection interfaceInstances)
IConnectorInstance
addInterfaceInstances in interface IConnectorInstanceinterfaceInstances - interfaceInstances to add.public void clearInterfaceInstances()
IConnectorInstance
clearInterfaceInstances in interface IConnectorInstancepublic void removeInterfaceInstance(IInterfaceInstance interfaceInstanceToRemove)
IConnectorInstanceisEquivalent(...) function.
removeInterfaceInstance in interface IConnectorInstanceinterfaceInstanceToRemove - interfaceInstance to remove.public void removeInterfaceInstances(Collection interfaceInstances)
IConnectorInstanceisEquivalent(...) function.
removeInterfaceInstances in interface IConnectorInstanceinterfaceInstances - interfaceInstance to remove.public Collection getAllInterfaceInstances()
IConnectorInstance
getAllInterfaceInstances in interface IConnectorInstancepublic boolean hasInterfaceInstance(IInterfaceInstance interfaceInstanceToCheck)
IConnectorInstance
hasInterfaceInstance in interface IConnectorInstancetrue if this ConnectorInstance contains the given
interfaceInstanceToCheck, false otherwise.public Collection hasInterfaceInstances(Collection interfaceInstancesToCheck)
IConnectorInstance
hasInterfaceInstances in interface IConnectorInstanceinterfaceInstancesToCheck - interfaceInstances to check for.
java.lang.Boolean. If the ith
element in interfaceInstances 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 hasAllInterfaceInstances(Collection interfaceInstancesToCheck)
IConnectorInstance
hasAllInterfaceInstances in interface IConnectorInstanceinterfaceInstancesToCheck - interfaceInstances to check for.
true if every element in
interfaceInstances is found in this ConnectorInstance,
false otherwise.public IInterfaceInstance getInterfaceInstance(String id)
IConnectorInstance
getInterfaceInstance in interface IConnectorInstanceid - ID to look for.
null if not found.public Collection getInterfaceInstances(Collection ids)
IConnectorInstance
getInterfaceInstances in interface IConnectorInstanceids - ID to look for.
public void setSubArchitecture(ISubArchitecture value)
IConnectorInstance
setSubArchitecture in interface IConnectorInstancevalue - new subArchitecturepublic void clearSubArchitecture()
IConnectorInstance
clearSubArchitecture in interface IConnectorInstancepublic ISubArchitecture getSubArchitecture()
IConnectorInstance
getSubArchitecture in interface IConnectorInstancepublic boolean hasSubArchitecture(ISubArchitecture value)
IConnectorInstance
hasSubArchitecture in interface IConnectorInstancevalue - subArchitecture to compare
true if the subArchitectures are equivalent,
false otherwisepublic boolean isEqual(IConnectorInstance ConnectorInstanceToCheck)
IConnectorInstance
isEqual in interface IConnectorInstanceConnectorInstanceToCheck - ConnectorInstance to compare with this
one.public boolean isEquivalent(IConnectorInstance c)
IConnectorInstance
isEquivalent in interface IConnectorInstancec - ConnectorInstance to compare to this one.
true if all the child elements of this
ConnectorInstance 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 | |||||||||