*/
public class ReferencedPoliciesTypeUnmarshaller extends AbstractSAMLObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
ReferencedPoliciesType referencedpoliciesType = (ReferencedPoliciesType) parentObject;
if (childObject instanceof PolicyType) {
referencedpoliciesType.getPolicies().add((PolicyType) childObject);
} else if (childObject instanceof PolicySetType) {
referencedpoliciesType.getPolicySets().add((PolicySetType) childObject);
}
}