/** A thread-safe Unmarshaller for {@link org.opensaml.samlext.saml2mdattr.EntityAttributes}. */
public class EntityAttributesUnmarshaller extends AbstractSAMLObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException {
EntityAttributes entityAttrs = (EntityAttributes) parentObject;
if (childObject instanceof Attribute) {
entityAttrs.getAttributes().add((Attribute) childObject);
} else if (childObject instanceof Assertion) {
entityAttrs.getAssertions().add((Assertion) childObject);
} else {
super.processChildElement(parentObject, childObject);
}
}