xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.pladiff
Class AddLinkImpl

java.lang.Object
  extended byedu.uci.isr.xarch.pladiff.AddLinkImpl
All Implemented Interfaces:
DOMBased, IAddLink, IXArchElement

public class AddLinkImpl
extends Object
implements IAddLink, DOMBased

DOM-Based implementation of the IAddLink interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String INTERFACE_END_POINT_ELT_NAME
          Tag name for interfaceEndPoints in this object.
static String LINK_ELT_NAME
          Tag name for links in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.pladiff.IAddLink
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
AddLinkImpl(Element elt)
           
 
Method Summary
 void addInterfaceEndPoint(IInterfaceEndPoint newInterfaceEndPoint)
          Add a interfaceEndPoint to this AddLink.
 void addInterfaceEndPoints(Collection interfaceEndPoints)
          Add a collection of interfaceEndPoints to this AddLink.
 void clearInterfaceEndPoints()
          Remove all interfaceEndPoints from this AddLink.
 void clearLink()
          Clear the link from this AddLink.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllInterfaceEndPoints()
          Get all the interfaceEndPoints from this AddLink.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 ILink getLink()
          Get the link from this AddLink.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllInterfaceEndPoints(Collection interfaceEndPointsToCheck)
          Determine if this AddLink contains each element in the given set of interfaceEndPoints.
 int hashCode()
           
 boolean hasInterfaceEndPoint(IInterfaceEndPoint interfaceEndPointToCheck)
          Determine if this AddLink contains a given interfaceEndPoint.
 Collection hasInterfaceEndPoints(Collection interfaceEndPointsToCheck)
          Determine if this AddLink contains the given set of interfaceEndPoints.
 boolean hasLink(ILink value)
          Determine if this AddLink has the given link
 boolean isEquivalent(IAddLink c)
          Determine if another AddLink is equivalent to this one, ignoring ID's.
 void removeInterfaceEndPoint(IInterfaceEndPoint interfaceEndPointToRemove)
          Remove the given interfaceEndPoint from this AddLink.
 void removeInterfaceEndPoints(Collection interfaceEndPoints)
          Remove all the given interfaceEndPoints from this AddLink.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setLink(ILink value)
          Set the link for this AddLink.
 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

LINK_ELT_NAME

public static final String LINK_ELT_NAME
Tag name for links in this object.

See Also:
Constant Field Values

INTERFACE_END_POINT_ELT_NAME

public static final String INTERFACE_END_POINT_ELT_NAME
Tag name for interfaceEndPoints in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

AddLinkImpl

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

setLink

public void setLink(ILink value)
Description copied from interface: IAddLink
Set the link for this AddLink.

Specified by:
setLink in interface IAddLink
Parameters:
value - new link

clearLink

public void clearLink()
Description copied from interface: IAddLink
Clear the link from this AddLink.

Specified by:
clearLink in interface IAddLink

getLink

public ILink getLink()
Description copied from interface: IAddLink
Get the link from this AddLink.

Specified by:
getLink in interface IAddLink
Returns:
link

hasLink

public boolean hasLink(ILink value)
Description copied from interface: IAddLink
Determine if this AddLink has the given link

Specified by:
hasLink in interface IAddLink
Parameters:
value - link to compare
Returns:
true if the links are equivalent, false otherwise

addInterfaceEndPoint

public void addInterfaceEndPoint(IInterfaceEndPoint newInterfaceEndPoint)
Description copied from interface: IAddLink
Add a interfaceEndPoint to this AddLink.

Specified by:
addInterfaceEndPoint in interface IAddLink
Parameters:
newInterfaceEndPoint - interfaceEndPoint to add.

addInterfaceEndPoints

public void addInterfaceEndPoints(Collection interfaceEndPoints)
Description copied from interface: IAddLink
Add a collection of interfaceEndPoints to this AddLink.

Specified by:
addInterfaceEndPoints in interface IAddLink
Parameters:
interfaceEndPoints - interfaceEndPoints to add.

clearInterfaceEndPoints

public void clearInterfaceEndPoints()
Description copied from interface: IAddLink
Remove all interfaceEndPoints from this AddLink.

Specified by:
clearInterfaceEndPoints in interface IAddLink

removeInterfaceEndPoint

public void removeInterfaceEndPoint(IInterfaceEndPoint interfaceEndPointToRemove)
Description copied from interface: IAddLink
Remove the given interfaceEndPoint from this AddLink. Matching is done by the isEquivalent(...) function.

Specified by:
removeInterfaceEndPoint in interface IAddLink
Parameters:
interfaceEndPointToRemove - interfaceEndPoint to remove.

removeInterfaceEndPoints

public void removeInterfaceEndPoints(Collection interfaceEndPoints)
Description copied from interface: IAddLink
Remove all the given interfaceEndPoints from this AddLink. Matching is done by the isEquivalent(...) function.

Specified by:
removeInterfaceEndPoints in interface IAddLink
Parameters:
interfaceEndPoints - interfaceEndPoint to remove.

getAllInterfaceEndPoints

public Collection getAllInterfaceEndPoints()
Description copied from interface: IAddLink
Get all the interfaceEndPoints from this AddLink.

Specified by:
getAllInterfaceEndPoints in interface IAddLink
Returns:
all interfaceEndPoints in this AddLink.

hasInterfaceEndPoint

public boolean hasInterfaceEndPoint(IInterfaceEndPoint interfaceEndPointToCheck)
Description copied from interface: IAddLink
Determine if this AddLink contains a given interfaceEndPoint.

Specified by:
hasInterfaceEndPoint in interface IAddLink
Returns:
true if this AddLink contains the given interfaceEndPointToCheck, false otherwise.

hasInterfaceEndPoints

public Collection hasInterfaceEndPoints(Collection interfaceEndPointsToCheck)
Description copied from interface: IAddLink
Determine if this AddLink contains the given set of interfaceEndPoints.

Specified by:
hasInterfaceEndPoints in interface IAddLink
Parameters:
interfaceEndPointsToCheck - interfaceEndPoints to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in interfaceEndPoints 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.

hasAllInterfaceEndPoints

public boolean hasAllInterfaceEndPoints(Collection interfaceEndPointsToCheck)
Description copied from interface: IAddLink
Determine if this AddLink contains each element in the given set of interfaceEndPoints.

Specified by:
hasAllInterfaceEndPoints in interface IAddLink
Parameters:
interfaceEndPointsToCheck - interfaceEndPoints to check for.
Returns:
true if every element in interfaceEndPoints is found in this AddLink, false otherwise.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library