*/
public class PolicyUnmarshaller extends OperatorContentTypeUnmarshaller {
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
Policy policy = (Policy) xmlObject;
QName nameQName = new QName(Policy.NAME_ATTRIB_NAME);
QName attribQName =
XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
if (nameQName.equals(attribQName)) {
policy.setName(attribute.getValue());
} else if (Policy.WSU_ID_ATTR_NAME.equals(attribQName)) {
policy.setWSUId(attribute.getValue());
attribute.getOwnerElement().setIdAttributeNode(attribute, true);
} else {
XMLHelper.unmarshallToAttributeMap(policy.getUnknownAttributes(), attribute);
}
}