public class AttributeConsumingServiceUnmarshaller extends AbstractSAMLObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
throws UnmarshallingException {
AttributeConsumingService service = (AttributeConsumingService) parentSAMLObject;
if (childSAMLObject instanceof ServiceName) {
service.getNames().add((ServiceName) childSAMLObject);
} else if (childSAMLObject instanceof ServiceDescription) {
service.getDescriptions().add((ServiceDescription) childSAMLObject);
} else if (childSAMLObject instanceof RequestedAttribute) {
service.getRequestAttributes().add((RequestedAttribute) childSAMLObject);
} else {
super.processChildElement(parentSAMLObject, childSAMLObject);
}
}