PostalAddress

   
PersonName javax.xml.registry.infomodel

JAXR 1.0; JWSDP 1.0, J2EE 1.4
 public interface PersonName {  // Public Instance Methods  public abstract String getFirstName(  )        throws javax.xml.registry.JAXRException;  //L1  public abstract String getFullName(  )        throws javax.xml.registry.JAXRException;  //L0  public abstract String getLastName(  )        throws javax.xml.registry.JAXRException;  //L1  public abstract String getMiddleName(  )        throws javax.xml.registry.JAXRException;  //L1  public abstract void setFirstName(String   firstName   )        throws javax.xml.registry.JAXRException;  //L1  public abstract void setFullName(String   fullName   )        throws javax.xml.registry.JAXRException;  //L0  public abstract void setLastName(String   lastName   )        throws javax.xml.registry.JAXRException;  //L1  public abstract void setMiddleName(String   middleName   )        throws javax.xml.registry.JAXRException;  //L1  } 

The PersonName interface represents the name of a registry User . A level 0 registry provides only the ability to store the user's full name as a free-form string using the setFullName( ) method and to retrieve it by calling getFullName( ) . A level 1 JAXR provider additionally implements the methods that let you get and set a first name, middle name, and last name. The specification does not describe how to resolve the possible conflicts caused by using these additional methods together with the setFullName( ) method, or what getFullName( ) should return if both setFullName( ) and the methods that set part of the name have been used, as in the following code extract:

 personName.setFullName("John D. Doe"); personName.setFirstName("Jane"); String name = personName.getFullName(  ); //Result is undefined 

Passed To

User.setPersonName( )

Returned By

javax.xml.registry.LifeCycleManager.createPersonName( ) , User.getPersonName( )


   


Java Web Services in a Nutshell
Java Web Services in a Nutshell
ISBN: 0596003994
EAN: 2147483647
Year: 2003
Pages: 257
Authors: Kim Topley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net