|
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.ArchStructureImpl
DOM-Based implementation of the IArchStructure interface.
| Field Summary | |
static String |
COMPONENT_ELT_NAME
Tag name for components in this object. |
static String |
CONNECTOR_ELT_NAME
Tag name for connectors 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_ELT_NAME
Tag name for links 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.IArchStructure |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ArchStructureImpl(Element elt)
|
|
| Method Summary | |
void |
addComponent(IComponent newComponent)
Add a component to this ArchStructure. |
void |
addComponents(Collection components)
Add a collection of components to this ArchStructure. |
void |
addConnector(IConnector newConnector)
Add a connector to this ArchStructure. |
void |
addConnectors(Collection connectors)
Add a collection of connectors to this ArchStructure. |
void |
addGroup(IGroup newGroup)
Add a group to this ArchStructure. |
void |
addGroups(Collection groups)
Add a collection of groups to this ArchStructure. |
void |
addLink(ILink newLink)
Add a link to this ArchStructure. |
void |
addLinks(Collection links)
Add a collection of links to this ArchStructure. |
void |
clearComponents()
Remove all components from this ArchStructure. |
void |
clearConnectors()
Remove all connectors from this ArchStructure. |
void |
clearDescription()
Clear the description from this ArchStructure. |
void |
clearGroups()
Remove all groups from this ArchStructure. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearLinks()
Remove all links from this ArchStructure. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllComponents()
Get all the components from this ArchStructure. |
Collection |
getAllConnectors()
Get all the connectors from this ArchStructure. |
Collection |
getAllGroups()
Get all the groups from this ArchStructure. |
Collection |
getAllLinks()
Get all the links from this ArchStructure. |
IComponent |
getComponent(String id)
Gets the component from this ArchStructure with the given id. |
Collection |
getComponents(Collection ids)
Gets the components from this ArchStructure with the given ids. |
IConnector |
getConnector(String id)
Gets the connector from this ArchStructure with the given id. |
Collection |
getConnectors(Collection ids)
Gets the connectors from this ArchStructure with the given ids. |
IDescription |
getDescription()
Get the description from this ArchStructure. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
IGroup |
getGroup(String id)
Gets the group from this ArchStructure with the given id. |
Collection |
getGroups(Collection ids)
Gets the groups from this ArchStructure 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. |
ILink |
getLink(String id)
Gets the link from this ArchStructure with the given id. |
Collection |
getLinks(Collection ids)
Gets the links from this ArchStructure with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllComponents(Collection componentsToCheck)
Determine if this ArchStructure contains each element in the given set of components. |
boolean |
hasAllConnectors(Collection connectorsToCheck)
Determine if this ArchStructure contains each element in the given set of connectors. |
boolean |
hasAllGroups(Collection groupsToCheck)
Determine if this ArchStructure contains each element in the given set of groups. |
boolean |
hasAllLinks(Collection linksToCheck)
Determine if this ArchStructure contains each element in the given set of links. |
boolean |
hasComponent(IComponent componentToCheck)
Determine if this ArchStructure contains a given component. |
Collection |
hasComponents(Collection componentsToCheck)
Determine if this ArchStructure contains the given set of components. |
boolean |
hasConnector(IConnector connectorToCheck)
Determine if this ArchStructure contains a given connector. |
Collection |
hasConnectors(Collection connectorsToCheck)
Determine if this ArchStructure contains the given set of connectors. |
boolean |
hasDescription(IDescription value)
Determine if this ArchStructure has the given description |
boolean |
hasGroup(IGroup groupToCheck)
Determine if this ArchStructure contains a given group. |
Collection |
hasGroups(Collection groupsToCheck)
Determine if this ArchStructure contains the given set of groups. |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasLink(ILink linkToCheck)
Determine if this ArchStructure contains a given link. |
Collection |
hasLinks(Collection linksToCheck)
Determine if this ArchStructure contains the given set of links. |
boolean |
isEqual(IArchStructure ArchStructureToCheck)
Determine if another ArchStructure has the same id as this one. |
boolean |
isEquivalent(IArchStructure c)
Determine if another ArchStructure is equivalent to this one, ignoring ID's. |
void |
removeComponent(IComponent componentToRemove)
Remove the given component from this ArchStructure. |
void |
removeComponents(Collection components)
Remove all the given components from this ArchStructure. |
void |
removeConnector(IConnector connectorToRemove)
Remove the given connector from this ArchStructure. |
void |
removeConnectors(Collection connectors)
Remove all the given connectors from this ArchStructure. |
void |
removeGroup(IGroup groupToRemove)
Remove the given group from this ArchStructure. |
void |
removeGroups(Collection groups)
Remove all the given groups from this ArchStructure. |
void |
removeLink(ILink linkToRemove)
Remove the given link from this ArchStructure. |
void |
removeLinks(Collection links)
Remove all the given links from this ArchStructure. |
void |
setDescription(IDescription value)
Set the description for this ArchStructure. |
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_ELT_NAME
public static final String CONNECTOR_ELT_NAME
public static final String LINK_ELT_NAME
public static final String GROUP_ELT_NAME
protected Element elt
| Constructor Detail |
public ArchStructureImpl(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 IArchStructureid - attribute value.public void clearId()
clearId in interface IArchStructurepublic String getId()
getId in interface IArchStructurenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IArchStructureid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IArchStructure
setDescription in interface IArchStructurevalue - new descriptionpublic void clearDescription()
IArchStructure
clearDescription in interface IArchStructurepublic IDescription getDescription()
IArchStructure
getDescription in interface IArchStructurepublic boolean hasDescription(IDescription value)
IArchStructure
hasDescription in interface IArchStructurevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addComponent(IComponent newComponent)
IArchStructure
addComponent in interface IArchStructurenewComponent - component to add.public void addComponents(Collection components)
IArchStructure
addComponents in interface IArchStructurecomponents - components to add.public void clearComponents()
IArchStructure
clearComponents in interface IArchStructurepublic void removeComponent(IComponent componentToRemove)
IArchStructureisEquivalent(...) function.
removeComponent in interface IArchStructurecomponentToRemove - component to remove.public void removeComponents(Collection components)
IArchStructureisEquivalent(...) function.
removeComponents in interface IArchStructurecomponents - component to remove.public Collection getAllComponents()
IArchStructure
getAllComponents in interface IArchStructurepublic boolean hasComponent(IComponent componentToCheck)
IArchStructure
hasComponent in interface IArchStructuretrue if this ArchStructure contains the given
componentToCheck, false otherwise.public Collection hasComponents(Collection componentsToCheck)
IArchStructure
hasComponents in interface IArchStructurecomponentsToCheck - components to check for.
java.lang.Boolean. If the ith
element in components 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 hasAllComponents(Collection componentsToCheck)
IArchStructure
hasAllComponents in interface IArchStructurecomponentsToCheck - components to check for.
true if every element in
components is found in this ArchStructure,
false otherwise.public IComponent getComponent(String id)
IArchStructure
getComponent in interface IArchStructureid - ID to look for.
null if not found.public Collection getComponents(Collection ids)
IArchStructure
getComponents in interface IArchStructureids - ID to look for.
public void addConnector(IConnector newConnector)
IArchStructure
addConnector in interface IArchStructurenewConnector - connector to add.public void addConnectors(Collection connectors)
IArchStructure
addConnectors in interface IArchStructureconnectors - connectors to add.public void clearConnectors()
IArchStructure
clearConnectors in interface IArchStructurepublic void removeConnector(IConnector connectorToRemove)
IArchStructureisEquivalent(...) function.
removeConnector in interface IArchStructureconnectorToRemove - connector to remove.public void removeConnectors(Collection connectors)
IArchStructureisEquivalent(...) function.
removeConnectors in interface IArchStructureconnectors - connector to remove.public Collection getAllConnectors()
IArchStructure
getAllConnectors in interface IArchStructurepublic boolean hasConnector(IConnector connectorToCheck)
IArchStructure
hasConnector in interface IArchStructuretrue if this ArchStructure contains the given
connectorToCheck, false otherwise.public Collection hasConnectors(Collection connectorsToCheck)
IArchStructure
hasConnectors in interface IArchStructureconnectorsToCheck - connectors to check for.
java.lang.Boolean. If the ith
element in connectors 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 hasAllConnectors(Collection connectorsToCheck)
IArchStructure
hasAllConnectors in interface IArchStructureconnectorsToCheck - connectors to check for.
true if every element in
connectors is found in this ArchStructure,
false otherwise.public IConnector getConnector(String id)
IArchStructure
getConnector in interface IArchStructureid - ID to look for.
null if not found.public Collection getConnectors(Collection ids)
IArchStructure
getConnectors in interface IArchStructureids - ID to look for.
public void addLink(ILink newLink)
IArchStructure
addLink in interface IArchStructurenewLink - link to add.public void addLinks(Collection links)
IArchStructure
addLinks in interface IArchStructurelinks - links to add.public void clearLinks()
IArchStructure
clearLinks in interface IArchStructurepublic void removeLink(ILink linkToRemove)
IArchStructureisEquivalent(...) function.
removeLink in interface IArchStructurelinkToRemove - link to remove.public void removeLinks(Collection links)
IArchStructureisEquivalent(...) function.
removeLinks in interface IArchStructurelinks - link to remove.public Collection getAllLinks()
IArchStructure
getAllLinks in interface IArchStructurepublic boolean hasLink(ILink linkToCheck)
IArchStructure
hasLink in interface IArchStructuretrue if this ArchStructure contains the given
linkToCheck, false otherwise.public Collection hasLinks(Collection linksToCheck)
IArchStructure
hasLinks in interface IArchStructurelinksToCheck - links to check for.
java.lang.Boolean. If the ith
element in links 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 hasAllLinks(Collection linksToCheck)
IArchStructure
hasAllLinks in interface IArchStructurelinksToCheck - links to check for.
true if every element in
links is found in this ArchStructure,
false otherwise.public ILink getLink(String id)
IArchStructure
getLink in interface IArchStructureid - ID to look for.
null if not found.public Collection getLinks(Collection ids)
IArchStructure
getLinks in interface IArchStructureids - ID to look for.
public void addGroup(IGroup newGroup)
IArchStructure
addGroup in interface IArchStructurenewGroup - group to add.public void addGroups(Collection groups)
IArchStructure
addGroups in interface IArchStructuregroups - groups to add.public void clearGroups()
IArchStructure
clearGroups in interface IArchStructurepublic void removeGroup(IGroup groupToRemove)
IArchStructureisEquivalent(...) function.
removeGroup in interface IArchStructuregroupToRemove - group to remove.public void removeGroups(Collection groups)
IArchStructureisEquivalent(...) function.
removeGroups in interface IArchStructuregroups - group to remove.public Collection getAllGroups()
IArchStructure
getAllGroups in interface IArchStructurepublic boolean hasGroup(IGroup groupToCheck)
IArchStructure
hasGroup in interface IArchStructuretrue if this ArchStructure contains the given
groupToCheck, false otherwise.public Collection hasGroups(Collection groupsToCheck)
IArchStructure
hasGroups in interface IArchStructuregroupsToCheck - 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)
IArchStructure
hasAllGroups in interface IArchStructuregroupsToCheck - groups to check for.
true if every element in
groups is found in this ArchStructure,
false otherwise.public IGroup getGroup(String id)
IArchStructure
getGroup in interface IArchStructureid - ID to look for.
null if not found.public Collection getGroups(Collection ids)
IArchStructure
getGroups in interface IArchStructureids - ID to look for.
public boolean isEqual(IArchStructure ArchStructureToCheck)
IArchStructure
isEqual in interface IArchStructureArchStructureToCheck - ArchStructure to compare with this
one.public boolean isEquivalent(IArchStructure c)
IArchStructure
isEquivalent in interface IArchStructurec - ArchStructure to compare to this one.
true if all the child elements of this
ArchStructure 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 | |||||||||