|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.analysis.AnalysisImpl
edu.uci.isr.xarch.tronanalysis.TronAnalysisImpl
DOM-Based implementation of the ITronAnalysis interface.
| Field Summary | |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
TEST_ELT_NAME
Tag name for tests in this object. |
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from class edu.uci.isr.xarch.analysis.AnalysisImpl |
elt, xArch |
| Fields inherited from interface edu.uci.isr.xarch.tronanalysis.ITronAnalysis |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
TronAnalysisImpl(Element elt)
|
|
| Method Summary | |
void |
addTest(ITest newTest)
Add a test to this TronAnalysis. |
void |
addTests(Collection tests)
Add a collection of tests to this TronAnalysis. |
void |
clearDescription()
Clear the description from this TronAnalysis. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearTests()
Remove all tests from this TronAnalysis. |
IXArchElement |
cloneElement(int depth)
|
Collection |
getAllTests()
Get all the tests from this TronAnalysis. |
IDescription |
getDescription()
Get the description from this TronAnalysis. |
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()
|
ITest |
getTest(String id)
Gets the test from this TronAnalysis with the given id. |
Collection |
getTests(Collection ids)
Gets the tests from this TronAnalysis with the given ids. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
boolean |
hasAllTests(Collection testsToCheck)
Determine if this TronAnalysis contains each element in the given set of tests. |
boolean |
hasDescription(IDescription value)
Determine if this TronAnalysis has the given description |
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasTest(ITest testToCheck)
Determine if this TronAnalysis contains a given test. |
Collection |
hasTests(Collection testsToCheck)
Determine if this TronAnalysis contains the given set of tests. |
boolean |
isEquivalent(ITronAnalysis c)
Determine if another TronAnalysis is equivalent to this one, ignoring ID's. |
void |
removeTest(ITest testToRemove)
Remove the given test from this TronAnalysis. |
void |
removeTests(Collection tests)
Remove all the given tests from this TronAnalysis. |
void |
setDescription(IDescription value)
Set the description for this TronAnalysis. |
void |
setId(String id)
Set the id attribute on this object. |
| Methods inherited from class edu.uci.isr.xarch.analysis.AnalysisImpl |
equals, getDOMNode, getXArch, hashCode, isEquivalent, setDOMNode, setXArch |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.uci.isr.xarch.analysis.IAnalysis |
isEquivalent |
| Methods inherited from interface edu.uci.isr.xarch.IXArchElement |
getXArch, setXArch |
| Methods inherited from interface edu.uci.isr.xarch.DOMBased |
getDOMNode, setDOMNode |
| Field Detail |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
public static final String ID_ATTR_NAME
public static final String DESCRIPTION_ELT_NAME
public static final String TEST_ELT_NAME
| Constructor Detail |
public TronAnalysisImpl(Element elt)
| Method Detail |
protected static SequenceOrder getSequenceOrder()
public IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementcloneElement in class AnalysisImplpublic XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementgetTypeMetadata in class AnalysisImplpublic XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementgetInstanceMetadata in class AnalysisImplpublic void setId(String id)
setId in interface ITronAnalysisid - attribute value.public void clearId()
clearId in interface ITronAnalysispublic String getId()
getId in interface ITronAnalysisnull if that
attribute is not set.public boolean hasId(String id)
hasId in interface ITronAnalysisid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
ITronAnalysis
setDescription in interface ITronAnalysisvalue - new descriptionpublic void clearDescription()
ITronAnalysis
clearDescription in interface ITronAnalysispublic IDescription getDescription()
ITronAnalysis
getDescription in interface ITronAnalysispublic boolean hasDescription(IDescription value)
ITronAnalysis
hasDescription in interface ITronAnalysisvalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addTest(ITest newTest)
ITronAnalysis
addTest in interface ITronAnalysisnewTest - test to add.public void addTests(Collection tests)
ITronAnalysis
addTests in interface ITronAnalysistests - tests to add.public void clearTests()
ITronAnalysis
clearTests in interface ITronAnalysispublic void removeTest(ITest testToRemove)
ITronAnalysisisEquivalent(...) function.
removeTest in interface ITronAnalysistestToRemove - test to remove.public void removeTests(Collection tests)
ITronAnalysisisEquivalent(...) function.
removeTests in interface ITronAnalysistests - test to remove.public Collection getAllTests()
ITronAnalysis
getAllTests in interface ITronAnalysispublic boolean hasTest(ITest testToCheck)
ITronAnalysis
hasTest in interface ITronAnalysistrue if this TronAnalysis contains the given
testToCheck, false otherwise.public Collection hasTests(Collection testsToCheck)
ITronAnalysis
hasTests in interface ITronAnalysistestsToCheck - tests to check for.
java.lang.Boolean. If the ith
element in tests 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.public boolean hasAllTests(Collection testsToCheck)
ITronAnalysis
hasAllTests in interface ITronAnalysistestsToCheck - tests to check for.
true if every element in
tests is found in this TronAnalysis,
false otherwise.public ITest getTest(String id)
ITronAnalysis
getTest in interface ITronAnalysisid - ID to look for.
null if not found.public Collection getTests(Collection ids)
ITronAnalysis
getTests in interface ITronAnalysisids - ID to look for.
public boolean isEquivalent(ITronAnalysis c)
ITronAnalysis
isEquivalent in interface ITronAnalysisc - TronAnalysis to compare to this one.
true if all the child elements of this
TronAnalysis are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||