/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { AttributeDesignatorType attributeDesignatorType = (AttributeDesignatorType) xmlObject; if (attribute.getLocalName().equals(AttributeDesignatorType.ATTRIBUTE_ID_ATTRIB_NAME)) { attributeDesignatorType.setAttribtueId( DatatypeHelper.safeTrimOrNullString(attribute.getValue())); } else if (attribute.getLocalName().equals(AttributeDesignatorType.DATA_TYPE_ATTRIB_NAME)) { attributeDesignatorType.setDataType( DatatypeHelper.safeTrimOrNullString(attribute.getValue())); } else if (attribute.getLocalName().equals(AttributeDesignatorType.ISSUER_ATTRIB_NAME)) { attributeDesignatorType.setIssuer(DatatypeHelper.safeTrimOrNullString(attribute.getValue())); } else if (attribute .getLocalName() .equals(AttributeDesignatorType.MUST_BE_PRESENT_ATTRIB_NAME)) { if (attribute.getValue().equals("True") || attribute.getValue().equals("true")) { attributeDesignatorType.setMustBePresentXSBoolean(XSBooleanValue.valueOf("1")); } else { attributeDesignatorType.setMustBePresentXSBoolean(XSBooleanValue.valueOf("0")); } } else { super.processAttribute(xmlObject, attribute); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { ResultType result = (ResultType) xmlObject; if (attribute.getLocalName().equals(ResultType.RESOURCE_ID_ATTTRIB_NAME)) { result.setResourceId(attribute.getValue()); } else { super.processAttribute(xmlObject, attribute); } }
/** {@inheritDoc} */ @Override protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { if (attribute.getLocalName().equals(ActionMatchType.MATCH_ID_ATTRIB_NAME)) { ActionMatchType matchType = (ActionMatchType) xmlObject; matchType.setMatchId(StringSupport.trimOrNull(attribute.getValue())); } else { super.processAttribute(xmlObject, attribute); } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { PolicyType policy = (PolicyType) xmlObject; if (attribute.getLocalName().equals(PolicyType.POLICY_ID_ATTRIB_NAME)) { policy.setPolicyId(attribute.getValue()); } else if (attribute.getLocalName().equals(PolicyType.VERSION_ATTRIB_NAME)) { policy.setVersion(attribute.getValue()); } else if (attribute.getLocalName().equals(PolicyType.RULE_COMBINING_ALG_ID_ATTRIB_NAME)) { policy.setRuleCombiningAlgoId(attribute.getValue()); } else { super.processAttribute(xmlObject, attribute); } }