public class DelegationRestrictionTypeUnmarshaller extends AbstractSAMLObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
throws UnmarshallingException {
DelegationRestrictionType drt = (DelegationRestrictionType) parentSAMLObject;
if (childSAMLObject instanceof Delegate) {
drt.getDelegates().add((Delegate) childSAMLObject);
} else {
super.processChildElement(parentSAMLObject, childSAMLObject);
}
}