|
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.LinkInstanceImpl
DOM-Based implementation of the ILinkInstance 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.instance.ILinkInstance |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
LinkInstanceImpl(Element elt)
|
|
| Method Summary | |
void |
addPoint(IPoint newPoint)
Add a point to this LinkInstance. |
void |
addPoints(Collection points)
Add a collection of points to this LinkInstance. |
void |
clearDescription()
Clear the description from this LinkInstance. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearPoints()
Remove all points from this LinkInstance. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllPoints()
Get all the points from this LinkInstance. |
IDescription |
getDescription()
Get the description from this LinkInstance. |
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 LinkInstance contains each element in the given set of points. |
boolean |
hasDescription(IDescription value)
Determine if this LinkInstance 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 LinkInstance contains a given point. |
Collection |
hasPoints(Collection pointsToCheck)
Determine if this LinkInstance contains the given set of points. |
boolean |
isEqual(ILinkInstance LinkInstanceToCheck)
Determine if another LinkInstance has the same id as this one. |
boolean |
isEquivalent(ILinkInstance c)
Determine if another LinkInstance is equivalent to this one, ignoring ID's. |
void |
removePoint(IPoint pointToRemove)
Remove the given point from this LinkInstance. |
void |
removePoints(Collection points)
Remove all the given points from this LinkInstance. |
void |
setDescription(IDescription value)
Set the description for this LinkInstance. |
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 LinkInstanceImpl(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 ILinkInstanceid - attribute value.public void clearId()
clearId in interface ILinkInstancepublic String getId()
getId in interface ILinkInstancenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface ILinkInstanceid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
ILinkInstance
setDescription in interface ILinkInstancevalue - new descriptionpublic void clearDescription()
ILinkInstance
clearDescription in interface ILinkInstancepublic IDescription getDescription()
ILinkInstance
getDescription in interface ILinkInstancepublic boolean hasDescription(IDescription value)
ILinkInstance
hasDescription in interface ILinkInstancevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addPoint(IPoint newPoint)
ILinkInstance
addPoint in interface ILinkInstancenewPoint - point to add.public void addPoints(Collection points)
ILinkInstance
addPoints in interface ILinkInstancepoints - points to add.public void clearPoints()
ILinkInstance
clearPoints in interface ILinkInstancepublic void removePoint(IPoint pointToRemove)
ILinkInstanceisEquivalent(...) function.
removePoint in interface ILinkInstancepointToRemove - point to remove.public void removePoints(Collection points)
ILinkInstanceisEquivalent(...) function.
removePoints in interface ILinkInstancepoints - point to remove.public Collection getAllPoints()
ILinkInstance
getAllPoints in interface ILinkInstancepublic boolean hasPoint(IPoint pointToCheck)
ILinkInstance
hasPoint in interface ILinkInstancetrue if this LinkInstance contains the given
pointToCheck, false otherwise.public Collection hasPoints(Collection pointsToCheck)
ILinkInstance
hasPoints in interface ILinkInstancepointsToCheck - 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)
ILinkInstance
hasAllPoints in interface ILinkInstancepointsToCheck - points to check for.
true if every element in
points is found in this LinkInstance,
false otherwise.public boolean isEqual(ILinkInstance LinkInstanceToCheck)
ILinkInstance
isEqual in interface ILinkInstanceLinkInstanceToCheck - LinkInstance to compare with this
one.public boolean isEquivalent(ILinkInstance c)
ILinkInstance
isEquivalent in interface ILinkInstancec - LinkInstance to compare to this one.
true if all the child elements of this
LinkInstance 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 | |||||||||