|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PropertyStyle>
org.joda.beans.PropertyStyle
public enum PropertyStyle
An enumeration of property styles.
A property may be read-only, read-write or write-only. This enumeration models those options.
It is strongly recommended to use the methods, not compare against the enum values.
| Enum Constant Summary | |
|---|---|
DERIVED
The property is derived. |
|
IMMUTABLE
The property is immutable. |
|
READ_ONLY
The property is read-only. |
|
READ_WRITE
The property can be read and written. |
|
WRITE_ONLY
The property is write-only. |
|
| Method Summary | |
|---|---|
boolean |
isBuildable()
Checks whether the property can be used in the builder. |
boolean |
isDerived()
Checks whether the property is derived. |
boolean |
isReadable()
Checks whether the property is readable. |
boolean |
isSerializable()
Checks whether the property can be serialized in a round-trip. |
boolean |
isWritable()
Checks whether the property is writable. |
static PropertyStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PropertyStyle[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PropertyStyle READ_WRITE
public static final PropertyStyle READ_ONLY
public static final PropertyStyle WRITE_ONLY
public static final PropertyStyle DERIVED
public static final PropertyStyle IMMUTABLE
| Method Detail |
|---|
public static PropertyStyle[] values()
for (PropertyStyle c : PropertyStyle.values()) System.out.println(c);
public static PropertyStyle valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isReadable()
public boolean isWritable()
public boolean isBuildable()
public boolean isDerived()
public boolean isSerializable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||