|
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
Component xsi:type in the
types 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 |
addInterface(IInterface newInterface)
Add a interface to this Component. |
void |
addInterfaces(Collection interfaces)
Add a collection of interfaces to this Component. |
void |
clearDescription()
Clear the description from this Component. |
void |
clearId()
Remove the id attribute from this Component. |
void |
clearInterfaces()
Remove all interfaces from this Component. |
void |
clearType()
Clear the type from this Component. |
Collection |
getAllInterfaces()
Get all the interfaces from this Component. |
IDescription |
getDescription()
Get the description from this Component. |
String |
getId()
Get the id attribute from this Component. |
IInterface |
getInterface(String id)
Gets the interface from this Component with the given id. |
Collection |
getInterfaces(Collection ids)
Gets the interfaces from this Component with the given ids. |
IXMLLink |
getType()
Get the type from this Component. |
boolean |
hasAllInterfaces(Collection interfacesToCheck)
Determine if this Component contains each element in the given set of interfaces. |
boolean |
hasDescription(IDescription descriptionToCheck)
Determine if this Component has the given description |
boolean |
hasId(String id)
Determine if the id attribute on this Component has the given value. |
boolean |
hasInterface(IInterface interfaceToCheck)
Determine if this Component contains a given interface. |
Collection |
hasInterfaces(Collection interfacesToCheck)
Determine if this Component contains the given set of interfaces. |
boolean |
hasType(IXMLLink typeToCheck)
Determine if this Component has the given type |
boolean |
isEqual(IComponent ComponentToCheck)
Determine if another Component has the same id as this one. |
boolean |
isEquivalent(IComponent ComponentToCheck)
Determine if another Component is equivalent to this one, ignoring ID's. |
void |
removeInterface(IInterface interfaceToRemove)
Remove the given interface from this Component. |
void |
removeInterfaces(Collection interfaces)
Remove all the given interfaces from this Component. |
void |
setDescription(IDescription value)
Set the description for this Component. |
void |
setId(String id)
Set the id attribute on this Component. |
void |
setType(IXMLLink value)
Set the type for this Component. |
| 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 addInterface(IInterface newInterface)
newInterface - interface to add.public void addInterfaces(Collection interfaces)
interfaces - interfaces to add.public void clearInterfaces()
public void removeInterface(IInterface interfaceToRemove)
isEquivalent(...) function.
interfaceToRemove - interface to remove.public void removeInterfaces(Collection interfaces)
isEquivalent(...) function.
interfaces - interface to remove.public Collection getAllInterfaces()
public boolean hasInterface(IInterface interfaceToCheck)
true if this Component contains the given
interfaceToCheck, false otherwise.public Collection hasInterfaces(Collection interfacesToCheck)
interfacesToCheck - interfaces to check for.
java.lang.Boolean. If the ith
element in interfaces 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 hasAllInterfaces(Collection interfacesToCheck)
interfacesToCheck - interfaces to check for.
true if every element in
interfaces is found in this Component,
false otherwise.public IInterface getInterface(String id)
id - ID to look for.
null if not found.public Collection getInterfaces(Collection ids)
ids - ID to look for.
public void setType(IXMLLink value)
value - new typepublic void clearType()
public IXMLLink getType()
public boolean hasType(IXMLLink typeToCheck)
typeToCheck - type to compare
true if the types are equivalent,
false otherwisepublic boolean isEqual(IComponent ComponentToCheck)
ComponentToCheck - Component to compare with this
one.public boolean isEquivalent(IComponent ComponentToCheck)
ComponentToCheck - Component to compare to this one.
true if all the child elements of this
Component 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 | |||||||||