public class GQLAttributeEnumMetaData extends GQLAbstractAttributeMetaData
| Constructor and Description |
|---|
GQLAttributeEnumMetaData()
Default constructor
|
GQLAttributeEnumMetaData(String name,
Class<? extends Enum<?>> enumClass)
Constructor passing name and enum class and keeping default values for
other attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToString(StringBuilder stringBuilder) |
Class<? extends Enum<?>> |
getEnumClass()
Get the enum class
|
GQLAttributeEnumMetaData |
setEnumClass(Class<? extends Enum<?>> enumClass)
Set the enum class
|
getDescription, getDynamicAttributeGetter, getDynamicAttributeSetter, getName, isDynamic, isDynamicAttributeGetter, isDynamicAttributeSetter, isFilterable, isMandatory, isMandatoryForCreate, isMandatoryForUpdate, isNullable, isNullableForCreate, isNullableForUpdate, isReadable, isSaveable, setDescription, setDynamicAttributeGetter, setDynamicAttributeSetter, setFilterable, setMandatory, setMandatoryForCreate, setMandatoryForUpdate, setName, setNullable, setNullableForCreate, setNullableForUpdate, setReadable, setSaveablefinalizeToString, toStringpublic GQLAttributeEnumMetaData()
public GQLAttributeEnumMetaData(String name, Class<? extends Enum<?>> enumClass)
name - the name for the attribute. This name will be used for
building GraphQL schema : queries, mutations, descriptions
etc.enumClass - the enum classprotected void appendToString(StringBuilder stringBuilder)
appendToString in class GQLAbstractAttributeMetaDatapublic Class<? extends Enum<?>> getEnumClass()
public GQLAttributeEnumMetaData setEnumClass(Class<? extends Enum<?>> enumClass)
enumClass - the enumClass to setCopyright © 2019. All rights reserved.