use of iso.std.iso_iec._24727.tech.schema.RIMarkerType in project open-ecard by ecsec.
the class AndroidMarshaller method parseDIDMarkerType.
private DIDMarkerType parseDIDMarkerType(XmlPullParser parser) throws XmlPullParserException, IOException {
DIDMarkerType didMarker = new DIDMarkerType();
int eventType;
do {
parser.next();
eventType = parser.getEventType();
if (eventType == XmlPullParser.START_TAG) {
if (parser.getName().equals("PACEMarker")) {
didMarker.setPACEMarker((PACEMarkerType) this.parseMarker(parser, PACEMarkerType.class));
} else if (parser.getName().equals("TAMarker")) {
didMarker.setTAMarker((TAMarkerType) this.parseMarker(parser, TAMarkerType.class));
} else if (parser.getName().equals("CAMarker")) {
didMarker.setCAMarker((CAMarkerType) this.parseMarker(parser, CAMarkerType.class));
} else if (parser.getName().equals("RIMarker")) {
didMarker.setRIMarker((RIMarkerType) this.parseMarker(parser, RIMarkerType.class));
} else if (parser.getName().equals("CryptoMarker")) {
didMarker.setCryptoMarker((CryptoMarkerType) this.parseMarker(parser, CryptoMarkerType.class));
} else if (parser.getName().equals("PinCompareMarker")) {
didMarker.setPinCompareMarker((PinCompareMarkerType) this.parseMarker(parser, PinCompareMarkerType.class));
} else if (parser.getName().equals("RSAAuthMarker")) {
didMarker.setRSAAuthMarker((RSAAuthMarkerType) this.parseMarker(parser, RSAAuthMarkerType.class));
} else if (parser.getName().equals("MutualAuthMarker")) {
didMarker.setMutualAuthMarker((MutualAuthMarkerType) this.parseMarker(parser, MutualAuthMarkerType.class));
} else if (parser.getName().equals("EACMarker")) {
didMarker.setEACMarker((EACMarkerType) this.parseMarker(parser, EACMarkerType.class));
} else {
LOG.error(parser.getName() + " not yet implemented");
}
}
} while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals("DIDMarker")));
return didMarker;
}
Aggregations