public class PGPDataUnmarshaller extends AbstractXMLSignatureUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
PGPData pgpData = (PGPData) parentXMLObject;
if (childXMLObject instanceof PGPKeyID) {
pgpData.setPGPKeyID((PGPKeyID) childXMLObject);
} else if (childXMLObject instanceof PGPKeyPacket) {
pgpData.setPGPKeyPacket((PGPKeyPacket) childXMLObject);
} else {
// Unbounded choice of <any> wildcard elements
pgpData.getUnknownXMLObjects().add(childXMLObject);
}
}