xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.menage
Class PositionImpl

java.lang.Object
  extended byedu.uci.isr.xarch.menage.PositionImpl
All Implemented Interfaces:
DOMBased, IPosition, IXArchElement

public class PositionImpl
extends Object
implements IPosition, DOMBased

DOM-Based implementation of the IPosition interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String X_ATTR_NAME
          Tag name for xs in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
static String Y_ATTR_NAME
          Tag name for ys in this object.
 
Fields inherited from interface edu.uci.isr.xarch.menage.IPosition
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
PositionImpl(Element elt)
           
 
Method Summary
 void clearX()
          Removes the x attribute from this object.
 void clearY()
          Removes the y attribute from this object.
 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.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 String getX()
          Gets the value of the x attribute on this object.
 IXArch getXArch()
           
 String getY()
          Gets the value of the y attribute on this object.
 int hashCode()
           
 boolean hasX(String x)
          Determines if this object's x attribute has the given value.
 boolean hasY(String y)
          Determines if this object's y attribute has the given value.
 boolean isEquivalent(IPosition c)
          Determine if another Position is equivalent to this one, ignoring ID's.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setX(String x)
          Set the x attribute on this object.
 void setXArch(IXArch xArch)
           
 void setY(String y)
          Set the y attribute on this object.
 
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

X_ATTR_NAME

public static final String X_ATTR_NAME
Tag name for xs in this object.

See Also:
Constant Field Values

Y_ATTR_NAME

public static final String Y_ATTR_NAME
Tag name for ys in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

PositionImpl

public PositionImpl(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

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

setXArch

public void setXArch(IXArch xArch)
Specified by:
setXArch in interface IXArchElement

getXArch

public IXArch getXArch()
Specified by:
getXArch in interface IXArchElement

cloneElement

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

equals

public boolean equals(Object o)

hashCode

public int hashCode()

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.

setX

public void setX(String x)
Set the x attribute on this object.

Specified by:
setX in interface IPosition
Parameters:
x - attribute value.

clearX

public void clearX()
Removes the x attribute from this object.

Specified by:
clearX in interface IPosition

getX

public String getX()
Gets the value of the x attribute on this object.

Specified by:
getX in interface IPosition
Returns:
x attribute's value or null if that attribute is not set.

hasX

public boolean hasX(String x)
Determines if this object's x attribute has the given value.

Specified by:
hasX in interface IPosition
Parameters:
x - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

setY

public void setY(String y)
Set the y attribute on this object.

Specified by:
setY in interface IPosition
Parameters:
y - attribute value.

clearY

public void clearY()
Removes the y attribute from this object.

Specified by:
clearY in interface IPosition

getY

public String getY()
Gets the value of the y attribute on this object.

Specified by:
getY in interface IPosition
Returns:
y attribute's value or null if that attribute is not set.

hasY

public boolean hasY(String y)
Determines if this object's y attribute has the given value.

Specified by:
hasY in interface IPosition
Parameters:
y - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

isEquivalent

public boolean isEquivalent(IPosition c)
Description copied from interface: IPosition
Determine if another Position is equivalent to this one, ignoring ID's.

Specified by:
isEquivalent in interface IPosition
Parameters:
c - Position to compare to this one.
Returns:
true if all the child elements of this Position are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library