electric.uddi
Class Contact

java.lang.Object
  extended byelectric.uddi.Contact
All Implemented Interfaces:
ISerializable, IUDDIConstants

public final class Contact
extends java.lang.Object
implements ISerializable, IUDDIConstants

Contact represents a UDDI contact.

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.uddi.IUDDIConstants
ACCESS_POINT, ADD_PUBLISHER_ASSERTIONS, ADDRESS, ADDRESS_LINE, AND_ALL_KEYS, ASCENDING, ASSERTION_STATUS_ITEM, ASSERTION_STATUS_REPORT, ASSERTION_TYPE, AUTH_INFO, AUTH_TOKEN, AUTHORIZED_NAME, BINDING_DETAIL, BINDING_KEY, BINDING_TEMPLATE, BINDING_TEMPLATES, BINDING_TYPE, BUSINESS_DETAIL, BUSINESS_DETAIL_EXT, BUSINESS_ENTITY, BUSINESS_ENTITY_EXT, BUSINESS_INFO, BUSINESS_INFOS, BUSINESS_KEY, BUSINESS_LIST, BUSINESS_SERVICE, BUSINESS_SERVICES, BUSINESS_TYPE, CASE_SENSITIVE_MATCH, CATEGORY_BAG, CHECKED, COMBINE_CATEGORY_BAGS, COMPARE_AND_ALL_KEYS, COMPARE_OR_ALL_KEYS, COMPARE_OR_LIKE_KEYS, comparisonStrategies, COMPLETION_STATUS, CONTACT, CONTACTS, CRED, DEFAULT_SITE_OPERATOR, DELETE_BINDING, DELETE_BUSINESS, DELETE_PUBLISHER_ASSERTIONS, DELETE_SERVICE, DELETE_SUBSCRIPTION, DELETE_TMODEL, DESCENDING, DESCRIPTION, directions, DISCARD_AUTH_TOKEN, DISCOVERY_URL, DISCOVERY_URLS, DISPOSITION_REPORT, E_accountLimitExceeded, E_accountLimitExceeded_TEXT, E_assertionNotFound, E_assertionNotFound_TEXT, E_authTokenExpired, E_authTokenExpired_TEXT, E_authTokenRequired, E_authTokenRequired_TEXT, E_busy, E_busy_TEXT, E_categorizationNotAllowed, E_categorizationNotAllowed_TEXT, E_fatalError, E_fatalError_TEXT, E_invalidCategory, E_invalidCategory_TEXT, E_invalidCompletionStatus, E_invalidCompletionStatus_TEXT, E_invalidKeyPassed, E_invalidKeyPassed_TEXT, E_invalidProjection, E_invalidProjection_TEXT, E_invalidURLPassed, E_invalidURLPassed_TEXT, E_invalidValue, E_invalidValue_TEXT, E_keyRetired, E_keyRetired_TEXT, E_languageError, E_languageError_TEXT, E_messageTooLarge, E_messageTooLarge_TEXT, E_nameTooLong, E_nameTooLong_TEXT, E_operatorMismatch, E_operatorMismatch_TEXT, E_other, E_other_TEXT, E_publisherCancelled, E_publisherCancelled_TEXT, E_requestDenied, E_requestDenied_TEXT, E_secretUnknown, E_secretUnknown_TEXT, E_success, E_success_TEXT, E_tooManyOptions, E_tooManyOptions_TEXT, E_transferAborted, E_transferAborted_TEXT, E_unknownUser, E_unknownUser_TEXT, E_unrecognizedVersion, E_unrecognizedVersion_TEXT, E_unsupported, E_unsupported_TEXT, E_userMismatch, E_userMismatch_TEXT, E_valueNotAllowed, E_valueNotAllowed_TEXT, EMAIL, ENTITY_KEY, ERR_CODE, ERR_INFO, ERR_NO, EXACT_NAME_MATCH, FIND_BINDING, FIND_BUSINESS, FIND_QUALIFIER, FIND_QUALIFIERS, FIND_RELATED_BUSINESSES, FIND_SERVICE, FIND_TMODEL, FROM_KEY, FROM_USER, GENERIC, GET_ASSERTION_STATUS_REPORT, GET_AUTH_TOKEN, GET_BINDING_DETAIL, GET_BUSINESS_DETAIL, GET_BUSINESS_DETAIL_EXT, GET_OPERATIONAL_INFO, GET_PUBLISHER_ASSERTIONS, GET_REGISTERED_INFO, GET_SERVICE_DETAIL, GET_SUBSCRIPTION_RESULTS, GET_SUBSCRIPTIONS, GET_TMODEL_DETAIL, HIDDEN, HOSTING_REDIRECTOR, IDENTIFIER, IDENTIFIER_BAG, INQUIRY_METHODS, INSTANCE_DETAILS, INSTANCE_PARMS, KEY_NAME, KEY_VALUE, KEYED_REFERENCE, KEYS_OWNED, LANG, MAX_ROWS, MAX_STANDARD_SERVICES, NAME, NONE, OK, OPERATIONAL_INFOS, OPERATOR, OR_ALL_KEYS, OR_LIKE_KEYS, OVERVIEW_DOC, OVERVIEW_URL, PERSON_NAME, PHONE, PUBLISH_METHODS, PUBLISHER_ASSERTION, PUBLISHER_ASSERTIONS, REGISTERED_INFO, RELATED_BUSINESS_INFO, RELATED_BUSINESS_INFOS, RELATED_BUSINESS_LIST, RESULT, SAVE_BINDING, SAVE_BUSINESS, SAVE_SERVICE, SAVE_SUBSCRIPTION, SAVE_TMODEL, SERVICE_DETAIL, SERVICE_INFO, SERVICE_INFOS, SERVICE_KEY, SERVICE_LIST, SERVICE_SUBSET, SERVICE_TYPE, SET_PUBLISHER_ASSERTIONS, SHARED_RELATIONSHIPS, SORT_BY_DATE_ASCENDING, SORT_BY_DATE_DESCENDING, SORT_BY_NAME_ASCENDING, SORT_BY_NAME_DESCENDING, SORT_CODE, SOUNDEX_NAME_MATCH, SUBSCRIPTION_TYPE, TMODEL, TMODEL_BAG, TMODEL_DETAIL, TMODEL_INFO, TMODEL_INFOS, TMODEL_INSTANCE_DETAILS, TMODEL_INSTANCE_INFO, TMODEL_KEY, TMODEL_LIST, TMODEL_TYPE, TO_KEY, TO_USER, TRUE, TRUNCATED, UDDI, UDDI_BUS_ENTITY_NAME, UDDI_BUS_ENTITY_UUID, UDDI_BUS_REL_NAME, UDDI_BUS_REL_UUID, UDDI_DUNS_NAME, UDDI_DUNS_UUID, UDDI_FAX_NAME, UDDI_FAX_UUID, UDDI_FTP_NAME, UDDI_FTP_UUID, UDDI_GENERAL_KEYWORD_KEY, UDDI_GENERAL_KEYWORD_NAME, UDDI_HOMEPAGE_NAME, UDDI_HOMEPAGE_UUID, UDDI_HTTP_NAME, UDDI_HTTP_UUID, UDDI_INQUIRY_API_NAME, UDDI_INQUIRY_API_NAME_V2, UDDI_INQUIRY_API_UUID, UDDI_INQUIRY_API_UUID_V2, UDDI_ISO3166_NAME, UDDI_ISO3166_UUID, UDDI_MAX_NAME_LENGTH, UDDI_MAX_NAMES, UDDI_MAX_ROWS, UDDI_MISC_TAXONOMY_NAME, UDDI_MISC_TAXONOMY_UUID, UDDI_NAICS_NAME, UDDI_NAICS_UUID, UDDI_NAMESPACE_V1, UDDI_NAMESPACE_V2, UDDI_NAMESPACE_V3, UDDI_OPERATOR_MAX_ROWS, UDDI_OPERATORS_NAME, UDDI_OPERATORS_UUID, UDDI_PUBLISH_API_NAME, UDDI_PUBLISH_API_NAME_V2, UDDI_PUBLISH_API_UUID, UDDI_PUBLISH_API_UUID_V2, UDDI_SMTP_NAME, UDDI_SMTP_UUID, UDDI_SOAP_ACTION, UDDI_STATUS_COMPLETE, UDDI_STATUS_FROM_KEY_INCOMPLETE, UDDI_STATUS_TO_KEY_INCOMPLETE, UDDI_TAXONOMY_API_NAME, UDDI_TAXONOMY_API_NAME_V2, UDDI_TAXONOMY_API_UUID, UDDI_TAXONOMY_API_UUID_V2, UDDI_TELEPHONE_NAME, UDDI_TELEPHONE_UUID, UDDI_THOMAS_REGISTER_NAME, UDDI_THOMAS_REGISTER_UUID, UDDI_TYPE_TAXONOMY_NAME, UDDI_TYPE_TAXONOMY_NAME_UUID, UDDI_UNSPSC_NAME, UDDI_UNSPSC_UUID, UDDI_V1, UDDI_V2, UDDI_V3, UNCHECKED, UPLOAD_REGISTER, URL_TYPE, USE_TYPE, USER_ID, USER_NAME, USER_TYPE, XML
 
