public class ParticipantsUnmarshaller extends AbstractWSTrustObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
Participants participants = (Participants) parentXMLObject;
if (childXMLObject instanceof Primary) {
participants.setPrimary((Primary) childXMLObject);
} else if (childXMLObject instanceof Participant) {
participants.getParticipants().add((Participant) childXMLObject);
} else {
participants.getUnknownXMLObjects().add(childXMLObject);
}
}