public enum PropertyReadWrite extends Enum<PropertyReadWrite>
A property may be read-only, read-write or write-only. This enumeration models those options.
Enum Constant and Description |
---|
READ_ONLY
The property is read-only.
|
READ_WRITE
The property can be read and written.
|
WRITE_ONLY
The property is write-only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable()
Checks whether the property is readable.
|
boolean |
isWritable()
Checks whether the property is writable.
|
static PropertyReadWrite |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyReadWrite[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyReadWrite READ_WRITE
public static final PropertyReadWrite READ_ONLY
public static final PropertyReadWrite WRITE_ONLY
public static PropertyReadWrite[] values()
for (PropertyReadWrite c : PropertyReadWrite.values()) System.out.println(c);
public static PropertyReadWrite valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean isReadable()
public boolean isWritable()
Copyright © 2007–2013 Joda.org. All rights reserved.