xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.instance
Class SubArchitectureImpl

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

public class SubArchitectureImpl
extends Object
implements ISubArchitecture, DOMBased

DOM-Based implementation of the ISubArchitecture interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String ARCH_INSTANCE_ELT_NAME
          Tag name for archInstances in this object.
protected  Element elt
           
static String INTERFACE_INSTANCE_MAPPING_ELT_NAME
          Tag name for interfaceInstanceMappings 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.ISubArchitecture
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
SubArchitectureImpl(Element elt)
           
 
Method Summary
 void addInterfaceInstanceMapping(IInterfaceInstanceMapping newInterfaceInstanceMapping)
          Add a interfaceInstanceMapping to this SubArchitecture.
 void addInterfaceInstanceMappings(Collection interfaceInstanceMappings)
          Add a collection of interfaceInstanceMappings to this SubArchitecture.
 void clearArchInstance()
          Clear the archInstance from this SubArchitecture.
 void clearInterfaceInstanceMappings()
          Remove all interfaceInstanceMappings from this SubArchitecture.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllInterfaceInstanceMappings()
          Get all the interfaceInstanceMappings from this SubArchitecture.
 IArchInstance getArchInstance()
          Get the archInstance from this SubArchitecture.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 IInterfaceInstanceMapping getInterfaceInstanceMapping(String id)
          Gets the interfaceInstanceMapping from this SubArchitecture with the given id.
 Collection getInterfaceInstanceMappings(Collection ids)
          Gets the interfaceInstanceMappings from this SubArchitecture with the given ids.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
          Determine if this SubArchitecture contains each element in the given set of interfaceInstanceMappings.
 boolean hasArchInstance(IArchInstance value)
          Determine if this SubArchitecture has the given archInstance
 int hashCode()
           
 boolean hasInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToCheck)
          Determine if this SubArchitecture contains a given interfaceInstanceMapping.
 Collection hasInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
          Determine if this SubArchitecture contains the given set of interfaceInstanceMappings.
 boolean isEquivalent(ISubArchitecture c)
          Determine if another SubArchitecture is equivalent to this one, ignoring ID's.
 void removeInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToRemove)
          Remove the given interfaceInstanceMapping from this SubArchitecture.
 void removeInterfaceInstanceMappings(Collection interfaceInstanceMappings)
          Remove all the given interfaceInstanceMappings from this SubArchitecture.
 void setArchInstance(IArchInstance value)
          Set the archInstance for this SubArchitecture.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 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

ARCH_INSTANCE_ELT_NAME

public static final String ARCH_INSTANCE_ELT_NAME
Tag name for archInstances in this object.

See Also:
Constant Field Values

INTERFACE_INSTANCE_MAPPING_ELT_NAME

public static final String INTERFACE_INSTANCE_MAPPING_ELT_NAME
Tag name for interfaceInstanceMappings in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

SubArchitectureImpl

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

setArchInstance

public void setArchInstance(IArchInstance value)
Description copied from interface: ISubArchitecture
Set the archInstance for this SubArchitecture.

Specified by:
setArchInstance in interface ISubArchitecture
Parameters:
value - new archInstance

clearArchInstance

public void clearArchInstance()
Description copied from interface: ISubArchitecture
Clear the archInstance from this SubArchitecture.

Specified by:
clearArchInstance in interface ISubArchitecture

getArchInstance

public IArchInstance getArchInstance()
Description copied from interface: ISubArchitecture
Get the archInstance from this SubArchitecture.

Specified by:
getArchInstance in interface ISubArchitecture
Returns:
archInstance

hasArchInstance

public boolean hasArchInstance(IArchInstance value)
Description copied from interface: ISubArchitecture
Determine if this SubArchitecture has the given archInstance

Specified by:
hasArchInstance in interface ISubArchitecture
Parameters:
value - archInstance to compare
Returns:
true if the archInstances are equivalent, false otherwise

addInterfaceInstanceMapping

public void addInterfaceInstanceMapping(IInterfaceInstanceMapping newInterfaceInstanceMapping)
Description copied from interface: ISubArchitecture
Add a interfaceInstanceMapping to this SubArchitecture.

Specified by:
addInterfaceInstanceMapping in interface ISubArchitecture
Parameters:
newInterfaceInstanceMapping - interfaceInstanceMapping to add.

