@Override public ThirdPartyApplicationUse unmarshal(String v) throws Exception { int value = Integer.valueOf(v); ThirdPartyApplicationUse aKind = null; List<ThirdPartyApplicationUse> kinds = ThirdPartyApplicationUse.findAllThirdPartyApplicationUses(); Iterator<ThirdPartyApplicationUse> iterator = kinds.iterator(); while (iterator.hasNext()) { aKind = iterator.next(); if (aKind.getTypeMap() == value) { break; } } return aKind; }
@Override public String marshal(ThirdPartyApplicationUse v) throws Exception { return v.getTypeMap().toString(); }