|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.instance.XMLLinkImpl
DOM-Based implementation of the IXMLLink interface.
| 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 |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String TYPE_ATTR_NAME
public static final String HREF_ATTR_NAME
protected Element elt
| Constructor Detail |
public XMLLinkImpl(Element elt)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic boolean equals(Object o)
public int hashCode()
public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementpublic void setType(String type)
setType in interface IXMLLinktype - attribute value.public void clearType()
clearType in interface IXMLLinkpublic String getType()
getType in interface IXMLLinknull if that
attribute is not set.public boolean hasType(String type)
hasType in interface IXMLLinktype - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setHref(String href)
setHref in interface IXMLLinkhref - attribute value.public void clearHref()
clearHref in interface IXMLLinkpublic String getHref()
getHref in interface IXMLLinknull if that
attribute is not set.public boolean hasHref(String href)
hasHref in interface IXMLLinkhref - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public boolean isEquivalent(IXMLLink c)
IXMLLink
isEquivalent in interface IXMLLinkc - XMLLink to compare to this one.
true if all the child elements of this
XMLLink are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||