站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

UserImpl.StringPropertyAccessor - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.identity.db
Class UserImpl.StringPropertyAccessor

java.lang.Object
  extended byorg.jboss.portal.identity.db.UserImpl.PropertyAccessor
      extended byorg.jboss.portal.identity.db.UserImpl.StringPropertyAccessor
Enclosing class:
UserImpl

static class UserImpl.StringPropertyAccessor
extends UserImpl.PropertyAccessor


Field Summary
protected  java.lang.reflect.Field field
           
protected  boolean nullable
           
protected  java.lang.String propertyName
           
protected  boolean writable
           
 
Constructor Summary
UserImpl.StringPropertyAccessor(java.lang.String propertyName, java.lang.String fieldName, boolean writable, boolean nullable)
           
 
Method Summary
 java.lang.String get(java.lang.Object instance)
           
 java.lang.String getPropertyName()
           
 boolean isNullable()
           
 boolean isWritable()
           
 void set(java.lang.Object instance, java.lang.String string)
           
protected  java.lang.Object toObject(java.lang.String value)
          Perform the to object conversion.
 java.lang.String toString()
           
protected  java.lang.String toString(java.lang.Object value)
          Perform the to strong conversion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyName

protected final java.lang.String propertyName

field

protected final java.lang.reflect.Field field

writable

protected final boolean writable

nullable

protected final boolean nullable
Constructor Detail

UserImpl.StringPropertyAccessor

public UserImpl.StringPropertyAccessor(java.lang.String propertyName,
                                       java.lang.String fieldName,
                                       boolean writable,
                                       boolean nullable)
Method Detail

toObject

protected java.lang.Object toObject(java.lang.String value)
Description copied from class: UserImpl.PropertyAccessor
Perform the to object conversion.

Specified by:
toObject in class UserImpl.PropertyAccessor
Parameters:
value - the value to convert
Returns:
the converted value

toString

protected java.lang.String toString(java.lang.Object value)
Description copied from class: UserImpl.PropertyAccessor
Perform the to strong conversion.

Specified by:
toString in class UserImpl.PropertyAccessor
Parameters:
value - the value to convert
Returns:
the converted value

getPropertyName

public java.lang.String getPropertyName()

isNullable

public boolean isNullable()

isWritable

public boolean isWritable()

set

public void set(java.lang.Object instance,
                java.lang.String string)
         throws java.lang.IllegalArgumentException
Parameters:
instance - the user instance
string - the value
Throws:
java.lang.IllegalArgumentException - if the string cannot be converted to an object

get

public java.lang.String get(java.lang.Object instance)
                     throws java.lang.IllegalArgumentException
Parameters:
instance - the user instance
Returns:
the converted value
Throws:
java.lang.IllegalArgumentException - if the object cannot be converted to a string

toString

public java.lang.String toString()