|
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.ComponentInstanceImpl
DOM-Based implementation of the IComponentInstance 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.IComponentInstance |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ComponentInstanceImpl(Element elt)
|
|
| Method Summary | |
void |
addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
Add a interfaceInstance to this ComponentInstance. |
void |
addInterfaceInstances(Collection interfaceInstances)
Add a collection of interfaceInstances to this ComponentInstance. |
void |
clearDescription()
Clear the description from this ComponentInstance. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearInterfaceInstances()
Remove all interfaceInstances from this ComponentInstance. |
void |
clearSubArchitecture()
Clear the subArchitecture from this ComponentInstance. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllInterfaceInstances()
Get all the interfaceInstances from this ComponentInstance. |
IDescription |
getDescription()
Get the description from this ComponentInstance. |
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 ComponentInstance with the given id. |
Collection |
getInterfaceInstances(Collection ids)
Gets the interfaceInstances from this ComponentInstance with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
ISubArchitecture |
getSubArchitecture()
Get the subArchitecture from this ComponentInstance. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllInterfaceInstances(Collection interfaceInstancesToCheck)
Determine if this ComponentInstance contains each element in the given set of interfaceInstances. |
boolean |
hasDescription(IDescription value)
Determine if this ComponentInstance 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 ComponentInstance contains a given interfaceInstance. |
Collection |
hasInterfaceInstances(Collection interfaceInstancesToCheck)
Determine if this ComponentInstance contains the given set of interfaceInstances. |
boolean |
hasSubArchitecture(ISubArchitecture value)
Determine if this ComponentInstance has the given subArchitecture |
boolean |
isEqual(IComponentInstance ComponentInstanceToCheck)
Determine if another ComponentInstance has the same id as this one. |
boolean |
isEquivalent(IComponentInstance c)
Determine if another ComponentInstance is equivalent to this one, ignoring ID's. |
void |
removeInterfaceInstance(IInterfaceInstance interfaceInstanceToRemove)
Remove the given interfaceInstance from this ComponentInstance. |
void |
removeInterfaceInstances(Collection interfaceInstances)
Remove all the given interfaceInstances from this ComponentInstance. |
void |
setDescription(IDescription value)
Set the description for this ComponentInstance. |
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 ComponentInstance. |
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 ComponentInstanceImpl(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 IComponentInstanceid - attribute value.public void clearId()
clearId in interface IComponentInstancepublic String getId()
getId in interface IComponentInstancenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IComponentInstanceid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IComponentInstance
setDescription in interface IComponentInstancevalue - new descriptionpublic void clearDescription()
IComponentInstance
clearDescription in interface IComponentInstancepublic IDescription getDescription()
IComponentInstance
getDescription in interface IComponentInstancepublic boolean hasDescription(IDescription value)
IComponentInstance
hasDescription in interface IComponentInstancevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
IComponentInstance
addInterfaceInstance in interface IComponentInstancenewInterfaceInstance - interfaceInstance to add.public void addInterfaceInstances(Collection interfaceInstances)
IComponentInstance
addInterfaceInstances in interface IComponentInstanceinterfaceInstances - interfaceInstances to add.public void clearInterfaceInstances()
IComponentInstance
clearInterfaceInstances in interface IComponentInstancepublic void removeInterfaceInstance(IInterfaceInstance interfaceInstanceToRemove)
IComponentInstanceisEquivalent(...) function.
removeInterfaceInstance in interface IComponentInstanceinterfaceInstanceToRemove - interfaceInstance to remove.public void removeInterfaceInstances(Collection interfaceInstances)
IComponentInstanceisEquivalent(...) function.
removeInterfaceInstances in interface IComponentInstanceinterfaceInstances - interfaceInstance to remove.public Collection getAllInterfaceInstances()
IComponentInstance
getAllInterfaceInstances in interface IComponentInstancepublic boolean hasInterfaceInstance(IInterfaceInstance interfaceInstanceToCheck)
IComponentInstance
hasInterfaceInstance in interface IComponentInstancetrue if this ComponentInstance contains the given
interfaceInstanceToCheck, false otherwise.public Collection hasInterfaceInstances(Collection interfaceInstancesToCheck)
IComponentInstance
hasInterfaceInstances in interface IComponentInstanceinterfaceInstancesToCheck - 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)
IComponentInstance
hasAllInterfaceInstances in interface IComponentInstanceinterfaceInstancesToCheck - interfaceInstances to check for.
true if every element in
interfaceInstances is found in this ComponentInstance,
false otherwise.public IInterfaceInstance getInterfaceInstance(String id)
IComponentInstance
getInterfaceInstance in interface IComponentInstanceid - ID to look for.
null if not found.public Collection getInterfaceInstances(Collection ids)
IComponentInstance
getInterfaceInstances in interface IComponentInstanceids - ID to look for.
public void setSubArchitecture(ISubArchitecture value)
IComponentInstance
setSubArchitecture in interface IComponentInstancevalue - new subArchitecturepublic void clearSubArchitecture()
IComponentInstance
clearSubArchitecture in interface IComponentInstancepublic ISubArchitecture getSubArchitecture()
IComponentInstance
getSubArchitecture in interface IComponentInstancepublic boolean hasSubArchitecture(ISubArchitecture value)
IComponentInstance
hasSubArchitecture in interface IComponentInstancevalue - subArchitecture to compare
true if the subArchitectures are equivalent,
false otherwisepublic boolean isEqual(IComponentInstance ComponentInstanceToCheck)
IComponentInstance
isEqual in interface IComponentInstanceComponentInstanceToCheck - ComponentInstance to compare with this
one.public boolean isEquivalent(IComponentInstance c)
IComponentInstance
isEquivalent in interface IComponentInstancec - ComponentInstance to compare to this one.
true if all the child elements of this
ComponentInstance 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 | |||||||||