org.uddi.api_v3.Address.getSortCode()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中org.uddi.api_v3.Address.getSortCode()方法的一些代码示例,展示了Address.getSortCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Address.getSortCode()方法的具体详情如下:
包路径:org.uddi.api_v3.Address
类名称:Address
方法名:getSortCode

Address.getSortCode介绍

[英]Gets the value of the sortCode property. The sortCode attribute is deprecated because of the guarantee of preserving the document order (see Section 4.5.3 Preservation of Document Order). In order to achieve this behavior, the data has just to be published in the desired order.
[中]获取sortCode属性的值。不推荐使用sortCode属性,因为可以保证保存文档顺序(请参见第4.5.3节保存文档顺序)。为了实现这种行为,只需按所需的顺序发布数据。

代码示例

代码示例来源: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

for (org.uddi.api_v3.Address address : addressList) {
    if (address != null) {
        validateSortCode(address.getSortCode());
        validateKeyLength(address.getTModelKey());
        validateLang(address.getLang());

代码示例来源:origin: org.apache.juddi/juddi-core

for (org.uddi.api_v3.Address address : addressList) {
    if (address != null) {
        validateSortCode(address.getSortCode());
        validateKeyLength(address.getTModelKey());
        validateLang(address.getLang());

相关文章