|
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.ArchInstanceImpl
DOM-Based implementation of the IArchInstance interface.
| Field Summary | |
static String |
COMPONENT_INSTANCE_ELT_NAME
Tag name for componentInstances in this object. |
static String |
CONNECTOR_INSTANCE_ELT_NAME
Tag name for connectorInstances in this object. |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
protected Element |
elt
|
static String |
GROUP_ELT_NAME
Tag name for groups in this object. |
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
LINK_INSTANCE_ELT_NAME
Tag name for linkInstances 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.IArchInstance |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ArchInstanceImpl(Element elt)
|
|
| Method Summary | |
void |
addComponentInstance(IComponentInstance newComponentInstance)
Add a componentInstance to this ArchInstance. |
void |
addComponentInstances(Collection componentInstances)
Add a collection of componentInstances to this ArchInstance. |
void |
addConnectorInstance(IConnectorInstance newConnectorInstance)
Add a connectorInstance to this ArchInstance. |
void |
addConnectorInstances(Collection connectorInstances)
Add a collection of connectorInstances to this ArchInstance. |
void |
addGroup(IGroup newGroup)
Add a group to this ArchInstance. |
void |
addGroups(Collection groups)
Add a collection of groups to this ArchInstance. |
void |
addLinkInstance(ILinkInstance newLinkInstance)
Add a linkInstance to this ArchInstance. |
void |
addLinkInstances(Collection linkInstances)
Add a collection of linkInstances to this ArchInstance. |
void |
clearComponentInstances()
Remove all componentInstances from this ArchInstance. |
void |
clearConnectorInstances()
Remove all connectorInstances from this ArchInstance. |
void |
clearDescription()
Clear the description from this ArchInstance. |
void |
clearGroups()
Remove all groups from this ArchInstance. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearLinkInstances()
Remove all linkInstances from this ArchInstance. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllComponentInstances()
Get all the componentInstances from this ArchInstance. |
Collection |
getAllConnectorInstances()
Get all the connectorInstances from this ArchInstance. |
Collection |
getAllGroups()
Get all the groups from this ArchInstance. |
Collection |
getAllLinkInstances()
Get all the linkInstances from this ArchInstance. |
IComponentInstance |
getComponentInstance(String id)
Gets the componentInstance from this ArchInstance with the given id. |
Collection |
getComponentInstances(Collection ids)
Gets the componentInstances from this ArchInstance with the given ids. |
IConnectorInstance |
getConnectorInstance(String id)
Gets the connectorInstance from this ArchInstance with the given id. |
Collection |
getConnectorInstances(Collection ids)
Gets the connectorInstances from this ArchInstance with the given ids. |
IDescription |
getDescription()
Get the description from this ArchInstance. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
IGroup |
getGroup(String id)
Gets the group from this ArchInstance with the given id. |
Collection |
getGroups(Collection ids)
Gets the groups from this ArchInstance with the given ids. |
String |
getId()
Gets the value of the id attribute on this object. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
ILinkInstance |
getLinkInstance(String id)
Gets the linkInstance from this ArchInstance with the given id. |
Collection |
getLinkInstances(Collection ids)
Gets the linkInstances from this ArchInstance with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllComponentInstances(Collection componentInstancesToCheck)
Determine if this ArchInstance contains each element in the given set of componentInstances. |
boolean |
hasAllConnectorInstances(Collection connectorInstancesToCheck)
Determine if this ArchInstance contains each element in the given set of connectorInstances. |
boolean |
hasAllGroups(Collection groupsToCheck)
Determine if this ArchInstance contains each element in the given set of groups. |
boolean |
hasAllLinkInstances(Collection linkInstancesToCheck)
Determine if this ArchInstance contains each element in the given set of linkInstances. |
boolean |
hasComponentInstance(IComponentInstance componentInstanceToCheck)
Determine if this ArchInstance contains a given componentInstance. |
Collection |
hasComponentInstances(Collection componentInstancesToCheck)
Determine if this ArchInstance contains the given set of componentInstances. |
boolean |
hasConnectorInstance(IConnectorInstance connectorInstanceToCheck)
Determine if this ArchInstance contains a given connectorInstance. |
Collection |
hasConnectorInstances(Collection connectorInstancesToCheck)
Determine if this ArchInstance contains the given set of connectorInstances. |
boolean |
hasDescription(IDescription value)
Determine if this ArchInstance has the given description |
boolean |
hasGroup(IGroup groupToCheck)
Determine if this ArchInstance contains a given group. |
Collection |
hasGroups(Collection groupsToCheck)
Determine if this ArchInstance contains the given set of groups. |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasLinkInstance(ILinkInstance linkInstanceToCheck)
Determine if this ArchInstance contains a given linkInstance. |
Collection |
hasLinkInstances(Collection linkInstancesToCheck)
Determine if this ArchInstance contains the given set of linkInstances. |
boolean |
isEqual(IArchInstance ArchInstanceToCheck)
Determine if another ArchInstance has the same id as this one. |
boolean |
isEquivalent(IArchInstance c)
Determine if another ArchInstance is equivalent to this one, ignoring ID's. |
void |
removeComponentInstance(IComponentInstance componentInstanceToRemove)
Remove the given componentInstance from this ArchInstance. |
void |
removeComponentInstances(Collection componentInstances)
Remove all the given componentInstances from this ArchInstance. |
void |
removeConnectorInstance(IConnectorInstance connectorInstanceToRemove)
Remove the given connectorInstance from this ArchInstance. |
void |
removeConnectorInstances(Collection connectorInstances)
Remove all the given connectorInstances from this ArchInstance. |
void |
removeGroup(IGroup groupToRemove)
Remove the given group from this ArchInstance. |
void |
removeGroups(Collection groups)
Remove all the given groups from this ArchInstance. |
void |
removeLinkInstance(ILinkInstance linkInstanceToRemove)
Remove the given linkInstance from this ArchInstance. |
void |
removeLinkInstances(Collection linkInstances)
Remove all the given linkInstances from this ArchInstance. |
void |
setDescription(IDescription value)
Set the description for this ArchInstance. |
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 |
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 COMPONENT_INSTANCE_ELT_NAME
public static final String CONNECTOR_INSTANCE_ELT_NAME
public static final String LINK_INSTANCE_ELT_NAME
public static final String GROUP_ELT_NAME
protected Element elt
| Constructor Detail |
public ArchInstanceImpl(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 IArchInstanceid - attribute value.public void clearId()
clearId in interface IArchInstancepublic String getId()
getId in interface IArchInstancenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IArchInstanceid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IArchInstance
setDescription in interface IArchInstancevalue - new descriptionpublic void clearDescription()
IArchInstance
clearDescription in interface IArchInstancepublic IDescription getDescription()
IArchInstance
getDescription in interface IArchInstancepublic boolean hasDescription(IDescription value)
IArchInstance
hasDescription in interface IArchInstancevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addComponentInstance(IComponentInstance newComponentInstance)
IArchInstance
addComponentInstance in interface IArchInstancenewComponentInstance - componentInstance to add.public void addComponentInstances(Collection componentInstances)
IArchInstance
addComponentInstances in interface IArchInstancecomponentInstances - componentInstances to add.public void clearComponentInstances()
IArchInstance
clearComponentInstances in interface IArchInstancepublic void removeComponentInstance(IComponentInstance componentInstanceToRemove)
IArchInstanceisEquivalent(...) function.
removeComponentInstance in interface IArchInstancecomponentInstanceToRemove - componentInstance to remove.public void removeComponentInstances(Collection componentInstances)
IArchInstanceisEquivalent(...) function.
removeComponentInstances in interface IArchInstancecomponentInstances - componentInstance to remove.public Collection getAllComponentInstances()
IArchInstance
getAllComponentInstances in interface IArchInstancepublic boolean hasComponentInstance(IComponentInstance componentInstanceToCheck)
IArchInstance
hasComponentInstance in interface IArchInstancetrue if this ArchInstance contains the given
componentInstanceToCheck, false otherwise.public Collection hasComponentInstances(Collection componentInstancesToCheck)
IArchInstance
hasComponentInstances in interface IArchInstancecomponentInstancesToCheck - componentInstances to check for.
java.lang.Boolean. If the ith
element in componentInstances 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 hasAllComponentInstances(Collection componentInstancesToCheck)
IArchInstance
hasAllComponentInstances in interface IArchInstancecomponentInstancesToCheck - componentInstances to check for.
true if every element in
componentInstances is found in this ArchInstance,
false otherwise.public IComponentInstance getComponentInstance(String id)
IArchInstance
getComponentInstance in interface IArchInstanceid - ID to look for.
null if not found.public Collection getComponentInstances(Collection ids)
IArchInstance
getComponentInstances in interface IArchInstanceids - ID to look for.
public void addConnectorInstance(IConnectorInstance newConnectorInstance)
IArchInstance
addConnectorInstance in interface IArchInstancenewConnectorInstance - connectorInstance to add.public void addConnectorInstances(Collection connectorInstances)
IArchInstance
addConnectorInstances in interface IArchInstanceconnectorInstances - connectorInstances to add.public void clearConnectorInstances()
IArchInstance
clearConnectorInstances in interface IArchInstancepublic void removeConnectorInstance(IConnectorInstance connectorInstanceToRemove)
IArchInstanceisEquivalent(...) function.
removeConnectorInstance in interface IArchInstanceconnectorInstanceToRemove - connectorInstance to remove.public void removeConnectorInstances(Collection connectorInstances)
IArchInstanceisEquivalent(...) function.
removeConnectorInstances in interface IArchInstanceconnectorInstances - connectorInstance to remove.public Collection getAllConnectorInstances()
IArchInstance
getAllConnectorInstances in interface IArchInstancepublic boolean hasConnectorInstance(IConnectorInstance connectorInstanceToCheck)
IArchInstance
hasConnectorInstance in interface IArchInstancetrue if this ArchInstance contains the given
connectorInstanceToCheck, false otherwise.public Collection hasConnectorInstances(Collection connectorInstancesToCheck)
IArchInstance
hasConnectorInstances in interface IArchInstanceconnectorInstancesToCheck - connectorInstances to check for.
java.lang.Boolean. If the ith
element in connectorInstances 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 hasAllConnectorInstances(Collection connectorInstancesToCheck)
IArchInstance
hasAllConnectorInstances in interface IArchInstanceconnectorInstancesToCheck - connectorInstances to check for.
true if every element in
connectorInstances is found in this ArchInstance,
false otherwise.public IConnectorInstance getConnectorInstance(String id)
IArchInstance
getConnectorInstance in interface IArchInstanceid - ID to look for.
null if not found.public Collection getConnectorInstances(Collection ids)
IArchInstance
getConnectorInstances in interface IArchInstanceids - ID to look for.
public void addLinkInstance(ILinkInstance newLinkInstance)
IArchInstance
addLinkInstance in interface IArchInstancenewLinkInstance - linkInstance to add.public void addLinkInstances(Collection linkInstances)
IArchInstance
addLinkInstances in interface IArchInstancelinkInstances - linkInstances to add.public void clearLinkInstances()
IArchInstance
clearLinkInstances in interface IArchInstancepublic void removeLinkInstance(ILinkInstance linkInstanceToRemove)
IArchInstanceisEquivalent(...) function.
removeLinkInstance in interface IArchInstancelinkInstanceToRemove - linkInstance to remove.public void removeLinkInstances(Collection linkInstances)
IArchInstanceisEquivalent(...) function.
removeLinkInstances in interface IArchInstancelinkInstances - linkInstance to remove.public Collection getAllLinkInstances()
IArchInstance
getAllLinkInstances in interface IArchInstancepublic boolean hasLinkInstance(ILinkInstance linkInstanceToCheck)
IArchInstance
hasLinkInstance in interface IArchInstancetrue if this ArchInstance contains the given
linkInstanceToCheck, false otherwise.public Collection hasLinkInstances(Collection linkInstancesToCheck)
IArchInstance
hasLinkInstances in interface IArchInstancelinkInstancesToCheck - linkInstances to check for.
java.lang.Boolean. If the ith
element in linkInstances 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 hasAllLinkInstances(Collection linkInstancesToCheck)
IArchInstance
hasAllLinkInstances in interface IArchInstancelinkInstancesToCheck - linkInstances to check for.
true if every element in
linkInstances is found in this ArchInstance,
false otherwise.public ILinkInstance getLinkInstance(String id)
IArchInstance
getLinkInstance in interface IArchInstanceid - ID to look for.
null if not found.public Collection getLinkInstances(Collection ids)
IArchInstance
getLinkInstances in interface IArchInstanceids - ID to look for.
public void addGroup(IGroup newGroup)
IArchInstance
addGroup in interface IArchInstancenewGroup - group to add.public void addGroups(Collection groups)
IArchInstance
addGroups in interface IArchInstancegroups - groups to add.public void clearGroups()
IArchInstance
clearGroups in interface IArchInstancepublic void removeGroup(IGroup groupToRemove)
IArchInstanceisEquivalent(...) function.
removeGroup in interface IArchInstancegroupToRemove - group to remove.public void removeGroups(Collection groups)
IArchInstanceisEquivalent(...) function.
removeGroups in interface IArchInstancegroups - group to remove.public Collection getAllGroups()
IArchInstance
getAllGroups in interface IArchInstancepublic boolean hasGroup(IGroup groupToCheck)
IArchInstance
hasGroup in interface IArchInstancetrue if this ArchInstance contains the given
groupToCheck, false otherwise.public Collection hasGroups(Collection groupsToCheck)
IArchInstance
hasGroups in interface IArchInstancegroupsToCheck - groups to check for.
java.lang.Boolean. If the ith
element in groups 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 hasAllGroups(Collection groupsToCheck)
IArchInstance
hasAllGroups in interface IArchInstancegroupsToCheck - groups to check for.
true if every element in
groups is found in this ArchInstance,
false otherwise.public IGroup getGroup(String id)
IArchInstance
getGroup in interface IArchInstanceid - ID to look for.
null if not found.public Collection getGroups(Collection ids)
IArchInstance
getGroups in interface IArchInstanceids - ID to look for.
public boolean isEqual(IArchInstance ArchInstanceToCheck)
IArchInstance
isEqual in interface IArchInstanceArchInstanceToCheck - ArchInstance to compare with this
one.public boolean isEquivalent(IArchInstance c)
IArchInstance
isEquivalent in interface IArchInstancec - ArchInstance to compare to this one.
true if all the child elements of this
ArchInstance 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 | |||||||||