|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for accessing objects of the
ComponentInstance xsi:type in the
instance namespace.
| Field Summary | |
static XArchTypeMetadata |
TYPE_METADATA
|
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| 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()
Remove the id attribute from this ComponentInstance. |
void |
clearInterfaceInstances()
Remove all interfaceInstances from this ComponentInstance. |
void |
clearSubArchitecture()
Clear the subArchitecture from this ComponentInstance. |
Collection |
getAllInterfaceInstances()
Get all the interfaceInstances from this ComponentInstance. |
IDescription |
getDescription()
Get the description from this ComponentInstance. |
String |
getId()
Get the id attribute from this ComponentInstance. |
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. |
ISubArchitecture |
getSubArchitecture()
Get the subArchitecture from this ComponentInstance. |
boolean |
hasAllInterfaceInstances(Collection interfaceInstancesToCheck)
Determine if this ComponentInstance contains each element in the given set of interfaceInstances. |
boolean |
hasDescription(IDescription descriptionToCheck)
Determine if this ComponentInstance has the given description |
boolean |
hasId(String id)
Determine if the id attribute on this ComponentInstance 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 subArchitectureToCheck)
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 ComponentInstanceToCheck)
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 |
setId(String id)
Set the id attribute on this ComponentInstance. |
void |
setSubArchitecture(ISubArchitecture value)
Set the subArchitecture for this ComponentInstance. |
| Methods inherited from interface edu.uci.isr.xarch.IXArchElement |
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch |
| Field Detail |
public static final XArchTypeMetadata TYPE_METADATA
| Method Detail |
public void setId(String id)
id - id
FixedValueException - if the attribute has a fixed value
and the value passed is not the fixed value.public void clearId()
public String getId()
public boolean hasId(String id)
id - Attribute value to compare
true if they match; false
otherwise.public void setDescription(IDescription value)
value - new descriptionpublic void clearDescription()
public IDescription getDescription()
public boolean hasDescription(IDescription descriptionToCheck)
descriptionToCheck - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
newInterfaceInstance - interfaceInstance to add.public void addInterfaceInstances(Collection interfaceInstances)
interfaceInstances - interfaceInstances to add.public void clearInterfaceInstances()
public void removeInterfaceInstance(IInterfaceInstance interfaceInstanceToRemove)
isEquivalent(...) function.
interfaceInstanceToRemove - interfaceInstance to remove.public void removeInterfaceInstances(Collection interfaceInstances)
isEquivalent(...) function.
interfaceInstances - interfaceInstance to remove.public Collection getAllInterfaceInstances()
public boolean hasInterfaceInstance(IInterfaceInstance interfaceInstanceToCheck)
true if this ComponentInstance contains the given
interfaceInstanceToCheck, false otherwise.public Collection hasInterfaceInstances(Collection interfaceInstancesToCheck)
interfaceInstancesToCheck - 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)
interfaceInstancesToCheck - interfaceInstances to check for.
true if every element in
interfaceInstances is found in this ComponentInstance,
false otherwise.public IInterfaceInstance getInterfaceInstance(String id)
id - ID to look for.
null if not found.public Collection getInterfaceInstances(Collection ids)
ids - ID to look for.
public void setSubArchitecture(ISubArchitecture value)
value - new subArchitecturepublic void clearSubArchitecture()
public ISubArchitecture getSubArchitecture()
public boolean hasSubArchitecture(ISubArchitecture subArchitectureToCheck)
subArchitectureToCheck - subArchitecture to compare
true if the subArchitectures are equivalent,
false otherwisepublic boolean isEqual(IComponentInstance ComponentInstanceToCheck)
ComponentInstanceToCheck - ComponentInstance to compare with this
one.public boolean isEquivalent(IComponentInstance ComponentInstanceToCheck)
ComponentInstanceToCheck - 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 | |||||||||