Constructor Summary
Contact()
          Construct a Contact with no initial values.
Contact(java.lang.String personName)
          Construct a Contact with the specified person name.
 
Method Summary
 void addAddress(Address address)
          Add an address.
 void addDescription(Description description)
          Add the specified description.
 void addEmail(Email email)
          Add an email.
 void addPersonName(Name name)
           
 void addPhone(Phone phone)
          Add the phone.
 Address[] getAddresses()
          Return an array of my addresses.
 Description[] getDescriptions()
          Return my descriptions.
 Email[] getEmails()
          Return an array of my emails.
 java.lang.String getPersonName()
           
 Name[] getPersonNames()
           
 Phone[] getPhones()
          Return an array of my phones.
 java.lang.String getUseType()
          Return my use type.
 void read(IReader reader)
          Restore myself from the specified reader.
 void removeAddress(Address address)
          Remove an address.
 void removeDescription(Description description)
          Remove the specified description.
 void removeEmail(Email email)
          Remove an email.
 void removePersonName(Name name)
           
 void removePhone(Phone phone)
          Remove the phone.
 void setDescriptions(Description[] descriptions)
          Set my descriptions.
 void setPersonName(java.lang.String text)
           
 void setPersonNames(Name[] names)
           
 void setUseType(java.lang.String useType)
          Set my use type.
 java.lang.String toString()
          Return my description.
 void write(IWriter writer)
          Write myself to the specified writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Contact

