/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { SubjectQuery query = (SubjectQuery) parentSAMLObject; if (childSAMLObject instanceof Subject) { query.setSubject((Subject) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ public void validate(QueryType subjectQuery) throws ValidationException { if (subjectQuery.getSubject() == null) { throw new ValidationException("Subject element is missing"); } } }