package at.gv.egiz.eaaf.modules.pvp2.impl.builder.reqattr; import org.opensaml.common.impl.AbstractSAMLObjectUnmarshaller; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.UnmarshallingException; import at.gv.egiz.eaaf.modules.pvp2.api.reqattr.EAAFRequestedAttribute; import at.gv.egiz.eaaf.modules.pvp2.api.reqattr.EAAFRequestedAttributes; public class EAAFRequestedAttributesUnmarshaller extends AbstractSAMLObjectUnmarshaller { protected final void processChildElement(final XMLObject parentObject, final XMLObject childObject) throws UnmarshallingException { final EAAFRequestedAttributes attrStatement = (EAAFRequestedAttributes) parentObject; if (childObject instanceof EAAFRequestedAttribute) { attrStatement.getAttributes().add((EAAFRequestedAttribute) childObject); } else super.processChildElement(parentObject, childObject); } }