com.sun.xml.registry.client.browser.registration
Class UserModel

java.lang.Object
  extended bycom.sun.xml.registry.client.browser.registration.UserModel
All Implemented Interfaces:
Model

public class UserModel
extends java.lang.Object
implements Model

Wrapper around User. This allows us to check the validity of the input. Usually one would do that in the model itself (i.e. class User), but an extra layer inbetween gives us more flexibility.

Author:
Fabian Ritzmann

Constructor Summary
UserModel(javax.xml.registry.infomodel.User u)
           
 
Method Summary
 java.lang.String getAlias()
          Method getAlias.
 EmailAddressModel getEmailAddressModel()
          Method getEmailAddressModel.
 char[] getKeyPassword()
          Method getKeyPassword.
 PersonNameModel getPersonNameModel()
          Method getPersonNameModel.
 PostalAddressModel getPostalAddressModel()
          Method getPostalAddressModel.
 char[] getStorePassword()
          Method getStorePassword.
 TelephoneNumberModel getTelephoneNumberModel()
          Method getTelephoneNumberModel.
 javax.xml.registry.infomodel.User getUser()
           
 void setAlias(java.lang.String text)
          Method setAlias.
 void setKeyPassword(char[] text)
          Method setKeyPassword.
 void setStorePassword(char[] text)
           
 void validate()
          Validates the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserModel

public UserModel(javax.xml.registry.infomodel.User u)
          throws javax.xml.registry.JAXRException
Parameters:
u - Underlying User implementation
Method Detail

getUser

public javax.xml.registry.infomodel.User getUser()

setAlias

public void setAlias(java.lang.String text)
Method setAlias.

Parameters:
text -

setKeyPassword

public void setKeyPassword(char[] text)
Method setKeyPassword.

Parameters:
text -

setStorePassword

public void setStorePassword(char[] text)

getAlias

public java.lang.String getAlias()
Method getAlias.


getKeyPassword

public char[] getKeyPassword()
Method getKeyPassword.


getStorePassword

public char[] getStorePassword()
Method getStorePassword.


getPersonNameModel

public PersonNameModel getPersonNameModel()
Method getPersonNameModel.


getEmailAddressModel

public EmailAddressModel getEmailAddressModel()
Method getEmailAddressModel.


getPostalAddressModel

public PostalAddressModel getPostalAddressModel()
Method getPostalAddressModel.


getTelephoneNumberModel

public TelephoneNumberModel getTelephoneNumberModel()
Method getTelephoneNumberModel.


validate

public void validate()
              throws javax.xml.registry.JAXRException
Description copied from interface: Model
Validates the model. The method may alter the state of the object, e.g. remove empty elements.

Specified by:
validate in interface Model
Throws:
javax.xml.registry.JAXRException - Thrown if the model is invalid or validation encountered an internal error


Copyright © 2001-2004 OASIS. All Rights Reserved.