Methods Summary |
---|
public void | addBody()
this._body = true;
|
public void | addTarget(javax.xml.namespace.QName targetName)
throw new UnsupportedOperationException();
|
public java.util.Iterator | getTargets()
populate();
if(header == null){
return Collections.emptyList().iterator();
}
return header.iterator();
|
public boolean | hasBody()
populate();
return this._body;
|
private void | populate()
populate(false);
|
private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
if ( this.hasNestedAssertions() ) {
Iterator <PolicyAssertion> it = this.getNestedAssertionsIterator();
while( it.hasNext() ) {
PolicyAssertion assertion = it.next();
if ( PolicyUtil.isBody(assertion)) {
this._body = true;
} else {
if(header == null){
header = new ArrayList<Header>();
}
if(PolicyUtil.isHeader(assertion)){
this.header.add((Header)assertion);
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,EncryptedParts);
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
}
}
populated = true;
}
return fitness;
|
public void | removeBody()
throw new UnsupportedOperationException();
|
public void | removeTarget(javax.xml.namespace.QName targetName)
throw new UnsupportedOperationException();
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|