}
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
PolicyAttachment pa = (PolicyAttachment) parentXMLObject;
if (childXMLObject instanceof AppliesTo) {
pa.setAppliesTo((AppliesTo) childXMLObject);
} else if (childXMLObject instanceof Policy) {
pa.getPolicies().add((Policy) childXMLObject);
} else if (childXMLObject instanceof PolicyReference) {
pa.getPolicyReferences().add((PolicyReference) childXMLObject);
} else {
pa.getUnknownXMLObjects().add(childXMLObject);
}
}