com.psoft.hsphere.axis
Class ContactInfo

java.lang.Object
  extended by com.psoft.hsphere.axis.ContactInfo
All Implemented Interfaces:
java.io.Serializable

public class ContactInfo
extends java.lang.Object
implements java.io.Serializable

The ContactInfo class represents contact information for an user

See Also:
Serialized Form

Constructor Summary
ContactInfo()
          Initializes a newly created ContactInfo object.
ContactInfo(java.lang.String address1, java.lang.String address2, java.lang.String address3, java.lang.String city, java.lang.String country, java.lang.String email, java.lang.String fax, java.lang.String first_name, java.lang.String last_name, java.lang.String org_name, java.lang.String phone, java.lang.String postal_code, java.lang.String state, java.lang.String state2)
          Allocates a new ContactInfo so that it represents the data currently contained in arguments.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAddress1()
          Returns user address 1
 java.lang.String getAddress2()
          Returns user address 2
 java.lang.String getAddress3()
          Returns user address 3
 java.lang.String getCity()
          Returns user city
 java.lang.String getCountry()
          Returns 2 letter user country code
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
           
 java.lang.String getEmail()
          Returns user contact email
 java.lang.String getFax()
          Returns user fax number
 java.lang.String getFirst_name()
          Returns user first name
 java.lang.String getLast_name()
          Returns user last name
 java.lang.String getOrg_name()
          Returns user organization name
 java.lang.String getPhone()
          Returns user phone number
 java.lang.String getPostal_code()
          Returns user ZIP code
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
           
 java.lang.String getState()
          Returns user state 2 letter code
 java.lang.String getState2()
          Returns user state2 2 letter code
static org.apache.axis.description.TypeDesc getTypeDesc()
           
 int hashCode()
           
 void setAddress1(java.lang.String address1)
          Sets user address 1
 void setAddress2(java.lang.String address2)
          Sets user address 2
 void setAddress3(java.lang.String address3)
          Sets user address 3
 void setCity(java.lang.String city)
          Sets user city
 void setCountry(java.lang.String country)
          Sets user 2 letter country code
 void setEmail(java.lang.String email)
          Sets user email address
 void setFax(java.lang.String fax)
          Sets user fax number
 void setFirst_name(java.lang.String first_name)
          Sets user first name
 void setLast_name(java.lang.String last_name)
          Sets user last name
 void setOrg_name(java.lang.String org_name)
          Sets user organization name
 void setPhone(java.lang.String phone)
          Sets user phone number
 void setPostal_code(java.lang.String postal_code)
          Sets user ZIP code
 void setState(java.lang.String state)
          Sets user 2 letter state code
 void setState2(java.lang.String state2)
          Sets user 2 letter state 2 code
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactInfo

public ContactInfo()
Initializes a newly created ContactInfo object. All class variables are empty and should be allocated.


ContactInfo

public ContactInfo(java.lang.String address1,
                   java.lang.String address2,
                   java.lang.String address3,
                   java.lang.String city,
                   java.lang.String country,
                   java.lang.String email,
                   java.lang.String fax,
                   java.lang.String first_name,
                   java.lang.String last_name,
                   java.lang.String org_name,
                   java.lang.String phone,
                   java.lang.String postal_code,
                   java.lang.String state,
                   java.lang.String state2)
Allocates a new ContactInfo so that it represents the data currently contained in arguments.

Parameters:
first_name - User first name. Alphanumeric value, starts with a letter
last_name - User last name. Alphanumeric value, starts with a letter
org_name - Organization name. Alphanumeric value, starts with a non-blank symbol
address1 - User address 1. Alphanumeric value, starts with a non-blank symbol
address2 - User address 2. Alphanumeric value, starts with a non-blank symbol
address3 - User address 3. Alphanumeric value, starts with a non-blank symbol
city - User city. Alphanumeric value, starts with a letter
state - User state code. Contains 2 chars
state2 - User state 2 code. Contains 2 chars
country - User country code. Contains 2 chars
postal_code - User ZIP code. Format: xxxx xxxx (2-9 characters)
phone - User phone.
Phone number format depends on the country you've chosen.

  • For North America:
    either NXX-NXX-XXXX/YYYY
    or +1.ZZZZZZZZZZ/YYYY

  • For other countries:
    +CCC.ZZZZZZZZZZ/YYYY ,
