Example usage for javax.xml.registry.infomodel PostalAddress setStateOrProvince

List of usage examples for javax.xml.registry.infomodel PostalAddress setStateOrProvince

Introduction

In this page you can find the example usage for javax.xml.registry.infomodel PostalAddress setStateOrProvince.

Prototype

public void setStateOrProvince(String stateOrProvince) throws JAXRException;

Source Link

Document

Sets the state or province.

Usage

From source file:it.cnr.icar.eric.client.xml.registry.LifeCycleManagerImpl.java

/**
 * Create a PostalAddress instance using the specified parameters.
 * /*from  ww w . j a  v a 2s .c  o m*/
 * 
 * <p>
 * <DL>
 * <DT><B>Capability Level: 0 </B>
 * </DL>
 * 
 */
public PostalAddress createPostalAddress(String streetNumber, String street, String city,
        String stateOrProvince, String country, String postalCode, String type) throws JAXRException {
    PostalAddress addr = new PostalAddressImpl(this);
    addr.setStreetNumber(streetNumber);
    addr.setStreet(street);
    addr.setCity(city);
    addr.setStateOrProvince(stateOrProvince);
    addr.setCountry(country);
    addr.setPostalCode(postalCode);
    addr.setType(type);

    return addr;
}