xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.types
Interface ILink

All Superinterfaces:
IXArchElement
All Known Subinterfaces:
IOptionalLink
All Known Implementing Classes:
LinkImpl, OptionalLinkImpl

public interface ILink
extends IXArchElement

Interface for accessing objects of the Link xsi:type in the types namespace.

Author:
Automatically generated by xArch apigen

Field Summary
static XArchTypeMetadata TYPE_METADATA
           
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
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()
          Remove the id attribute from this Link.
 void clearPoints()
          Remove all points from this Link.
 Collection getAllPoints()
          Get all the points from this Link.
 IDescription getDescription()
          Get the description from this Link.
 String getId()
          Get the id attribute from this Link.
 boolean hasAllPoints(Collection pointsToCheck)
          Determine if this Link contains each element in the given set of points.
 boolean hasDescription(IDescription descriptionToCheck)
          Determine if this Link has the given description
 boolean hasId(String id)
          Determine if the id attribute on this Link 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 LinkToCheck)
          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 setId(String id)
          Set the id attribute on this Link.
 
Methods inherited from interface edu.uci.isr.xarch.IXArchElement
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch
 

Field Detail

TYPE_METADATA

public static final XArchTypeMetadata TYPE_METADATA
Method Detail

setId

public void setId(String id)
Set the id attribute on this Link.

Parameters:
id - id
Throws:
FixedValueException - if the attribute has a fixed value and the value passed is not the fixed value.

clearId

public void clearId()
Remove the id attribute from this Link.


getId

public String getId()
Get the id attribute from this Link. if the attribute has a fixed value, this function will return that fixed value, even if it is not actually present in the XML document.

Returns:
id on this Link

hasId

public boolean hasId(String id)
Determine if the id attribute on this Link has the given value.

Parameters:
id - Attribute value to compare
Returns:
true if they match; false otherwise.

setDescription

public void setDescription(IDescription value)
Set the description for this Link.

Parameters:
value - new description

clearDescription

public void clearDescription()
Clear the description from this Link.


getDescription

public IDescription getDescription()
Get the description from this Link.

Returns:
description

hasDescription

public boolean hasDescription(IDescription descriptionToCheck)
Determine if this Link has the given description

Parameters:
descriptionToCheck - description to compare
Returns:
true if the descriptions are equivalent, false otherwise

addPoint

public void addPoint(IPoint newPoint)
Add a point to this Link.

Parameters:
newPoint - point to add.

addPoints

public void addPoints(Collection points)
Add a collection of points to this Link.

Parameters:
points - points to add.

clearPoints

public void clearPoints()
Remove all points from this Link.


removePoint

public void removePoint(IPoint pointToRemove)
Remove the given point from this Link. Matching is done by the isEquivalent(...) function.

Parameters:
pointToRemove - point to remove.

removePoints

public void removePoints(Collection points)
Remove all the given points from this Link. Matching is done by the isEquivalent(...) function.

Parameters:
points - point to remove.

getAllPoints

public Collection getAllPoints()
Get all the points from this Link.

Returns:
all points in this Link.

hasPoint

public boolean hasPoint(IPoint pointToCheck)
Determine if this Link contains a given point.

Returns:
true if this Link contains the given pointToCheck, false otherwise.

hasPoints

public Collection hasPoints(Collection pointsToCheck)
Determine if this Link contains the given set of points.

Parameters:
pointsToCheck - points to check for.
Returns:
Collection of 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.

hasAllPoints

public boolean hasAllPoints(Collection pointsToCheck)
Determine if this Link contains each element in the given set of points.

Parameters:
pointsToCheck - points to check for.
Returns:
true if every element in points is found in this Link, false otherwise.

isEqual

public boolean isEqual(ILink LinkToCheck)
Determine if another Link has the same id as this one.

Parameters:
LinkToCheck - Link to compare with this one.

isEquivalent

public boolean isEquivalent(ILink LinkToCheck)
Determine if another Link is equivalent to this one, ignoring ID's.

Parameters:
LinkToCheck - Link to compare to this one.
Returns:
true if all the child elements of this Link are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library