public class TimestampUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
Timestamp timestamp = (Timestamp) parentXMLObject;
if (childXMLObject instanceof Created) {
timestamp.setCreated((Created) childXMLObject);
} else if (childXMLObject instanceof Expires) {
timestamp.setExpires((Expires) childXMLObject);
} else {
timestamp.getUnknownXMLObjects().add(childXMLObject);
}
}