org.openliberty.xmltooling.dst2_1.ref
Class TestItem

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.openliberty.xmltooling.dst2_1.TestItemBaseType
          extended by org.openliberty.xmltooling.dst2_1.ref.TestItem
All Implemented Interfaces:
org.opensaml.xml.XMLObject
Direct Known Subclasses:
DAPTestItem

public class TestItem
extends TestItemBaseType

The <TestItem> contains a <TestOp> qualified by some attributes. The two, in conjunction with objectType are used to indicate

  1. the data on which the test is to be performed
  2. the reference data against which the data (1) is to be tested
  3. the nature of the test.
The content of the <TestOp>, the TestOpType, MUST be specified by the service specification that references DST. For example, if service specification specifies XPath as query language and WSC wanted to ask whether or not the principal is of age, it could do so as follows:
 <TestItem objectType="profile"> 
     <TestOp>//Age >= '21'</TestOp> 
 </TestItem> 
 
In the above example, all 3 aspects of the test are expressed within the XPath expression that appears in <TestOp>. Each <TestItem> evaluates to true or false depending on result of evaluation of the <TestOp>.

Author:
asa

Field Summary
static java.lang.String LOCAL_NAME
           
private  TestOp testOp
           
 
Fields inherited from class org.openliberty.xmltooling.dst2_1.TestItemBaseType
ATT_ID, ATT_ITEM_ID
 
Constructor Summary
protected TestItem(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
           
 
Method Summary
 java.util.List<org.opensaml.xml.XMLObject> getOrderedChildren()
           
 TestOp getTestOp()
           
 void setTestOp(TestOp testOp)
           
 
Methods inherited from class org.openliberty.xmltooling.dst2_1.TestItemBaseType
getId, getItemID, getSelectQualifAttributes, setId, setItemID
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_NAME

public static java.lang.String LOCAL_NAME

testOp

private TestOp testOp
Constructor Detail

TestItem

protected TestItem(java.lang.String namespaceURI,
                   java.lang.String elementLocalName,
                   java.lang.String namespacePrefix)
Method Detail

getTestOp

public TestOp getTestOp()

setTestOp

public void setTestOp(TestOp testOp)

getOrderedChildren

public java.util.List<org.opensaml.xml.XMLObject> getOrderedChildren()