public enum PropertyKind extends Enum<PropertyKind>
Enum Constant and Description |
---|
LIST
The property is a list with a setter and optionally a getter.
|
MAP
The property is a map with a setter and optionally a getter.
|
SET
The property is a list with a setter and optionally a getter.
|
VALUE
The property is a single value setter and optionally a getter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isList() |
boolean |
isMap() |
boolean |
isSet() |
boolean |
isValue() |
static PropertyKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Map<String,PropertyKind> |
vars()
Useful for testing the type property kind, allows to do prop.kind == PROP_VALUE instead of prop.kind.name() == "VALUE"
|
public static final PropertyKind VALUE
public static final PropertyKind LIST
public static final PropertyKind SET
public static final PropertyKind MAP
public static PropertyKind[] values()
for (PropertyKind c : PropertyKind.values()) System.out.println(c);
public static PropertyKind 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 isList()
public boolean isSet()
public boolean isMap()
public boolean isValue()
public static Map<String,PropertyKind> vars()
Copyright © 2020 Eclipse. All rights reserved.