xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.messages
Class NamedPropertyImpl

java.lang.Object
  extended byedu.uci.isr.xarch.messages.NamedPropertyImpl
All Implemented Interfaces:
DOMBased, INamedProperty, IXArchElement

public class NamedPropertyImpl
extends Object
implements INamedProperty, DOMBased

DOM-Based implementation of the INamedProperty interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String NAME_ELT_NAME
          Tag name for names in this object.
static String VALUE_ELT_NAME
          Tag name for values in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.messages.INamedProperty
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
NamedPropertyImpl(Element elt)
           
 
Method Summary
 void clearName()
          Clear the name from this NamedProperty.
 void clearValue()
          Clear the value from this NamedProperty.
 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.
 IPropertyName getName()
          Get the name from this NamedProperty.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IPropertyValue getValue()
          Get the value from this NamedProperty.
 IXArch getXArch()
           
 int hashCode()
           
 boolean hasName(IPropertyName value)
          Determine if this NamedProperty has the given name
 boolean hasValue(IPropertyValue value)
          Determine if this NamedProperty has the given value
 boolean isEquivalent(INamedProperty c)
          Determine if another NamedProperty is equivalent to this one, ignoring ID's.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setName(IPropertyName value)
          Set the name for this NamedProperty.
 void setValue(IPropertyValue value)
          Set the value for this NamedProperty.
 void setXArch(IXArch xArch)
           
 
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

NAME_ELT_NAME

public static final String NAME_ELT_NAME
Tag name for names in this object.

See Also:
Constant Field Values

VALUE_ELT_NAME

public static final String VALUE_ELT_NAME
Tag name for values in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

NamedPropertyImpl

public NamedPropertyImpl(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.

setName

public void setName(IPropertyName value)
Description copied from interface: INamedProperty
Set the name for this NamedProperty.

Specified by:
setName in interface INamedProperty
Parameters:
value - new name

clearName

public void clearName()
Description copied from interface: INamedProperty
Clear the name from this NamedProperty.

Specified by:
clearName in interface INamedProperty

getName

public IPropertyName getName()
Description copied from interface: INamedProperty
Get the name from this NamedProperty.

Specified by:
getName in interface INamedProperty
Returns:
name

hasName

public boolean hasName(IPropertyName value)
Description copied from interface: INamedProperty
Determine if this NamedProperty has the given name

Specified by:
hasName in interface INamedProperty
Parameters:
value - name to compare
Returns:
true if the names are equivalent, false otherwise

setValue

public void setValue(IPropertyValue value)
Description copied from interface: INamedProperty
Set the value for this NamedProperty.

Specified by:
setValue in interface INamedProperty
Parameters:
value - new value

clearValue

public void clearValue()
Description copied from interface: INamedProperty
Clear the value from this NamedProperty.

Specified by:
clearValue in interface INamedProperty

getValue

public IPropertyValue getValue()
Description copied from interface: INamedProperty
Get the value from this NamedProperty.

Specified by:
getValue in interface INamedProperty
Returns:
value

hasValue

public boolean hasValue(IPropertyValue value)
Description copied from interface: INamedProperty
Determine if this NamedProperty has the given value

Specified by:
hasValue in interface INamedProperty
Parameters:
value - value to compare
Returns:
true if the values are equivalent, false otherwise

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library