xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.javainitparams
Class InitializationParameterImpl

java.lang.Object
  extended byedu.uci.isr.xarch.javainitparams.InitializationParameterImpl
All Implemented Interfaces:
DOMBased, IInitializationParameter, IXArchElement

public class InitializationParameterImpl
extends Object
implements IInitializationParameter, DOMBased

DOM-Based implementation of the IInitializationParameter 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.javainitparams.IInitializationParameter
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
InitializationParameterImpl(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(IInitializationParameter c)
          Determine if another InitializationParameter 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

InitializationParameterImpl

public InitializationParameterImpl(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 IInitializationParameter
Parameters:
name - attribute value.

clearName

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

Specified by:
clearName in interface IInitializationParameter

getName

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

Specified by:
getName in interface IInitializationParameter
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 IInitializationParameter
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 IInitializationParameter
Parameters:
value - attribute value.

clearValue

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

Specified by:
clearValue in interface IInitializationParameter

getValue

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

Specified by:
getValue in interface IInitializationParameter
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 IInitializationParameter
Parameters:
value - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library