/**
* @see javax.xml.bind.annotation.adapters.XmlAdapter#unmarshal(java.lang.Object)
*/
@Override
public String unmarshal(NameAndNamespacePair v) throws Exception {
if (v != null) {
KimTypeContract kimType = KimApiServiceLocator.getKimTypeInfoService().findKimTypeByNameAndNamespace(
v.getNamespaceCode(), new NormalizedStringAdapter().unmarshal(v.getName()));
if (kimType == null) {
throw new UnmarshalException("Cannot find KIM Type with namespace \"" + v.getNamespaceCode() + "\" and name \"" + v.getName() + "\"");
}
return kimType.getId();
}
return null;
}
NameAndNamespacePairToKimTypeIdAdapter.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:kc-rice
作者:
评论列表
文章目录