public class AttributeQueryDescriptorTypeUnmarshaller extends QueryDescriptorTypeUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
throws UnmarshallingException {
AttributeQueryDescriptorType descriptor = (AttributeQueryDescriptorType) parentSAMLObject;
if (childSAMLObject instanceof AttributeConsumingService) {
descriptor.getAttributeConsumingServices().add((AttributeConsumingService) childSAMLObject);
} else {
super.processChildElement(parentSAMLObject, childSAMLObject);
}
}