return new PrimitiveAssertion(RM11Constants.WSRMP_RMASSERTION_QNAME, isOptional(element),
isIgnorable(element), mp);
}
public Assertion newPolicyContainingAssertion(Element element, Map<QName, String> mp,
Policy policy) {
return new PolicyContainingPrimitiveAssertion(RM11Constants.WSRMP_RMASSERTION_QNAME,
isOptional(element), isIgnorable(element), mp, policy);
}
};
assertion = nesting.build(elem, factory);
} else if (SEQUENCESTR_NAME.equals(lname)) {
assertion = new PrimitiveAssertion(SEQSTR_QNAME, optional);
} else if (SEQUENCETRANSEC_NAME.equals(lname)) {
assertion = new PrimitiveAssertion(SEQTRANSSEC_QNAME, optional);
} else if (DELIVERYASSURANCE_NAME.equals(lname)) {
// DeliveryAssurance, with nested policy
XMLPrimitiveAssertionBuilder nesting = new XMLPrimitiveAssertionBuilder() {
public Assertion newPrimitiveAssertion(Element element, Map<QName, String> mp) {
return new PrimitiveAssertion(DELIVERYASSURANCE_QNAME, isOptional(element),
isIgnorable(element), mp);
}
public Assertion newPolicyContainingAssertion(Element element, Map<QName, String> mp,
Policy policy) {
return new PolicyContainingPrimitiveAssertion(DELIVERYASSURANCE_QNAME,
isOptional(element), isIgnorable(element), mp, policy);
}
};
assertion = nesting.build(elem, factory);