Oracle Application Server Web Services UDDI Client API Reference
10g (9.0.4)

Part No. B10396-01

oracle.uddi.message.datatype.business
Class Contact

java.lang.Object
  |
  +--oracle.uddi.message.UddiElement
        |
        +--oracle.uddi.message.datatype.business.Contact

public class Contact
extends UddiElement

General information:

This class represents an element within UDDI API schema.

Element description:

It maps to contact element, which is used by businessEntity to describe a contact.


Field Summary
static java.lang.String ATTR_USETYPE
           
static java.lang.String ELT_PERSON_NAME
           
static java.lang.String UDDI_TAG
           

 

Constructor Summary
Contact(UddiElementFactory ueFactory)
           

 

Method Summary
 java.util.List getAddressList()
           
 java.util.List getDescriptionList()
           
 java.lang.String getEmail(java.lang.String szUseType)
           
 java.util.List getEmailList()
           
 java.lang.String getFirstDescription()
          Return the first description string, irrespective of the language.
 java.lang.String getPersonName()
           
 java.lang.String getPhone(java.lang.String szUseType)
           
 java.util.List getPhoneList()
           
 java.lang.String getTagName()
          Returns the local name of the tag of the UDDI Element.
 java.lang.String getUseType()
           
 void init()
          This method is not intended for use by clients of the API.
 void setAddressList(java.util.List listAddress)
           
 void setDefaultDescription(java.lang.String defaultDesc)
          Set the default description, i.e., the description without any language qualifier.
 void setDescriptionList(java.util.List listDescription)
           
 void setEmail(java.lang.String szUseType, java.lang.String szEmail)
          This is the recommended way of setting Email information.
 void setEmail(java.lang.String szUseType, java.lang.String szEmail, UddiElementFactory ueFactory)
          Deprecated.  
 void setEmailList(java.util.List listEmail)
           
 void setPersonName(java.lang.String personName)
           
 void setPhone(java.lang.String szUseType, java.lang.String szPhone)
          This is the recommended method for setting Phone information.
 void setPhone(java.lang.String szUseType, java.lang.String szPhone, UddiElementFactory ueFactory)
          Deprecated.  
 void setPhoneList(java.util.List listPhone)
           
 void setUseType(java.lang.String useType)
           

 

Methods inherited from class oracle.uddi.message.UddiElement
getElementName, getElementPrefix, getGeneric, getNamespaceUri, getUddiElementFactory, getVersion, hasEmptyContent, isV1Compatible, isV2Compatible, marshall, unmarshall

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

UDDI_TAG

public static final java.lang.String UDDI_TAG
See Also:
Constant Field Values

ATTR_USETYPE

public static final java.lang.String ATTR_USETYPE
See Also:
Constant Field Values

ELT_PERSON_NAME

public static final java.lang.String ELT_PERSON_NAME
See Also:
Constant Field Values
Constructor Detail

Contact

public Contact(UddiElementFactory ueFactory)
Method Detail

init

public void init()
Description copied from class: UddiElement

This method is not intended for use by clients of the API.

Initalizes the element. If the element has been initalized, it re-initalizes the element so that it is as if it is a new object. This method enables object reuse.

Note on re-initalization: Reinitalization is done such that the object will be in the state as if it is a new object. It implies that all sub-elements will be discarded. If the caller wants to re-use sub-elements, it is caller's responsibility to get the sub-elements prior to re-initalization and reassign the optional sub-elements after re-initalization.

For example, A tModel contains an optional sub-element identifierBag. Hence identifierBag will be discarded. If the caller wishes to re-use the identifierBag, the caller has to get the identifierBag, re-initalize it and assign it back as the tModel's identifierBag :

   ...
   IdentifierBag identifierBag = tModel.getIdentifierBag();
   tModel.init();
   identifierBag.init();
   tModel.setIdentifierBag(identifierBag);
   ...


Access to UddiElement and its sub-structure is not guaranteed to be thread-safe.

Every subclass of UddiElement MUST overwrite init(). In the implementation, it should always invoke super.init() and intialize/reinitialize subclass-specific members. The pattern is exactly the same as a Java constructor.

Overrides:
init in class UddiElement

getTagName

public java.lang.String getTagName()
Description copied from class: UddiElement
Returns the local name of the tag of the UDDI Element.
Specified by:
getTagName in class UddiElement

getUseType

public java.lang.String getUseType()

setUseType

public void setUseType(java.lang.String useType)

setDefaultDescription

public void setDefaultDescription(java.lang.String defaultDesc)
Set the default description, i.e., the description without any language qualifier. Existing default description, if present, will be replaced.
Parameters:
defaultDesc - the default description

getFirstDescription

public java.lang.String getFirstDescription()
Return the first description string, irrespective of the language.

getDescriptionList

public java.util.List getDescriptionList()

setDescriptionList

public void setDescriptionList(java.util.List listDescription)

getPersonName

public java.lang.String getPersonName()

setPersonName

public void setPersonName(java.lang.String personName)

getPhoneList

public java.util.List getPhoneList()

setPhoneList

public void setPhoneList(java.util.List listPhone)

getPhone

public java.lang.String getPhone(java.lang.String szUseType)

setPhone

public void setPhone(java.lang.String szUseType,
                     java.lang.String szPhone,
UddiElementFactory ueFactory)
Deprecated.  
Code should be migrated to use the other form of this method, which does not take a factory. In this version, the factory parameter will be ignored (it is not strictly necessary).

setPhone

public void setPhone(java.lang.String szUseType,
                     java.lang.String szPhone)
This is the recommended method for setting Phone information.

getEmailList

public java.util.List getEmailList()

setEmailList

public void setEmailList(java.util.List listEmail)

getEmail

public java.lang.String getEmail(java.lang.String szUseType)

setEmail

public void setEmail(java.lang.String szUseType,
                     java.lang.String szEmail,
UddiElementFactory ueFactory)
Deprecated.  
Code should be migrated to use the other form of this method, which does not take a factory. In this version, the factory parameter will be ignored (it is not strictly necessary).

setEmail

public void setEmail(java.lang.String szUseType,
                     java.lang.String szEmail)
This is the recommended way of setting Email information.

getAddressList

public java.util.List getAddressList()

setAddressList

public void setAddressList(java.util.List listAddress)

Oracle Application Server Web Services UDDI Client API Reference
10g (9.0.4)

Part No. B10396-01

Copyright © 2001, 2003, Oracle. All rights reserved.