*/
public class PolicyReferenceUnmarshaller extends AbstractWSPolicyObjectUnmarshaller {
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
PolicyReference pr = (PolicyReference) xmlObject;
QName uriName = new QName(PolicyReference.URI_ATTRIB_NAME);
QName digestName = new QName(PolicyReference.DIGEST_ATTRIB_NAME);
QName digestAlgorithmName = new QName(PolicyReference.DIGEST_ALGORITHM_ATTRIB_NAME);
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix());
if (uriName.equals(attribQName)) {
pr.setURI(attribute.getValue());
} else if (digestName.equals(attribQName)) {
pr.setDigest(attribute.getValue());
} else if (digestAlgorithmName.equals(attribQName)) {
pr.setDigestAlgorithm(attribute.getValue());
} else {
XMLHelper.unmarshallToAttributeMap(pr.getUnknownAttributes(), attribute);
}
}