Methods Summary |
---|
public void | addTarget(java.lang.String target)
if ( targetList == null ) {
targetList = new ArrayList<String>();
}
targetList.add(target);
|
public java.util.Iterator | getTargets()
populate();
if ( targetList != null ) {
return targetList.iterator();
}
return emptyList.iterator();
|
public java.lang.String | getXPathVersion()
populate();
return xpathVersion;
|
private synchronized AssertionFitness | populate(boolean isServer)
if ( !populated ) {
this.xpathVersion = this.getAttributeValue(XPathVersion);
if ( this.hasNestedAssertions() ) {
Iterator <PolicyAssertion> it = this.getNestedAssertionsIterator();
while( it.hasNext() ) {
PolicyAssertion assertion = (PolicyAssertion) it.next();
if ( PolicyUtil.isXPath(assertion )) {
addTarget(assertion.getValue());
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,SignedElements);
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
}
populated = true;
}
return fitness;
|
private void | populate()
populate(false);
|
public void | removeTarget(java.lang.String target)
if ( targetList != null ) {
targetList.remove(target);
}
|
public void | setXPathVersion(java.lang.String version)
this.xpathVersion = version;
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|