xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.instance
Class DirectionImpl

java.lang.Object
  extended byedu.uci.isr.xarch.instance.DirectionImpl
All Implemented Interfaces:
DOMBased, IDirection, IXArchElement

public class DirectionImpl
extends Object
implements IDirection, DOMBased

DOM-Based implementation of the IDirection interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.instance.IDirection
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
DirectionImpl(Element elt)
           
 
Method Summary
 void clearValue()
          Remove the value for this Direction.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 String getValue()
          Get the value for this Direction.
 IXArch getXArch()
          Gets the xArch element that is the document element of the document that is this object's context.
 int hashCode()
           
 boolean hasValue(String value)
          Determine if this Direction has the given value.
 boolean isEquivalent(IDirection DirectionToCheck)
          Determine if another Direction is equivalent to this one.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setValue(String value)
          Set the value for this Direction.
 void setXArch(IXArch xArch)
          Set the xArch element that is the document element of the document that is this object's context.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_TYPE_NSURI

public static final String XSD_TYPE_NSURI
See Also:
Constant Field Values

XSD_TYPE_NAME

public static final String XSD_TYPE_NAME
See Also:
Constant Field Values

xArch

protected IXArch xArch

elt

protected Element elt
Constructor Detail

DirectionImpl

public DirectionImpl(Element elt)
Method Detail

getDOMNode

public Node getDOMNode()
Description copied from interface: DOMBased
Gets the DOM node on which this implementation is based.

Specified by:
getDOMNode in interface DOMBased
Returns:
DOM node

setDOMNode

public void setDOMNode(Node node)
Description copied from interface: DOMBased
Sets the DOM node on which this implementation is based.

Specified by:
setDOMNode in interface DOMBased
Parameters:
node - DOM node

equals

public boolean equals(Object o)

hashCode

public int hashCode()

setXArch

public void setXArch(IXArch xArch)
Set the xArch element that is the document element of the document that is this object's context.

Specified by:
setXArch in interface IXArchElement
Parameters:
xArch - XArch document element for this element.

getXArch

public IXArch getXArch()
Gets the xArch element that is the document element of the document that is this object's context.

Specified by:
getXArch in interface IXArchElement
Returns:
XArch document element for this element.

cloneElement

public IXArchElement cloneElement(int depth)
Specified by:
cloneElement in interface IXArchElement

setValue

public void setValue(String value)
Description copied from interface: IDirection
Set the value for this Direction.

Specified by:
setValue in interface IDirection
Parameters:
value - Value to set.

clearValue

public void clearValue()
Description copied from interface: IDirection
Remove the value for this Direction.

Specified by:
clearValue in interface IDirection

getValue

public String getValue()
Description copied from interface: IDirection
Get the value for this Direction.

Specified by:
getValue in interface IDirection
Returns:
value

hasValue

public boolean hasValue(String value)
Description copied from interface: IDirection
Determine if this Direction has the given value. Matching is done by string equality.

Specified by:
hasValue in interface IDirection
Returns:
true if they match, false otherwise.

isEquivalent

public boolean isEquivalent(IDirection DirectionToCheck)
Description copied from interface: IDirection
Determine if another Direction is equivalent to this one.

Specified by:
isEquivalent in interface IDirection
Parameters:
DirectionToCheck - Direction to compare against this one.
Returns:
true if their values are equivalent, false otherwise.

getTypeMetadata

public XArchTypeMetadata getTypeMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the xsi:type of this element.

Specified by:
getTypeMetadata in interface IXArchElement
Returns:
metadata describing the xsi:type of this element.

getInstanceMetadata

public XArchInstanceMetadata getInstanceMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the instance of this element.

Specified by:
getInstanceMetadata in interface IXArchElement
Returns:
metadata describing the instance of this element.

xArch/xADL 2.0 Data Binding Library