}
if (MetadataConstants.ADDRESSING_ASSERTION_QNAME.equals(qn)
|| MetadataConstants.ADDRESSING_ASSERTION_QNAME_0705.equals(qn)) {
Assertion nap = new XMLPrimitiveAssertionBuilder() {
public Assertion newPrimitiveAssertion(Element element, Map<QName, String> mp) {
return new PrimitiveAssertion(MetadataConstants.ADDRESSING_ASSERTION_QNAME,
isOptional(element), isIgnorable(element), mp);
}
public Assertion newPolicyContainingAssertion(Element element,
Map<QName, String> mp,
Policy policy) {
return new PolicyContainingPrimitiveAssertion(
MetadataConstants.ADDRESSING_ASSERTION_QNAME,
isOptional(element), isIgnorable(element),
mp,
policy);
}
} .build(elem, factory);
return nap;
} else if (MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME.equals(qn)
|| MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME_0705.equals(qn)) {
return new PrimitiveAssertion(MetadataConstants.ANON_RESPONSES_ASSERTION_QNAME,
optional);
} else if (MetadataConstants.NON_ANON_RESPONSES_ASSERTION_QNAME.getLocalPart()
.equals(localName)
|| MetadataConstants.NON_ANON_RESPONSES_ASSERTION_QNAME_0705.getLocalPart()
.equals(localName)) {
return new PrimitiveAssertion(MetadataConstants.NON_ANON_RESPONSES_ASSERTION_QNAME,
optional);
}
return null;
}