|
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.ComponentImpl
DOM-Based implementation of the IComponent 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_ELT_NAME
Tag name for interfaces in this object. |
static String |
TYPE_ELT_NAME
Tag name for types 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.IComponent |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ComponentImpl(Element elt)
|
|
| 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()
Removes the id attribute from this object. |
void |
clearInterfaces()
Remove all interfaces from this Component. |
void |
clearType()
Clear the type from this Component. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllInterfaces()
Get all the interfaces from this Component. |
IDescription |
getDescription()
Get the description from this Component. |
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. |
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. |
protected static SequenceOrder |
getSequenceOrder()
|
IXMLLink |
getType()
Get the type from this Component. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllInterfaces(Collection interfacesToCheck)
Determine if this Component contains each element in the given set of interfaces. |
boolean |
hasDescription(IDescription value)
Determine if this Component has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute 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 value)
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 c)
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 |
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 |
setType(IXMLLink value)
Set the type for this Component. |
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_ELT_NAME
public static final String TYPE_ELT_NAME
protected Element elt
| Constructor Detail |
public ComponentImpl(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 IComponentid - attribute value.public void clearId()
clearId in interface IComponentpublic String getId()
getId in interface IComponentnull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IComponentid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IComponent
setDescription in interface IComponentvalue - new descriptionpublic void clearDescription()
IComponent
clearDescription in interface IComponentpublic IDescription getDescription()
IComponent
getDescription in interface IComponentpublic boolean hasDescription(IDescription value)
IComponent
hasDescription in interface IComponentvalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addInterface(IInterface newInterface)
IComponent
addInterface in interface IComponentnewInterface - interface to add.public void addInterfaces(Collection interfaces)
IComponent
addInterfaces in interface IComponentinterfaces - interfaces to add.public void clearInterfaces()
IComponent
clearInterfaces in interface IComponentpublic void removeInterface(IInterface interfaceToRemove)
IComponentisEquivalent(...) function.
removeInterface in interface IComponentinterfaceToRemove - interface to remove.public void removeInterfaces(Collection interfaces)
IComponentisEquivalent(...) function.
removeInterfaces in interface IComponentinterfaces - interface to remove.public Collection getAllInterfaces()
IComponent
getAllInterfaces in interface IComponentpublic boolean hasInterface(IInterface interfaceToCheck)
IComponent
hasInterface in interface IComponenttrue if this Component contains the given
interfaceToCheck, false otherwise.public Collection hasInterfaces(Collection interfacesToCheck)
IComponent
hasInterfaces in interface IComponentinterfacesToCheck - 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)
IComponent
hasAllInterfaces in interface IComponentinterfacesToCheck - interfaces to check for.
true if every element in
interfaces is found in this Component,
false otherwise.public IInterface getInterface(String id)
IComponent
getInterface in interface IComponentid - ID to look for.
null if not found.public Collection getInterfaces(Collection ids)
IComponent
getInterfaces in interface IComponentids - ID to look for.
public void setType(IXMLLink value)
IComponent
setType in interface IComponentvalue - new typepublic void clearType()
IComponent
clearType in interface IComponentpublic IXMLLink getType()
IComponent
getType in interface IComponentpublic boolean hasType(IXMLLink value)
IComponent
hasType in interface IComponentvalue - type to compare
true if the types are equivalent,
false otherwisepublic boolean isEqual(IComponent ComponentToCheck)
IComponent
isEqual in interface IComponentComponentToCheck - Component to compare with this
one.public boolean isEquivalent(IComponent c)
IComponent
isEquivalent in interface IComponentc - 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 | |||||||||