org.omnaest.utils.beans
Class BeanUtil.BeanProperty

java.lang.Object
  extended by org.omnaest.utils.beans.BeanUtil.BeanProperty
Enclosing class:
BeanUtil

public static class BeanUtil.BeanProperty
extends Object

Holds information about a beans property

Author:
Omnaest

Constructor Summary
BeanUtil.BeanProperty()
           
 
Method Summary
 void assimilate(BeanUtil.BeanProperty beanProperty)
          Copy all information of a foreign beanProperty object, that are not null.
 String getGetterMethodName()
           
 String getPropertyName()
           
 String getSetterMethodName()
           
 boolean isReadable()
          Returns true, if the property can be read.
 boolean isReadAndWritable()
          Returns true, if bean has getter and setter access
 boolean isReadOnly()
          Returns true, if bean has only a getter method, but no setter method
 boolean isWritable()
          Returns true, if the property can be written.
 boolean isWriteOnly()
          Returns true, if bean has only a setter method, and no getter method
 void setGetterMethodName(String getterMethodName)
           
 void setPropertyName(String name)
           
 void setSetterMethodName(String setterMethodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanUtil.BeanProperty

public BeanUtil.BeanProperty()
Method Detail

isReadOnly

public boolean isReadOnly()
Returns true, if bean has only a getter method, but no setter method

Returns:
See Also:
isWriteOnly(), isReadAndWritable()

isReadable

public boolean isReadable()
Returns true, if the property can be read.

Returns:

isWriteOnly

public boolean isWriteOnly()
Returns true, if bean has only a setter method, and no getter method

Returns:
See Also:
isReadOnly(), isReadAndWritable()

isWritable

public boolean isWritable()
Returns true, if the property can be written.

Returns:

isReadAndWritable

public boolean isReadAndWritable()
Returns true, if bean has getter and setter access

Returns:
See Also:
isReadOnly(), isWriteOnly()

assimilate

public void assimilate(BeanUtil.BeanProperty beanProperty)
Copy all information of a foreign beanProperty object, that are not null. If informations are copied the own are overwritten.

Parameters:
beanProperty -

getPropertyName

public String getPropertyName()

setPropertyName

public void setPropertyName(String name)

getGetterMethodName

public String getGetterMethodName()

setGetterMethodName

public void setGetterMethodName(String getterMethodName)

getSetterMethodName

public String getSetterMethodName()

setSetterMethodName

public void setSetterMethodName(String setterMethodName)


Copyright © 2011. All Rights Reserved.