|
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.ArchTypesImpl
DOM-Based implementation of the IArchTypes interface.
| Field Summary | |
static String |
COMPONENT_TYPE_ELT_NAME
Tag name for componentTypes in this object. |
static String |
CONNECTOR_TYPE_ELT_NAME
Tag name for connectorTypes in this object. |
protected Element |
elt
|
static String |
INTERFACE_TYPE_ELT_NAME
Tag name for interfaceTypes 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.IArchTypes |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ArchTypesImpl(Element elt)
|
|
| Method Summary | |
void |
addComponentType(IComponentType newComponentType)
Add a componentType to this ArchTypes. |
void |
addComponentTypes(Collection componentTypes)
Add a collection of componentTypes to this ArchTypes. |
void |
addConnectorType(IConnectorType newConnectorType)
Add a connectorType to this ArchTypes. |
void |
addConnectorTypes(Collection connectorTypes)
Add a collection of connectorTypes to this ArchTypes. |
void |
addInterfaceType(IInterfaceType newInterfaceType)
Add a interfaceType to this ArchTypes. |
void |
addInterfaceTypes(Collection interfaceTypes)
Add a collection of interfaceTypes to this ArchTypes. |
void |
clearComponentTypes()
Remove all componentTypes from this ArchTypes. |
void |
clearConnectorTypes()
Remove all connectorTypes from this ArchTypes. |
void |
clearInterfaceTypes()
Remove all interfaceTypes from this ArchTypes. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllComponentTypes()
Get all the componentTypes from this ArchTypes. |
Collection |
getAllConnectorTypes()
Get all the connectorTypes from this ArchTypes. |
Collection |
getAllInterfaceTypes()
Get all the interfaceTypes from this ArchTypes. |
IComponentType |
getComponentType(String id)
Gets the componentType from this ArchTypes with the given id. |
Collection |
getComponentTypes(Collection ids)
Gets the componentTypes from this ArchTypes with the given ids. |
IConnectorType |
getConnectorType(String id)
Gets the connectorType from this ArchTypes with the given id. |
Collection |
getConnectorTypes(Collection ids)
Gets the connectorTypes from this ArchTypes with the given ids. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
IInterfaceType |
getInterfaceType(String id)
Gets the interfaceType from this ArchTypes with the given id. |
Collection |
getInterfaceTypes(Collection ids)
Gets the interfaceTypes from this ArchTypes with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllComponentTypes(Collection componentTypesToCheck)
Determine if this ArchTypes contains each element in the given set of componentTypes. |
boolean |
hasAllConnectorTypes(Collection connectorTypesToCheck)
Determine if this ArchTypes contains each element in the given set of connectorTypes. |
boolean |
hasAllInterfaceTypes(Collection interfaceTypesToCheck)
Determine if this ArchTypes contains each element in the given set of interfaceTypes. |
boolean |
hasComponentType(IComponentType componentTypeToCheck)
Determine if this ArchTypes contains a given componentType. |
Collection |
hasComponentTypes(Collection componentTypesToCheck)
Determine if this ArchTypes contains the given set of componentTypes. |
boolean |
hasConnectorType(IConnectorType connectorTypeToCheck)
Determine if this ArchTypes contains a given connectorType. |
Collection |
hasConnectorTypes(Collection connectorTypesToCheck)
Determine if this ArchTypes contains the given set of connectorTypes. |
int |
hashCode()
|
boolean |
hasInterfaceType(IInterfaceType interfaceTypeToCheck)
Determine if this ArchTypes contains a given interfaceType. |
Collection |
hasInterfaceTypes(Collection interfaceTypesToCheck)
Determine if this ArchTypes contains the given set of interfaceTypes. |
boolean |
isEquivalent(IArchTypes c)
Determine if another ArchTypes is equivalent to this one, ignoring ID's. |
void |
removeComponentType(IComponentType componentTypeToRemove)
Remove the given componentType from this ArchTypes. |
void |
removeComponentTypes(Collection componentTypes)
Remove all the given componentTypes from this ArchTypes. |
void |
removeConnectorType(IConnectorType connectorTypeToRemove)
Remove the given connectorType from this ArchTypes. |
void |
removeConnectorTypes(Collection connectorTypes)
Remove all the given connectorTypes from this ArchTypes. |
void |
removeInterfaceType(IInterfaceType interfaceTypeToRemove)
Remove the given interfaceType from this ArchTypes. |
void |
removeInterfaceTypes(Collection interfaceTypes)
Remove all the given interfaceTypes from this ArchTypes. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
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 COMPONENT_TYPE_ELT_NAME
public static final String CONNECTOR_TYPE_ELT_NAME
public static final String INTERFACE_TYPE_ELT_NAME
protected Element elt
| Constructor Detail |
public ArchTypesImpl(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 addComponentType(IComponentType newComponentType)
IArchTypes
addComponentType in interface IArchTypesnewComponentType - componentType to add.public void addComponentTypes(Collection componentTypes)
IArchTypes
addComponentTypes in interface IArchTypescomponentTypes - componentTypes to add.public void clearComponentTypes()
IArchTypes
clearComponentTypes in interface IArchTypespublic void removeComponentType(IComponentType componentTypeToRemove)
IArchTypesisEquivalent(...) function.
removeComponentType in interface IArchTypescomponentTypeToRemove - componentType to remove.public void removeComponentTypes(Collection componentTypes)
IArchTypesisEquivalent(...) function.
removeComponentTypes in interface IArchTypescomponentTypes - componentType to remove.public Collection getAllComponentTypes()
IArchTypes
getAllComponentTypes in interface IArchTypespublic boolean hasComponentType(IComponentType componentTypeToCheck)
IArchTypes
hasComponentType in interface IArchTypestrue if this ArchTypes contains the given
componentTypeToCheck, false otherwise.public Collection hasComponentTypes(Collection componentTypesToCheck)
IArchTypes
hasComponentTypes in interface IArchTypescomponentTypesToCheck - componentTypes to check for.
java.lang.Boolean. If the ith
element in componentTypes 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 hasAllComponentTypes(Collection componentTypesToCheck)
IArchTypes
hasAllComponentTypes in interface IArchTypescomponentTypesToCheck - componentTypes to check for.
true if every element in
componentTypes is found in this ArchTypes,
false otherwise.public IComponentType getComponentType(String id)
IArchTypes
getComponentType in interface IArchTypesid - ID to look for.
null if not found.public Collection getComponentTypes(Collection ids)
IArchTypes
getComponentTypes in interface IArchTypesids - ID to look for.
public void addConnectorType(IConnectorType newConnectorType)
IArchTypes
addConnectorType in interface IArchTypesnewConnectorType - connectorType to add.public void addConnectorTypes(Collection connectorTypes)
IArchTypes
addConnectorTypes in interface IArchTypesconnectorTypes - connectorTypes to add.public void clearConnectorTypes()
IArchTypes
clearConnectorTypes in interface IArchTypespublic void removeConnectorType(IConnectorType connectorTypeToRemove)
IArchTypesisEquivalent(...) function.
removeConnectorType in interface IArchTypesconnectorTypeToRemove - connectorType to remove.public void removeConnectorTypes(Collection connectorTypes)
IArchTypesisEquivalent(...) function.
removeConnectorTypes in interface IArchTypesconnectorTypes - connectorType to remove.public Collection getAllConnectorTypes()
IArchTypes
getAllConnectorTypes in interface IArchTypespublic boolean hasConnectorType(IConnectorType connectorTypeToCheck)
IArchTypes
hasConnectorType in interface IArchTypestrue if this ArchTypes contains the given
connectorTypeToCheck, false otherwise.public Collection hasConnectorTypes(Collection connectorTypesToCheck)
IArchTypes
hasConnectorTypes in interface IArchTypesconnectorTypesToCheck - connectorTypes to check for.
java.lang.Boolean. If the ith
element in connectorTypes 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 hasAllConnectorTypes(Collection connectorTypesToCheck)
IArchTypes
hasAllConnectorTypes in interface IArchTypesconnectorTypesToCheck - connectorTypes to check for.
true if every element in
connectorTypes is found in this ArchTypes,
false otherwise.public IConnectorType getConnectorType(String id)
IArchTypes
getConnectorType in interface IArchTypesid - ID to look for.
null if not found.public Collection getConnectorTypes(Collection ids)
IArchTypes
getConnectorTypes in interface IArchTypesids - ID to look for.
public void addInterfaceType(IInterfaceType newInterfaceType)
IArchTypes
addInterfaceType in interface IArchTypesnewInterfaceType - interfaceType to add.public void addInterfaceTypes(Collection interfaceTypes)
IArchTypes
addInterfaceTypes in interface IArchTypesinterfaceTypes - interfaceTypes to add.public void clearInterfaceTypes()
IArchTypes
clearInterfaceTypes in interface IArchTypespublic void removeInterfaceType(IInterfaceType interfaceTypeToRemove)
IArchTypesisEquivalent(...) function.
removeInterfaceType in interface IArchTypesinterfaceTypeToRemove - interfaceType to remove.public void removeInterfaceTypes(Collection interfaceTypes)
IArchTypesisEquivalent(...) function.
removeInterfaceTypes in interface IArchTypesinterfaceTypes - interfaceType to remove.public Collection getAllInterfaceTypes()
IArchTypes
getAllInterfaceTypes in interface IArchTypespublic boolean hasInterfaceType(IInterfaceType interfaceTypeToCheck)
IArchTypes
hasInterfaceType in interface IArchTypestrue if this ArchTypes contains the given
interfaceTypeToCheck, false otherwise.public Collection hasInterfaceTypes(Collection interfaceTypesToCheck)
IArchTypes
hasInterfaceTypes in interface IArchTypesinterfaceTypesToCheck - interfaceTypes to check for.
java.lang.Boolean. If the ith
element in interfaceTypes 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 hasAllInterfaceTypes(Collection interfaceTypesToCheck)
IArchTypes
hasAllInterfaceTypes in interface IArchTypesinterfaceTypesToCheck - interfaceTypes to check for.
true if every element in
interfaceTypes is found in this ArchTypes,
false otherwise.public IInterfaceType getInterfaceType(String id)
IArchTypes
getInterfaceType in interface IArchTypesid - ID to look for.
null if not found.public Collection getInterfaceTypes(Collection ids)
IArchTypes
getInterfaceTypes in interface IArchTypesids - ID to look for.
public boolean isEquivalent(IArchTypes c)
IArchTypes
isEquivalent in interface IArchTypesc - ArchTypes to compare to this one.
true if all the child elements of this
ArchTypes 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 | |||||||||