|
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.types.LinkImpl
DOM-Based implementation of the ILink interface.
| Field Summary | |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
protected Element |
elt
|
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
POINT_ELT_NAME
Tag name for points in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.types.ILink |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
LinkImpl(Element elt)
|
|
| Method Summary | |
void |
addPoint(IPoint newPoint)
Add a point to this Link. |
void |
addPoints(Collection points)
Add a collection of points to this Link. |
void |
clearDescription()
Clear the description from this Link. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearPoints()
Remove all points from this Link. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllPoints()
Get all the points from this Link. |
IDescription |
getDescription()
Get the description from this Link. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
String |
getId()
Gets the value of the id attribute on this object. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllPoints(Collection pointsToCheck)
Determine if this Link contains each element in the given set of points. |
boolean |
hasDescription(IDescription value)
Determine if this Link has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasPoint(IPoint pointToCheck)
Determine if this Link contains a given point. |
Collection |
hasPoints(Collection pointsToCheck)
Determine if this Link contains the given set of points. |
boolean |
isEqual(ILink LinkToCheck)
Determine if another Link has the same id as this one. |
boolean |
isEquivalent(ILink c)
Determine if another Link is equivalent to this one, ignoring ID's. |
void |
removePoint(IPoint pointToRemove)
Remove the given point from this Link. |
void |
removePoints(Collection points)
Remove all the given points from this Link. |
void |
setDescription(IDescription value)
Set the description for this Link. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
void |
setId(String id)
Set the id 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 ID_ATTR_NAME
public static final String DESCRIPTION_ELT_NAME
public static final String POINT_ELT_NAME
protected Element elt
| Constructor Detail |
public LinkImpl(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 setId(String id)
setId in interface ILinkid - attribute value.public void clearId()
clearId in interface ILinkpublic String getId()
getId in interface ILinknull if that
attribute is not set.public boolean hasId(String id)
hasId in interface ILinkid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
ILink
setDescription in interface ILinkvalue - new descriptionpublic void clearDescription()
ILink
clearDescription in interface ILinkpublic IDescription getDescription()
ILink
getDescription in interface ILinkpublic boolean hasDescription(IDescription value)
ILink
hasDescription in interface ILinkvalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addPoint(IPoint newPoint)
ILink
addPoint in interface ILinknewPoint - point to add.public void addPoints(Collection points)
ILink
addPoints in interface ILinkpoints - points to add.public void clearPoints()
ILink
clearPoints in interface ILinkpublic void removePoint(IPoint pointToRemove)
ILinkisEquivalent(...) function.
removePoint in interface ILinkpointToRemove - point to remove.public void removePoints(Collection points)
ILinkisEquivalent(...) function.
removePoints in interface ILinkpoints - point to remove.public Collection getAllPoints()
ILink
getAllPoints in interface ILinkpublic boolean hasPoint(IPoint pointToCheck)
ILink
hasPoint in interface ILinktrue if this Link contains the given
pointToCheck, false otherwise.public Collection hasPoints(Collection pointsToCheck)
ILink
hasPoints in interface ILinkpointsToCheck - points to check for.
java.lang.Boolean. If the ith
element in points was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllPoints(Collection pointsToCheck)
ILink
hasAllPoints in interface ILinkpointsToCheck - points to check for.
true if every element in
points is found in this Link,
false otherwise.public boolean isEqual(ILink LinkToCheck)
ILink
isEqual in interface ILinkLinkToCheck - Link to compare with this
one.public boolean isEquivalent(ILink c)
ILink
isEquivalent in interface ILinkc - Link to compare to this one.
true if all the child elements of this
Link 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 | |||||||||