where:
N is a digit 2 to 9,
X is any digit,
YYYY is an optional extension (up to 4 digits),
CCC is a country code (up to 3 digits),
ZZZZZZZZZZ is a phone number inside the country .

Examples:
800-234-5678 (USA)
+1.8002345678 USA alternative)
+44.2081234567 (UK)
fax - User fax number. Telephone number, optional
email - User email. Format: xxx@yyy.zzz
Method Detail

getAddress1

public java.lang.String getAddress1()
Returns user address 1

Returns:
address 1

setAddress1

public void setAddress1(java.lang.String address1)
Sets user address 1

Parameters:
address1 - User address 1. Alphanumeric value, starts with a non-blank symbol

getAddress2

public java.lang.String getAddress2()
Returns user address 2

Returns:
address 2

setAddress2

public void setAddress2(java.lang.String address2)
Sets user address 2

Parameters:
address2 - User address 2. Alphanumeric value, starts with a non-blank symbol

getAddress3

public java.lang.String getAddress3()
Returns user address 3

Returns:
address 3

setAddress3

public void setAddress3(java.lang.String address3)
Sets user address 3

Parameters:
address3 - User address 3. Alphanumeric value, starts with a non-blank symbol

getCity

public java.lang.String getCity()
Returns user city

Returns:
city

setCity

public void setCity(java.lang.String city)
Sets user city

Parameters:
city - User city. Alphanumeric value, starts with a letter

getCountry

public java.lang.String getCountry()
Returns 2 letter user country code

Returns:
2 letter country code

setCountry

public void setCountry(java.lang.String country)
Sets user 2 letter country code

Parameters:
country - User country code. Contains 2 chars

getEmail

public java.lang.String getEmail()
Returns user contact email

Returns:
email

setEmail

public void setEmail(java.lang.String email)
Sets user email address

Parameters:
email - User email. Format: xxx@yyy.zzz

getFax

public java.lang.String getFax()
Returns user fax number

Returns:
fax number

setFax

public void setFax(java.lang.String fax)
Sets user fax number

Parameters:
fax - User fax number. Telephone number, optional

getFirst_name

public java.lang.String getFirst_name()
Returns user first name

Returns:
first name

setFirst_name

public void setFirst_name(java.lang.String first_name)
Sets user first name

Parameters:
first_name - User first name. Alphanumeric value, starts with a letter

getLast_name

public java.lang.String getLast_name()
Returns user last name

Returns:
last name

setLast_name

public void setLast_name(java.lang.String last_name)
Sets user last name

Parameters:
last_name - User last name. Alphanumeric value, starts with a letter

getOrg_name

public java.lang.String getOrg_name()
Returns user organization name

Returns:
organization name

setOrg_name

public void setOrg_name(java.lang.String org_name)
Sets user organization name

Parameters:
org_name - Organization name. Alphanumeric value, starts with a non-blank symbol

getPhone

public java.lang.String getPhone()
Returns user phone number

Returns:
phone number

setPhone

public void setPhone(java.lang.String phone)
Sets user phone number

Parameters:
phone - User phone number.
Phone number format depends on the country you've chosen.

  • For North America:
    either NXX-NXX-XXXX/YYYY
    or +1.ZZZZZZZZZZ/YYYY

  • For other countries:
    +CCC.ZZZZZZZZZZ/YYYY ,
where:
N is a digit 2 to 9,
X is any digit,
YYYY is an optional extension (up to 4 digits),
CCC is a country code (up to 3 digits),
ZZZZZZZZZZ is a phone number inside the country .

Examples:
800-234-5678 (USA)
+1.8002345678 USA alternative)
+44.2081234567 (UK)

getPostal_code

public java.lang.String getPostal_code()
Returns user ZIP code

Returns:
ZIP code

setPostal_code

public void setPostal_code(java.lang.String postal_code)
Sets user ZIP code

Parameters:
postal_code - User ZIP code. Format: xxxx xxxx (2-9 characters)

getState

public java.lang.String getState()
Returns user state 2 letter code

Returns:
2 letter state code

setState

public void setState(java.lang.String state)
Sets user 2 letter state code

Parameters:
state - User state code. Contains 2 chars

getState2

public java.lang.String getState2()
Returns user state2 2 letter code

Returns:
2 letter state2 code

setState2

public void setState2(java.lang.String state2)
Sets user 2 letter state 2 code

Parameters:
state2 - User state 2 code. Contains 2 chars

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()

getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)

getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)


Copyright © 2005 Positive Software Corporation. All Rights Reserved.