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()
return xpathVersion;
|
private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
this.xpathVersion = (String)this.getAttributeValue(XPathVersion);
if ( this.hasNestedAssertions() ) {
Iterator <PolicyAssertion> it = this.getNestedAssertionsIterator();
if ( it.hasNext() ) {
PolicyAssertion assertion = it.next();
if ( PolicyUtil.isXPath(assertion)) {
addTarget(assertion.getValue());
} else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,EncryptedElements);
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);
|