addInterfaceInstanceMappings

public void addInterfaceInstanceMappings(Collection interfaceInstanceMappings)
Description copied from interface: ISubArchitecture
Add a collection of interfaceInstanceMappings to this SubArchitecture.

Specified by:
addInterfaceInstanceMappings in interface ISubArchitecture
Parameters:
interfaceInstanceMappings - interfaceInstanceMappings to add.

clearInterfaceInstanceMappings

public void clearInterfaceInstanceMappings()
Description copied from interface: ISubArchitecture
Remove all interfaceInstanceMappings from this SubArchitecture.

Specified by:
clearInterfaceInstanceMappings in interface ISubArchitecture

removeInterfaceInstanceMapping

public void removeInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToRemove)
Description copied from interface: ISubArchitecture
Remove the given interfaceInstanceMapping from this SubArchitecture. Matching is done by the isEquivalent(...) function.

Specified by:
removeInterfaceInstanceMapping in interface ISubArchitecture
Parameters:
interfaceInstanceMappingToRemove - interfaceInstanceMapping to remove.

removeInterfaceInstanceMappings

public void removeInterfaceInstanceMappings(Collection interfaceInstanceMappings)
Description copied from interface: ISubArchitecture
Remove all the given interfaceInstanceMappings from this SubArchitecture. Matching is done by the isEquivalent(...) function.

Specified by:
removeInterfaceInstanceMappings in interface ISubArchitecture
Parameters:
interfaceInstanceMappings - interfaceInstanceMapping to remove.

getAllInterfaceInstanceMappings

public Collection getAllInterfaceInstanceMappings()
Description copied from interface: ISubArchitecture
Get all the interfaceInstanceMappings from this SubArchitecture.

Specified by:
getAllInterfaceInstanceMappings in interface ISubArchitecture
Returns:
all interfaceInstanceMappings in this SubArchitecture.

hasInterfaceInstanceMapping

public boolean hasInterfaceInstanceMapping(IInterfaceInstanceMapping interfaceInstanceMappingToCheck)
Description copied from interface: ISubArchitecture
Determine if this SubArchitecture contains a given interfaceInstanceMapping.

Specified by:
hasInterfaceInstanceMapping in interface ISubArchitecture
Returns:
true if this SubArchitecture contains the given interfaceInstanceMappingToCheck, false otherwise.

hasInterfaceInstanceMappings

public Collection hasInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
Description copied from interface: ISubArchitecture
Determine if this SubArchitecture contains the given set of interfaceInstanceMappings.

Specified by:
hasInterfaceInstanceMappings in interface ISubArchitecture
Parameters:
interfaceInstanceMappingsToCheck - interfaceInstanceMappings to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in interfaceInstanceMappings 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.

hasAllInterfaceInstanceMappings

public boolean hasAllInterfaceInstanceMappings(Collection interfaceInstanceMappingsToCheck)
Description copied from interface: ISubArchitecture
Determine if this SubArchitecture contains each element in the given set of interfaceInstanceMappings.

Specified by:
hasAllInterfaceInstanceMappings in interface ISubArchitecture
Parameters:
interfaceInstanceMappingsToCheck - interfaceInstanceMappings to check for.
Returns:
true if every element in interfaceInstanceMappings is found in this SubArchitecture, false otherwise.

getInterfaceInstanceMapping

public IInterfaceInstanceMapping getInterfaceInstanceMapping(String id)
Description copied from interface: ISubArchitecture
Gets the interfaceInstanceMapping from this SubArchitecture with the given id.

Specified by:
getInterfaceInstanceMapping in interface ISubArchitecture
Parameters:
id - ID to look for.
Returns:
interfaceInstanceMapping with the given ID, or null if not found.

getInterfaceInstanceMappings

public Collection getInterfaceInstanceMappings(Collection ids)
Description copied from interface: ISubArchitecture
Gets the interfaceInstanceMappings from this SubArchitecture with the given ids.

Specified by:
getInterfaceInstanceMappings in interface ISubArchitecture
Parameters:
ids - ID to look for.
Returns:
interfaceInstanceMappings with the given IDs. If an element with a given ID was not found, that ID is ignored.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library