本文整理了Java中org.uddi.api_v3.Address.getTModelKey()
方法的一些代码示例,展示了Address.getTModelKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Address.getTModelKey()
方法的具体详情如下:
包路径:org.uddi.api_v3.Address
类名称:Address
方法名:getTModelKey
[英]Gets the value of the tModelKey property.
[中]获取tModelKey属性的值。
代码示例来源:origin: org.apache.juddi/juddi-client
private static List<Address> MapAddress(List<org.uddi.api_v3.Address> address) {
List<Address> r = new ArrayList<Address>();
if (address == null) {
return r;
}
for (int i = 0; i < address.size(); i++) {
Address x = new Address();
x.setSortCode(address.get(i).getSortCode());
x.setTModelKey(address.get(i).getTModelKey());
x.setUseType(address.get(i).getUseType());
x.getAddressLine().addAll(MapAddressLine(address.get(i).getAddressLine()));
r.add(x);
}
return r;
}
代码示例来源:origin: org.apache.juddi/uddi-tck-base
public static void PrintContacts(Contacts contacts) {
if (contacts == null) {
return;
}
for (int i = 0; i < contacts.getContact().size(); i++) {
System.out.println("Contact " + i + " type:" + contacts.getContact().get(i).getUseType());
for (int k = 0; k < contacts.getContact().get(i).getPersonName().size(); k++) {
System.out.println("Name: " + contacts.getContact().get(i).getPersonName().get(k).getValue());
}
for (int k = 0; k < contacts.getContact().get(i).getEmail().size(); k++) {
System.out.println("Email: " + contacts.getContact().get(i).getEmail().get(k).getValue());
}
for (int k = 0; k < contacts.getContact().get(i).getAddress().size(); k++) {
System.out.println("Address sort code " + contacts.getContact().get(i).getAddress().get(k).getSortCode());
System.out.println("Address use type " + contacts.getContact().get(i).getAddress().get(k).getUseType());
System.out.println("Address tmodel key " + contacts.getContact().get(i).getAddress().get(k).getTModelKey());
for (int x = 0; x < contacts.getContact().get(i).getAddress().get(k).getAddressLine().size(); x++) {
System.out.println("Address line value " + contacts.getContact().get(i).getAddress().get(k).getAddressLine().get(x).getValue());
System.out.println("Address line key name " + contacts.getContact().get(i).getAddress().get(k).getAddressLine().get(x).getKeyName());
System.out.println("Address line key value " + contacts.getContact().get(i).getAddress().get(k).getAddressLine().get(x).getKeyValue());
}
}
for (int k = 0; k < contacts.getContact().get(i).getDescription().size(); k++) {
System.out.println("Desc: " + contacts.getContact().get(i).getDescription().get(k).getValue());
}
for (int k = 0; k < contacts.getContact().get(i).getPhone().size(); k++) {
System.out.println("Phone: " + contacts.getContact().get(i).getPhone().get(k).getValue());
}
}
}
代码示例来源:origin: org.apache.juddi/juddi-core
/**
*
* @param apiAddressList
* @param modelAddressList
* @param modelContact
* @param businessKey
* @throws DispositionReportFaultMessage
*/
public static void mapContactAddresses(List<org.uddi.api_v3.Address> apiAddressList,
List<org.apache.juddi.model.Address> modelAddressList,
org.apache.juddi.model.Contact modelContact
)
throws DispositionReportFaultMessage {
modelAddressList.clear();
for (org.uddi.api_v3.Address apiAddress : apiAddressList) {
org.apache.juddi.model.Address modelAddress = new org.apache.juddi.model.Address(modelContact);
modelAddress.setSortCode(apiAddress.getSortCode());
modelAddress.setTmodelKey(apiAddress.getTModelKey());
modelAddress.setUseType(apiAddress.getUseType());
mapAddressLines(apiAddress.getAddressLine(), modelAddress.getAddressLines(), modelAddress, modelContact.getId());
modelAddressList.add(modelAddress);
}
}
代码示例来源:origin: org.apache.juddi/juddi-core-openjpa
/**
*
* @param apiAddressList
* @param modelAddressList
* @param modelContact
* @param businessKey
* @throws DispositionReportFaultMessage
*/
public static void mapContactAddresses(List<org.uddi.api_v3.Address> apiAddressList,
List<org.apache.juddi.model.Address> modelAddressList,
org.apache.juddi.model.Contact modelContact
)
throws DispositionReportFaultMessage {
modelAddressList.clear();
for (org.uddi.api_v3.Address apiAddress : apiAddressList) {
org.apache.juddi.model.Address modelAddress = new org.apache.juddi.model.Address(modelContact);
modelAddress.setSortCode(apiAddress.getSortCode());
modelAddress.setTmodelKey(apiAddress.getTModelKey());
modelAddress.setUseType(apiAddress.getUseType());
mapAddressLines(apiAddress.getAddressLine(), modelAddress.getAddressLines(), modelAddress, modelContact.getId());
modelAddressList.add(modelAddress);
}
}
代码示例来源:origin: org.apache.juddi/juddi-core-openjpa
if (address != null) {
validateSortCode(address.getSortCode());
validateKeyLength(address.getTModelKey());
validateLang(address.getLang());
validateUseType(address.getUseType());
boolean checked = true;
if (address.getTModelKey() != null) {
address.setTModelKey(address.getTModelKey().toLowerCase());
validatedAddressLinesIfKeyDefined(address.getAddressLine());
checked = verifyTModelKeyExistsAndChecked(address.getTModelKey(), config);
代码示例来源:origin: org.apache.juddi/juddi-core
if (address != null) {
validateSortCode(address.getSortCode());
validateKeyLength(address.getTModelKey());
validateLang(address.getLang());
validateUseType(address.getUseType());
boolean checked = true;
if (address.getTModelKey() != null) {
address.setTModelKey(address.getTModelKey().toLowerCase());
validatedAddressLinesIfKeyDefined(address.getAddressLine());
checked = verifyTModelKeyExistsAndChecked(address.getTModelKey(), config);
内容来源于网络,如有侵权,请联系作者删除!