public String value() { return name(); }
public static ServiceType fromValue(String v) { return valueOf(v); }
public io.motown.mobieurope.source.soap.schema.TransactionData getTransactionData() { io.motown.mobieurope.source.soap.schema.TransactionData transactionData = new io.motown.mobieurope.source.soap.schema.TransactionData(); transactionData.setServiceType(ServiceType.fromValue(this.serviceType.value())); transactionData.setTransactionStatus(io.motown.mobieurope.source.soap.schema.TransactionStatus.fromValue(this.transactionStatus.value())); transactionData.setEnergyConsumed(this.energyConsumed); transactionData.setEnergyUnit(io.motown.mobieurope.source.soap.schema.EnergyUnit.fromValue(this.energyUnit.value())); transactionData.setLocalOperatorIdentifier(this.localOperatorIdentifier); transactionData.setLocalServiceIdentifier(this.localServiceIdentifier); transactionData.setHomeOperatorIdentifier(this.homeOperatorIdentifier); transactionData.setUserIdentifier(this.userIdentifier); transactionData.setAuthorizationIdentifier(this.authorizationIdentifier); try { GregorianCalendar calendarStart = new GregorianCalendar(); GregorianCalendar calendarStop = new GregorianCalendar(); calendarStart.setTime(this.startTimestamp); calendarStop.setTime(this.endTimestamp); XMLGregorianCalendar xmlGregorianCalendarStart = DatatypeFactory.newInstance().newXMLGregorianCalendar(calendarStart); XMLGregorianCalendar xmlGregorianCalendarStop = DatatypeFactory.newInstance().newXMLGregorianCalendar(calendarStop); transactionData.setStartTimestamp(xmlGregorianCalendarStart); transactionData.setEndTimestamp(xmlGregorianCalendarStop); } catch (Exception e) { e.printStackTrace(); } return transactionData; }
public static ServiceType fromValue(String v) { return valueOf(v); }
public String value() { return name(); }