Name
PersonName
Synopsis
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(StringfirstName
) throws javax.xml.registry.JAXRException; //L1 public abstract void setFullName(StringfullName
) throws javax.xml.registry.JAXRException; //L0 public abstract void setLastName(StringlastName
) throws javax.xml.registry.JAXRException; //L1 public abstract void setMiddleName(StringmiddleName
) 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 ...
Get Java Web Services in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.