xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.instance
Class XMLLinkImpl

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

public class XMLLinkImpl
extends Object
implements IXMLLink, DOMBased

DOM-Based implementation of the IXMLLink interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String HREF_ATTR_NAME
          Tag name for hrefs in this object.
static String TYPE_ATTR_NAME
          Tag name for types in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.instance.IXMLLink
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
XMLLinkImpl(Element elt)
           
 
Method Summary
 void clearHref()
          Removes the href attribute from this object.
 void clearType()
          Removes the type attribute from this object.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 String getHref()
          Gets the value of the href attribute on this object.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
protected static SequenceOrder getSequenceOrder()
           
 String getType()
          Gets the value of the type attribute on this object.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 int hashCode()
           
 boolean hasHref(String href)
          Determines if this object's href attribute has the given value.
 boolean hasType(String type)
          Determines if this object's type attribute has the given value.
 boolean isEquivalent(IXMLLink c)
          Determine if another XMLLink is equivalent to this one, ignoring ID's.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setHref(String href)
          Set the href attribute on this object.
 void setType(String type)
          Set the type 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

TYPE_ATTR_NAME

public static final String TYPE_ATTR_NAME
Tag name for types in this object.

See Also:
Constant Field Values

HREF_ATTR_NAME

public static final String HREF_ATTR_NAME
Tag name for hrefs in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

XMLLinkImpl

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

setType

public void setType(String type)
Set the type attribute on this object.

Specified by:
setType in interface IXMLLink
Parameters:
type - attribute value.

clearType

public void clearType()
Removes the type attribute from this object.

Specified by:
clearType in interface IXMLLink

getType

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

Specified by:
getType in interface IXMLLink
Returns:
type attribute's value or null if that attribute is not set.

hasType

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

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

setHref

public void setHref(String href)
Set the href attribute on this object.

Specified by:
setHref in interface IXMLLink
Parameters:
href - attribute value.

clearHref

public void clearHref()
Removes the href attribute from this object.

Specified by:
clearHref in interface IXMLLink

getHref

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

Specified by:
getHref in interface IXMLLink
Returns:
href attribute's value or null if that attribute is not set.

hasHref

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

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

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library