xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.types
Class SubArchitectureImpl

java.lang.Object
  extended byedu.uci.isr.xarch.types.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_STRUCTURE_ELT_NAME
          Tag name for archStructures in this object.
protected  Element elt
           
static String SIGNATURE_INTERFACE_MAPPING_ELT_NAME
          Tag name for signatureInterfaceMappings 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.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 addSignatureInterfaceMapping(ISignatureInterfaceMapping newSignatureInterfaceMapping)
          Add a signatureInterfaceMapping to this SubArchitecture.
 void addSignatureInterfaceMappings(Collection signatureInterfaceMappings)
          Add a collection of signatureInterfaceMappings to this SubArchitecture.
 void clearArchStructure()
          Clear the archStructure from this SubArchitecture.
 void clearSignatureInterfaceMappings()
          Remove all signatureInterfaceMappings from this SubArchitecture.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllSignatureInterfaceMappings()
          Get all the signatureInterfaceMappings from this SubArchitecture.
 IXMLLink getArchStructure()
          Get the archStructure 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.
protected static SequenceOrder getSequenceOrder()
           
 ISignatureInterfaceMapping getSignatureInterfaceMapping(String id)
          Gets the signatureInterfaceMapping from this SubArchitecture with the given id.
 Collection getSignatureInterfaceMappings(Collection ids)
          Gets the signatureInterfaceMappings from this SubArchitecture with the given ids.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllSignatureInterfaceMappings(Collection signatureInterfaceMappingsToCheck)
          Determine if this SubArchitecture contains each element in the given set of signatureInterfaceMappings.
 boolean hasArchStructure(IXMLLink value)
          Determine if this SubArchitecture has the given archStructure
 int hashCode()
           
 boolean hasSignatureInterfaceMapping(ISignatureInterfaceMapping signatureInterfaceMappingToCheck)
          Determine if this SubArchitecture contains a given signatureInterfaceMapping.
 Collection hasSignatureInterfaceMappings(Collection signatureInterfaceMappingsToCheck)
          Determine if this SubArchitecture contains the given set of signatureInterfaceMappings.
 boolean isEquivalent(ISubArchitecture c)
          Determine if another SubArchitecture is equivalent to this one, ignoring ID's.
 void removeSignatureInterfaceMapping(ISignatureInterfaceMapping signatureInterfaceMappingToRemove)
          Remove the given signatureInterfaceMapping from this SubArchitecture.
 void removeSignatureInterfaceMappings(Collection signatureInterfaceMappings)
          Remove all the given signatureInterfaceMappings from this SubArchitecture.
 void setArchStructure(IXMLLink value)
          Set the archStructure 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_STRUCTURE_ELT_NAME

public static final String ARCH_STRUCTURE_ELT_NAME
Tag name for archStructures in this object.

See Also:
Constant Field Values

SIGNATURE_INTERFACE_MAPPING_ELT_NAME

public static final String SIGNATURE_INTERFACE_MAPPING_ELT_NAME
Tag name for signatureInterfaceMappings 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.

setArchStructure

public void setArchStructure(IXMLLink value)
Description copied from interface: ISubArchitecture
Set the archStructure for this SubArchitecture.

Specified by:
setArchStructure in interface ISubArchitecture
Parameters:
value - new archStructure

clearArchStructure

public void clearArchStructure()
Description copied from interface: ISubArchitecture
Clear the archStructure from this SubArchitecture.

Specified by:
clearArchStructure in interface ISubArchitecture

getArchStructure

public IXMLLink getArchStructure()
Description copied from interface: ISubArchitecture
Get the archStructure from this SubArchitecture.

Specified by:
getArchStructure in interface ISubArchitecture
Returns:
archStructure

hasArchStructure

public boolean hasArchStructure(IXMLLink value)
Description copied from interface: ISubArchitecture
Determine if this SubArchitecture has the given archStructure

Specified by:
hasArchStructure in interface ISubArchitecture
Parameters:
value - archStructure to compare
Returns:
true if the archStructures are equivalent, false otherwise

addSignatureInterfaceMapping

public void addSignatureInterfaceMapping(ISignatureInterfaceMapping newSignatureInterfaceMapping)
Description copied from interface: ISubArchitecture
Add a signatureInterfaceMapping to this SubArchitecture.

Specified by:
addSignatureInterfaceMapping in interface ISubArchitecture
Parameters:
newSignatureInterfaceMapping - signatureInterfaceMapping to add.

addSignatureInterfaceMappings

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

Specified by:
addSignatureInterfaceMappings in interface ISubArchitecture
Parameters:
signatureInterfaceMappings - signatureInterfaceMappings to add.

clearSignatureInterfaceMappings

public void clearSignatureInterfaceMappings()
Description copied from interface: ISubArchitecture
Remove all signatureInterfaceMappings from this SubArchitecture.

Specified by:
clearSignatureInterfaceMappings in interface ISubArchitecture

removeSignatureInterfaceMapping

public void removeSignatureInterfaceMapping(ISignatureInterfaceMapping signatureInterfaceMappingToRemove)
Description copied from interface: ISubArchitecture
Remove the given signatureInterfaceMapping from this SubArchitecture. Matching is done by the isEquivalent(...) function.

Specified by:
removeSignatureInterfaceMapping in interface ISubArchitecture
Parameters:
signatureInterfaceMappingToRemove - signatureInterfaceMapping to remove.

removeSignatureInterfaceMappings

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

Specified by:
removeSignatureInterfaceMappings in interface ISubArchitecture
Parameters:
signatureInterfaceMappings - signatureInterfaceMapping to remove.

getAllSignatureInterfaceMappings

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

Specified by:
getAllSignatureInterfaceMappings in interface ISubArchitecture
Returns:
all signatureInterfaceMappings in this SubArchitecture.

hasSignatureInterfaceMapping

public boolean hasSignatureInterfaceMapping(ISignatureInterfaceMapping signatureInterfaceMappingToCheck)
Description copied from interface: ISubArchitecture
Determine if this SubArchitecture contains a given signatureInterfaceMapping.

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

hasSignatureInterfaceMappings

public Collection hasSignatureInterfaceMappings(Collection signatureInterfaceMappingsToCheck)
Description copied from interface: ISubArchitecture
Determine if this SubArchitecture contains the given set of signatureInterfaceMappings.

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

hasAllSignatureInterfaceMappings

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

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

getSignatureInterfaceMapping

public ISignatureInterfaceMapping getSignatureInterfaceMapping(String id)
Description copied from interface: ISubArchitecture
Gets the signatureInterfaceMapping from this SubArchitecture with the given id.

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

getSignatureInterfaceMappings

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

Specified by:
getSignatureInterfaceMappings in interface ISubArchitecture
Parameters:
ids - ID to look for.
Returns:
signatureInterfaceMappings 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