xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.types
Class InterfaceImpl

java.lang.Object
  extended byedu.uci.isr.xarch.types.InterfaceImpl
All Implemented Interfaces:
DOMBased, IInterface, IXArchElement
Direct Known Subclasses:
OptionalInterfaceImpl

public class InterfaceImpl
extends Object
implements IInterface, DOMBased

DOM-Based implementation of the IInterface interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String DESCRIPTION_ELT_NAME
          Tag name for descriptions in this object.
static String DIRECTION_ELT_NAME
          Tag name for directions in this object.
protected  Element elt
           
static String ID_ATTR_NAME
          Tag name for ids in this object.
static String SIGNATURE_ELT_NAME
          Tag name for signatures in this object.
static String TYPE_ELT_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.types.IInterface
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
InterfaceImpl(Element elt)
           
 
Method Summary
 void clearDescription()
          Clear the description from this Interface.
 void clearDirection()
          Clear the direction from this Interface.
 void clearId()
          Removes the id attribute from this object.
 void clearSignature()
          Clear the signature from this Interface.
 void clearType()
          Clear the type from this Interface.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 IDescription getDescription()
          Get the description from this Interface.
 IDirection getDirection()
          Get the direction from this Interface.
 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()
           
 IXMLLink getSignature()
          Get the signature from this Interface.
 IXMLLink getType()
          Get the type from this Interface.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasDescription(IDescription value)
          Determine if this Interface has the given description
 boolean hasDirection(IDirection value)
          Determine if this Interface has the given direction
 int hashCode()
           
 boolean hasId(String id)
          Determines if this object's id attribute has the given value.
 boolean hasSignature(IXMLLink value)
          Determine if this Interface has the given signature
 boolean hasType(IXMLLink value)
          Determine if this Interface has the given type
 boolean isEqual(IInterface InterfaceToCheck)
          Determine if another Interface has the same id as this one.
 boolean isEquivalent(IInterface c)
          Determine if another Interface is equivalent to this one, ignoring ID's.
 void setDescription(IDescription value)
          Set the description for this Interface.
 void setDirection(IDirection value)
          Set the direction for this Interface.
 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 setSignature(IXMLLink value)
          Set the signature for this Interface.
 void setType(IXMLLink value)
          Set the type for this Interface.
 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

ID_ATTR_NAME

public static final String ID_ATTR_NAME
Tag name for ids in this object.

See Also:
Constant Field Values

DESCRIPTION_ELT_NAME

public static final String DESCRIPTION_ELT_NAME
Tag name for descriptions in this object.

See Also:
Constant Field Values

DIRECTION_ELT_NAME

public static final String DIRECTION_ELT_NAME
Tag name for directions in this object.

See Also:
Constant Field Values

TYPE_ELT_NAME

public static final String TYPE_ELT_NAME
Tag name for types in this object.

See Also:
Constant Field Values

SIGNATURE_ELT_NAME

public static final String SIGNATURE_ELT_NAME
Tag name for signatures in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

InterfaceImpl

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

setId

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

Specified by:
setId in interface IInterface
Parameters:
id - attribute value.

clearId

public void clearId()
Removes the id attribute from this object.

Specified by:
clearId in interface IInterface

getId

public String getId()
Gets the value of the id attribute on this object.

Specified by:
getId in interface IInterface
Returns:
id attribute's value or null if that attribute is not set.

hasId

public boolean hasId(String id)
Determines if this object's id attribute has the given value.

Specified by:
hasId in interface IInterface
Parameters:
id - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

setDescription

public void setDescription(IDescription value)
Description copied from interface: IInterface
Set the description for this Interface.

Specified by:
setDescription in interface IInterface
Parameters:
value - new description

clearDescription

public void clearDescription()
Description copied from interface: IInterface
Clear the description from this Interface.

Specified by:
clearDescription in interface IInterface

getDescription

public IDescription getDescription()
Description copied from interface: IInterface
Get the description from this Interface.

Specified by:
getDescription in interface IInterface
Returns:
description

hasDescription

public boolean hasDescription(IDescription value)
Description copied from interface: IInterface
Determine if this Interface has the given description

Specified by:
hasDescription in interface IInterface
Parameters:
value - description to compare
Returns:
true if the descriptions are equivalent, false otherwise

setDirection

public void setDirection(IDirection value)
Description copied from interface: IInterface
Set the direction for this Interface.

Specified by:
setDirection in interface IInterface
Parameters:
value - new direction

clearDirection

public void clearDirection()
Description copied from interface: IInterface
Clear the direction from this Interface.

Specified by:
clearDirection in interface IInterface

getDirection

public IDirection getDirection()
Description copied from interface: IInterface
Get the direction from this Interface.

Specified by:
getDirection in interface IInterface
Returns:
direction

hasDirection

public boolean hasDirection(IDirection value)
Description copied from interface: IInterface
Determine if this Interface has the given direction

Specified by:
hasDirection in interface IInterface
Parameters:
value - direction to compare
Returns:
true if the directions are equivalent, false otherwise

setType

public void setType(IXMLLink value)
Description copied from interface: IInterface
Set the type for this Interface.

Specified by:
setType in interface IInterface
Parameters:
value - new type

clearType

public void clearType()
Description copied from interface: IInterface
Clear the type from this Interface.

Specified by:
clearType in interface IInterface

getType

public IXMLLink getType()
Description copied from interface: IInterface
Get the type from this Interface.

Specified by:
getType in interface IInterface
Returns:
type

hasType

public boolean hasType(IXMLLink value)
Description copied from interface: IInterface
Determine if this Interface has the given type

Specified by:
hasType in interface IInterface
Parameters:
value - type to compare
Returns:
true if the types are equivalent, false otherwise

setSignature

public void setSignature(IXMLLink value)
Description copied from interface: IInterface
Set the signature for this Interface.

Specified by:
setSignature in interface IInterface
Parameters:
value - new signature

clearSignature

public void clearSignature()
Description copied from interface: IInterface
Clear the signature from this Interface.

Specified by:
clearSignature in interface IInterface

getSignature

public IXMLLink getSignature()
Description copied from interface: IInterface
Get the signature from this Interface.

Specified by:
getSignature in interface IInterface
Returns:
signature

hasSignature

public boolean hasSignature(IXMLLink value)
Description copied from interface: IInterface
Determine if this Interface has the given signature

Specified by:
hasSignature in interface IInterface
Parameters:
value - signature to compare
Returns:
true if the signatures are equivalent, false otherwise

isEqual

public boolean isEqual(IInterface InterfaceToCheck)
Description copied from interface: IInterface
Determine if another Interface has the same id as this one.

Specified by:
isEqual in interface IInterface
Parameters:
InterfaceToCheck - Interface to compare with this one.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library