xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.instance
Class InterfaceInstanceMappingImpl

java.lang.Object
  extended byedu.uci.isr.xarch.instance.InterfaceInstanceMappingImpl
All Implemented Interfaces:
DOMBased, IInterfaceInstanceMapping, IXArchElement

public class InterfaceInstanceMappingImpl
extends Object
implements IInterfaceInstanceMapping, DOMBased

DOM-Based implementation of the IInterfaceInstanceMapping interface.

Author:
Automatically generated by xArch apigen.

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 INNER_INTERFACE_INSTANCE_ELT_NAME
          Tag name for innerInterfaceInstances in this object.
static String OUTER_INTERFACE_INSTANCE_ELT_NAME
          Tag name for outerInterfaceInstances 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.IInterfaceInstanceMapping
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
InterfaceInstanceMappingImpl(Element elt)
           
 
Method Summary
 void clearDescription()
          Clear the description from this InterfaceInstanceMapping.
 void clearId()
          Removes the id attribute from this object.
 void clearInnerInterfaceInstance()
          Clear the innerInterfaceInstance from this InterfaceInstanceMapping.
 void clearOuterInterfaceInstance()
          Clear the outerInterfaceInstance from this InterfaceInstanceMapping.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 IDescription getDescription()
          Get the description from this InterfaceInstanceMapping.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 String getId()
          Gets the value of the id attribute on this object.
 IXMLLink getInnerInterfaceInstance()
          Get the innerInterfaceInstance from this InterfaceInstanceMapping.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 IXMLLink getOuterInterfaceInstance()
          Get the outerInterfaceInstance from this InterfaceInstanceMapping.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasDescription(IDescription value)
          Determine if this InterfaceInstanceMapping has the given description
 int hashCode()
           
 boolean hasId(String id)
          Determines if this object's id attribute has the given value.
 boolean hasInnerInterfaceInstance(IXMLLink value)
          Determine if this InterfaceInstanceMapping has the given innerInterfaceInstance
 boolean hasOuterInterfaceInstance(IXMLLink value)
          Determine if this InterfaceInstanceMapping has the given outerInterfaceInstance
 boolean isEqual(IInterfaceInstanceMapping InterfaceInstanceMappingToCheck)
          Determine if another InterfaceInstanceMapping has the same id as this one.
 boolean isEquivalent(IInterfaceInstanceMapping c)
          Determine if another InterfaceInstanceMapping is equivalent to this one, ignoring ID's.
 void setDescription(IDescription value)
          Set the description for this InterfaceInstanceMapping.
 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 setInnerInterfaceInstance(IXMLLink value)
          Set the innerInterfaceInstance for this InterfaceInstanceMapping.
 void setOuterInterfaceInstance(IXMLLink value)
          Set the outerInterfaceInstance for this InterfaceInstanceMapping.
 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

OUTER_INTERFACE_INSTANCE_ELT_NAME

public static final String OUTER_INTERFACE_INSTANCE_ELT_NAME
Tag name for outerInterfaceInstances in this object.

See Also:
Constant Field Values

INNER_INTERFACE_INSTANCE_ELT_NAME

public static final String INNER_INTERFACE_INSTANCE_ELT_NAME
Tag name for innerInterfaceInstances in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

InterfaceInstanceMappingImpl

public InterfaceInstanceMappingImpl(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 IInterfaceInstanceMapping
Parameters:
id - attribute value.

clearId

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

Specified by:
clearId in interface IInterfaceInstanceMapping

getId

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

Specified by:
getId in interface IInterfaceInstanceMapping
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 IInterfaceInstanceMapping
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: IInterfaceInstanceMapping
Set the description for this InterfaceInstanceMapping.

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

clearDescription

public void clearDescription()
Description copied from interface: IInterfaceInstanceMapping
Clear the description from this InterfaceInstanceMapping.

Specified by:
clearDescription in interface IInterfaceInstanceMapping

getDescription

public IDescription getDescription()
Description copied from interface: IInterfaceInstanceMapping
Get the description from this InterfaceInstanceMapping.

Specified by:
getDescription in interface IInterfaceInstanceMapping
Returns:
description

hasDescription

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

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

setOuterInterfaceInstance

public void setOuterInterfaceInstance(IXMLLink value)
Description copied from interface: IInterfaceInstanceMapping
Set the outerInterfaceInstance for this InterfaceInstanceMapping.

Specified by:
setOuterInterfaceInstance in interface IInterfaceInstanceMapping
Parameters:
value - new outerInterfaceInstance

clearOuterInterfaceInstance

public void clearOuterInterfaceInstance()
Description copied from interface: IInterfaceInstanceMapping
Clear the outerInterfaceInstance from this InterfaceInstanceMapping.

Specified by:
clearOuterInterfaceInstance in interface IInterfaceInstanceMapping

getOuterInterfaceInstance

public IXMLLink getOuterInterfaceInstance()
Description copied from interface: IInterfaceInstanceMapping
Get the outerInterfaceInstance from this InterfaceInstanceMapping.

Specified by:
getOuterInterfaceInstance in interface IInterfaceInstanceMapping
Returns:
outerInterfaceInstance

hasOuterInterfaceInstance

public boolean hasOuterInterfaceInstance(IXMLLink value)
Description copied from interface: IInterfaceInstanceMapping
Determine if this InterfaceInstanceMapping has the given outerInterfaceInstance

Specified by:
hasOuterInterfaceInstance in interface IInterfaceInstanceMapping
Parameters:
value - outerInterfaceInstance to compare
Returns:
true if the outerInterfaceInstances are equivalent, false otherwise

setInnerInterfaceInstance

public void setInnerInterfaceInstance(IXMLLink value)
Description copied from interface: IInterfaceInstanceMapping
Set the innerInterfaceInstance for this InterfaceInstanceMapping.

Specified by:
setInnerInterfaceInstance in interface IInterfaceInstanceMapping
Parameters:
value - new innerInterfaceInstance

clearInnerInterfaceInstance

public void clearInnerInterfaceInstance()
Description copied from interface: IInterfaceInstanceMapping
Clear the innerInterfaceInstance from this InterfaceInstanceMapping.

Specified by:
clearInnerInterfaceInstance in interface IInterfaceInstanceMapping

getInnerInterfaceInstance

public IXMLLink getInnerInterfaceInstance()
Description copied from interface: IInterfaceInstanceMapping
Get the innerInterfaceInstance from this InterfaceInstanceMapping.

Specified by:
getInnerInterfaceInstance in interface IInterfaceInstanceMapping
Returns:
innerInterfaceInstance

hasInnerInterfaceInstance

public boolean hasInnerInterfaceInstance(IXMLLink value)
Description copied from interface: IInterfaceInstanceMapping
Determine if this InterfaceInstanceMapping has the given innerInterfaceInstance

Specified by:
hasInnerInterfaceInstance in interface IInterfaceInstanceMapping
Parameters:
value - innerInterfaceInstance to compare
Returns:
true if the innerInterfaceInstances are equivalent, false otherwise

isEqual

public boolean isEqual(IInterfaceInstanceMapping InterfaceInstanceMappingToCheck)
Description copied from interface: IInterfaceInstanceMapping
Determine if another InterfaceInstanceMapping has the same id as this one.

Specified by:
isEqual in interface IInterfaceInstanceMapping
Parameters:
InterfaceInstanceMappingToCheck - InterfaceInstanceMapping to compare with this one.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library