xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.hints
Class PropertyHintImpl

java.lang.Object
  extended byedu.uci.isr.xarch.hints.PropertyHintImpl
All Implemented Interfaces:
DOMBased, IPropertyHint, IXArchElement

public class PropertyHintImpl
extends Object
implements IPropertyHint, DOMBased

DOM-Based implementation of the IPropertyHint interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String NAME_ATTR_NAME
          Tag name for names in this object.
static String VALUE_ATTR_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.hints.IPropertyHint
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
PropertyHintImpl(Element elt)
           
 
Method Summary
 void clearName()
          Removes the name attribute from this object.
 void clearValue()
          Removes the value 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.
 String getName()
          Gets the value of the name attribute on this object.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 String getValue()
          Gets the value of the value attribute on this object.
 IXArch getXArch()
           
 int hashCode()
           
 boolean hasName(String name)
          Determines if this object's name attribute has the given value.
 boolean hasValue(String value)
          Determines if this object's value attribute has the given value.
 boolean isEquivalent(IPropertyHint c)
          Determine if another PropertyHint is equivalent to this one, ignoring ID's.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setName(String name)
          Set the name attribute on this object.
 void setValue(String value)
          Set the value 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

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_ATTR_NAME

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

See Also:
Constant Field Values

VALUE_ATTR_NAME

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

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

PropertyHintImpl

public PropertyHintImpl(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(String name)
Set the name attribute on this object.

Specified by:
setName in interface IPropertyHint
Parameters:
name - attribute value.

clearName

public void clearName()
Removes the name attribute from this object.

Specified by:
clearName in interface IPropertyHint

getName

public String getName()
Gets the value of the name attribute on this object.

Specified by:
getName in interface IPropertyHint
Returns:
name attribute's value or null if that attribute is not set.

hasName

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

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

setValue

public void setValue(String value)
Set the value attribute on this object.

Specified by:
setValue in interface IPropertyHint
Parameters:
value - attribute value.

clearValue

public void clearValue()
Removes the value attribute from this object.

Specified by:
clearValue in interface IPropertyHint

getValue

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

Specified by:
getValue in interface IPropertyHint
Returns:
value attribute's value or null if that attribute is not set.

hasValue

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

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

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library