xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.analysis
Class ArchAnalysisImpl

java.lang.Object
  extended byedu.uci.isr.xarch.analysis.ArchAnalysisImpl
All Implemented Interfaces:
DOMBased, IArchAnalysis, IXArchElement

public class ArchAnalysisImpl
extends Object
implements IArchAnalysis, DOMBased

DOM-Based implementation of the IArchAnalysis interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String ANALYSIS_ELT_NAME
          Tag name for analysiss in this object.
protected  Element elt
           
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.analysis.IArchAnalysis
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
ArchAnalysisImpl(Element elt)
           
 
Method Summary
 void addAnalysis(IAnalysis newAnalysis)
          Add a analysis to this ArchAnalysis.
 void addAnalysiss(Collection analysiss)
          Add a collection of analysiss to this ArchAnalysis.
 void clearAnalysiss()
          Remove all analysiss from this ArchAnalysis.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllAnalysiss()
          Get all the analysiss from this ArchAnalysis.
 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()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllAnalysiss(Collection analysissToCheck)
          Determine if this ArchAnalysis contains each element in the given set of analysiss.
 boolean hasAnalysis(IAnalysis analysisToCheck)
          Determine if this ArchAnalysis contains a given analysis.
 Collection hasAnalysiss(Collection analysissToCheck)
          Determine if this ArchAnalysis contains the given set of analysiss.
 int hashCode()
           
 boolean isEquivalent(IArchAnalysis c)
          Determine if another ArchAnalysis is equivalent to this one, ignoring ID's.
 void removeAnalysis(IAnalysis analysisToRemove)
          Remove the given analysis from this ArchAnalysis.
 void removeAnalysiss(Collection analysiss)
          Remove all the given analysiss from this ArchAnalysis.
 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

ANALYSIS_ELT_NAME

public static final String ANALYSIS_ELT_NAME
Tag name for analysiss in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

ArchAnalysisImpl

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

addAnalysis

public void addAnalysis(IAnalysis newAnalysis)
Description copied from interface: IArchAnalysis
Add a analysis to this ArchAnalysis.

Specified by:
addAnalysis in interface IArchAnalysis
Parameters:
newAnalysis - analysis to add.

addAnalysiss

public void addAnalysiss(Collection analysiss)
Description copied from interface: IArchAnalysis
Add a collection of analysiss to this ArchAnalysis.

Specified by:
addAnalysiss in interface IArchAnalysis
Parameters:
analysiss - analysiss to add.

clearAnalysiss

public void clearAnalysiss()
Description copied from interface: IArchAnalysis
Remove all analysiss from this ArchAnalysis.

Specified by:
clearAnalysiss in interface IArchAnalysis

removeAnalysis

public void removeAnalysis(IAnalysis analysisToRemove)
Description copied from interface: IArchAnalysis
Remove the given analysis from this ArchAnalysis. Matching is done by the isEquivalent(...) function.

Specified by:
removeAnalysis in interface IArchAnalysis
Parameters:
analysisToRemove - analysis to remove.

removeAnalysiss

public void removeAnalysiss(Collection analysiss)
Description copied from interface: IArchAnalysis
Remove all the given analysiss from this ArchAnalysis. Matching is done by the isEquivalent(...) function.

Specified by:
removeAnalysiss in interface IArchAnalysis
Parameters:
analysiss - analysis to remove.

getAllAnalysiss

public Collection getAllAnalysiss()
Description copied from interface: IArchAnalysis
Get all the analysiss from this ArchAnalysis.

Specified by:
getAllAnalysiss in interface IArchAnalysis
Returns:
all analysiss in this ArchAnalysis.

hasAnalysis

public boolean hasAnalysis(IAnalysis analysisToCheck)
Description copied from interface: IArchAnalysis
Determine if this ArchAnalysis contains a given analysis.

Specified by:
hasAnalysis in interface IArchAnalysis
Returns:
true if this ArchAnalysis contains the given analysisToCheck, false otherwise.

hasAnalysiss

public Collection hasAnalysiss(Collection analysissToCheck)
Description copied from interface: IArchAnalysis
Determine if this ArchAnalysis contains the given set of analysiss.

Specified by:
hasAnalysiss in interface IArchAnalysis
Parameters:
analysissToCheck - analysiss to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in analysiss 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.

hasAllAnalysiss

public boolean hasAllAnalysiss(Collection analysissToCheck)
Description copied from interface: IArchAnalysis
Determine if this ArchAnalysis contains each element in the given set of analysiss.

Specified by:
hasAllAnalysiss in interface IArchAnalysis
Parameters:
analysissToCheck - analysiss to check for.
Returns:
true if every element in analysiss is found in this ArchAnalysis, false otherwise.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library