当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
User24Impl.PropertyAccessor - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.migration.model24.identity
Class User24Impl.PropertyAccessor
java.lang.Object
org.jboss.portal.migration.model24.identity.User24Impl.PropertyAccessor
- Direct Known Subclasses:
- User24Impl.BooleanPropertyAccessor, User24Impl.DatePropertyAccessor, User24Impl.StringPropertyAccessor
- Enclosing class:
- User24Impl
- abstract static class User24Impl.PropertyAccessor
- extends java.lang.Object
An accessor that maps a user field to a property name.
Constructor Summary |
User24Impl.PropertyAccessor(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 abstract java.lang.Object |
toObject(java.lang.String value)
Perform the to object conversion. |
java.lang.String |
toString()
|
protected abstract 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 |
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
User24Impl.PropertyAccessor
public User24Impl.PropertyAccessor(java.lang.String propertyName,
java.lang.String fieldName,
boolean writable,
boolean nullable)
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 instancestring
- 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
toObject
protected abstract java.lang.Object toObject(java.lang.String value)
throws java.lang.IllegalArgumentException
- Perform the to object conversion.
- Parameters:
value
- the value to convert
- Returns:
- the converted value
- Throws:
java.lang.IllegalArgumentException
- if the string cannot be converted to an object
toString
protected abstract java.lang.String toString(java.lang.Object value)
- Perform the to strong conversion.
- Parameters:
value
- the value to convert
- Returns:
- the converted value
- Throws:
java.lang.IllegalArgumentException
- if the object cannot be converted to a string
toString
public java.lang.String toString()