public Contact()
Construct a Contact with no initial values.


Contact

public Contact(java.lang.String personName)
Construct a Contact with the specified person name.

Parameters:
personName - The initial person name.
Method Detail

toString

public java.lang.String toString()
Return my description.


getPersonNames

public Name[] getPersonNames()

setPersonNames

public void setPersonNames(Name[] names)
Parameters:
names -

addPersonName

public void addPersonName(Name name)
Parameters:
name -

removePersonName

public void removePersonName(Name name)
Parameters:
name -

getPersonName

public java.lang.String getPersonName()

setPersonName

public void setPersonName(java.lang.String text)
Parameters:
text -

setUseType

public void setUseType(java.lang.String useType)
Set my use type.

Parameters:
useType - The new use type.

getUseType

public java.lang.String getUseType()
Return my use type.


getDescriptions

public Description[] getDescriptions()
Return my descriptions.


setDescriptions

public void setDescriptions(Description[] descriptions)
Set my descriptions.

Parameters:
descriptions - The descriptions.

addDescription

public void addDescription(Description description)
Add the specified description.

Parameters:
description - The description.

removeDescription

public void removeDescription(Description description)
Remove the specified description.

Parameters:
description - The description.

addPhone

public void addPhone(Phone phone)
Add the phone.

Parameters:
phone - The phone to add.

removePhone

public void removePhone(Phone phone)
Remove the phone.

Parameters:
phone - The phone to remove.

getPhones

public Phone[] getPhones()
Return an array of my phones.


addEmail

public void addEmail(Email email)
Add an email.

Parameters:
email - The email to add.

removeEmail

public void removeEmail(Email email)
Remove an email.

Parameters:
email - The email to remove.

getEmails

public Email[] getEmails()
Return an array of my emails.


addAddress

public void addAddress(Address address)
Add an address.

Parameters:
address - The address to add.

removeAddress

public void removeAddress(Address address)
Remove an address.

Parameters:
address - The address to remove.

getAddresses

public Address[] getAddresses()
Return an array of my addresses.


write

public void write(IWriter writer)
           throws java.io.IOException
Write myself to the specified writer.

Specified by:
write in interface ISerializable
Parameters:
writer - The IWriter
Throws:
java.io.IOException - If a serialization error occurs.

read

public void read(IReader reader)
          throws java.io.IOException
Restore myself from the specified reader.

Specified by:
read in interface ISerializable
Parameters:
reader - The IReader
Throws:
java.io.IOException - If a deserialization error occurs.


copyright© 2001-2004 by webMethods All Rights Reserved.