|
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.InterfaceInstanceImpl
DOM-Based implementation of the IInterfaceInstance interface.
| Field Summary | |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
static String |
DIRECTION_ELT_NAME
Tag name for directions in this object. |
protected Element |
elt
|
static String |
ID_ATTR_NAME
Tag name for ids 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.IInterfaceInstance |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
InterfaceInstanceImpl(Element elt)
|
|
| Method Summary | |
void |
clearDescription()
Clear the description from this InterfaceInstance. |
void |
clearDirection()
Clear the direction from this InterfaceInstance. |
void |
clearId()
Removes the id attribute from this object. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
IDescription |
getDescription()
Get the description from this InterfaceInstance. |
IDirection |
getDirection()
Get the direction from this InterfaceInstance. |
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. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasDescription(IDescription value)
Determine if this InterfaceInstance has the given description |
boolean |
hasDirection(IDirection value)
Determine if this InterfaceInstance has the given direction |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
isEqual(IInterfaceInstance InterfaceInstanceToCheck)
Determine if another InterfaceInstance has the same id as this one. |
boolean |
isEquivalent(IInterfaceInstance c)
Determine if another InterfaceInstance is equivalent to this one, ignoring ID's. |
void |
setDescription(IDescription value)
Set the description for this InterfaceInstance. |
void |
setDirection(IDirection value)
Set the direction for this InterfaceInstance. |
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 |
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 DIRECTION_ELT_NAME
protected Element elt
| Constructor Detail |
public InterfaceInstanceImpl(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 IInterfaceInstanceid - attribute value.public void clearId()
clearId in interface IInterfaceInstancepublic String getId()
getId in interface IInterfaceInstancenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IInterfaceInstanceid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IInterfaceInstance
setDescription in interface IInterfaceInstancevalue - new descriptionpublic void clearDescription()
IInterfaceInstance
clearDescription in interface IInterfaceInstancepublic IDescription getDescription()
IInterfaceInstance
getDescription in interface IInterfaceInstancepublic boolean hasDescription(IDescription value)
IInterfaceInstance
hasDescription in interface IInterfaceInstancevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void setDirection(IDirection value)
IInterfaceInstance
setDirection in interface IInterfaceInstancevalue - new directionpublic void clearDirection()
IInterfaceInstance
clearDirection in interface IInterfaceInstancepublic IDirection getDirection()
IInterfaceInstance
getDirection in interface IInterfaceInstancepublic boolean hasDirection(IDirection value)
IInterfaceInstance
hasDirection in interface IInterfaceInstancevalue - direction to compare
true if the directions are equivalent,
false otherwisepublic boolean isEqual(IInterfaceInstance InterfaceInstanceToCheck)
IInterfaceInstance
isEqual in interface IInterfaceInstanceInterfaceInstanceToCheck - InterfaceInstance to compare with this
one.public boolean isEquivalent(IInterfaceInstance c)
IInterfaceInstance
isEquivalent in interface IInterfaceInstancec - InterfaceInstance to compare to this one.
true if all the child elements of this
InterfaceInstance 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 | |||||||||