Package org.apache.accumulo.core.conf
Enum PropertyType
- java.lang.Object
-
- java.lang.Enum<PropertyType>
-
- org.apache.accumulo.core.conf.PropertyType
-
- All Implemented Interfaces:
Serializable
,Comparable<PropertyType>
public enum PropertyType extends Enum<PropertyType>
Types ofProperty
values. Each type has a short name, a description, and a regex which valid values match. All of these fields are optional.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyType.PortRange
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTEPATH
BOOLEAN
CLASSNAME
CLASSNAMELIST
COUNT
DURABILITY
FRACTION
GC_POST_ACTION
HOSTLIST
MEMORY
PATH
PORT
PREFIX
STRING
TIMEDURATION
URI
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValidFormat(String value)
Checks if the given value is valid for this type.String
toString()
static PropertyType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PropertyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREFIX
public static final PropertyType PREFIX
-
TIMEDURATION
public static final PropertyType TIMEDURATION
-
MEMORY
public static final PropertyType MEMORY
-
HOSTLIST
public static final PropertyType HOSTLIST
-
PORT
public static final PropertyType PORT
-
COUNT
public static final PropertyType COUNT
-
FRACTION
public static final PropertyType FRACTION
-
PATH
public static final PropertyType PATH
-
ABSOLUTEPATH
public static final PropertyType ABSOLUTEPATH
-
CLASSNAME
public static final PropertyType CLASSNAME
-
CLASSNAMELIST
public static final PropertyType CLASSNAMELIST
-
DURABILITY
public static final PropertyType DURABILITY
-
GC_POST_ACTION
public static final PropertyType GC_POST_ACTION
-
STRING
public static final PropertyType STRING
-
BOOLEAN
public static final PropertyType BOOLEAN
-
URI
public static final PropertyType URI
-
-
Method Detail
-
values
public static PropertyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertyType c : PropertyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<PropertyType>
-
isValidFormat
public boolean isValidFormat(String value)
Checks if the given value is valid for this type.- Returns:
- true if value is valid or null, or if this type has no regex
-
-