Top Description Fields Constructors Methods
io.vertx.codegen

public final Enum PropertyKind

extends Enum<PropertyKind>
Class Inheritance
Imports
io.vertx.codegen.type.ClassKind, .TypeInfo, java.util.HashMap, .Map

The kind of property.
Author
Julien Viet

Field Summary

Modifier and TypeField and Description
public static final PropertyKind
LIST

The property is a list with a setter and optionally a getter.

public static final PropertyKind
MAP

The property is a map with a setter and optionally a getter.

public static final PropertyKind
SET

The property is a list with a setter and optionally a getter.

public static final PropertyKind
VALUE

The property is a single value setter and optionally a getter.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static PropertyKind
public boolean

Returns:

true if the property kind is a list
isList
()

public boolean

Returns:

true if the property kind is a map
isMap
()

public boolean

Returns:

true if the property kind is a set
isSet
()

public boolean

Returns:

true if the property kind is a single value
isValue
()

public static PropertyKind
public static PropertyKind[]
public 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"

Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

LISTback to summary
public static final PropertyKind LIST

The property is a list with a setter and optionally a getter.

MAPback to summary
public static final PropertyKind MAP

The property is a map with a setter and optionally a getter.

SETback to summary
public static final PropertyKind SET

The property is a list with a setter and optionally a getter.

VALUEback to summary
public static final PropertyKind VALUE

The property is a single value setter and optionally a getter.

Constructor Detail

PropertyKindback to summary
private PropertyKind()

Method Detail

forTypeback to summary
pack-priv static PropertyKind forType(ClassKind kind)
isListback to summary
public boolean isList()
Returns:boolean

true if the property kind is a list

isMapback to summary
public boolean isMap()
Returns:boolean

true if the property kind is a map

isSetback to summary
public boolean isSet()
Returns:boolean

true if the property kind is a set

isValueback to summary
public boolean isValue()
Returns:boolean

true if the property kind is a single value

valueOfback to summary
public static PropertyKind valueOf(String name)
valuesback to summary
public static PropertyKind[] values()
varsback to summary
public 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"