public class DiscoHintsUnmarshaller extends AbstractSAMLObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
throws UnmarshallingException {
DiscoHints info = (DiscoHints) parentSAMLObject;
if (childSAMLObject instanceof IPHint) {
info.getIPHints().add((IPHint) childSAMLObject);
} else if (childSAMLObject instanceof DomainHint) {
info.getDomainHints().add((DomainHint) childSAMLObject);
} else if (childSAMLObject instanceof GeolocationHint) {
info.getGeolocationHints().add((GeolocationHint) childSAMLObject);
} else {
super.processChildElement(parentSAMLObject, childSAMLObject);
}
}