Package net.morimekta.providence.model
Enum FunctionType._Field
- java.lang.Object
-
- java.lang.Enum<FunctionType._Field>
-
- net.morimekta.providence.model.FunctionType._Field
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FunctionType._Field>,net.morimekta.providence.descriptor.PField<FunctionType>
- Enclosing class:
- FunctionType
public static enum FunctionType._Field extends java.lang.Enum<FunctionType._Field> implements net.morimekta.providence.descriptor.PField<FunctionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATIONSDOCUMENTATIONEXCEPTIONSNAMEONE_WAYPARAMSRETURN_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FunctionType._FieldfieldForId(int id)static FunctionType._FieldfieldForName(java.lang.String name)static FunctionType._FieldfieldForPojoName(java.lang.String name)static FunctionType._FieldfindById(int id)static FunctionType._FieldfindByName(java.lang.String name)static FunctionType._FieldfindByPojoName(java.lang.String name)net.morimekta.providence.descriptor.PStructDescriptorgetArgumentsType()java.lang.ObjectgetDefaultValue()net.morimekta.providence.descriptor.PDescriptorgetDescriptor()intgetId()java.lang.StringgetName()java.lang.StringgetPojoName()net.morimekta.providence.descriptor.PRequirementgetRequirement()booleanhasDefaultValue()java.lang.StringtoString()static FunctionType._FieldvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FunctionType._Field[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOCUMENTATION
public static final FunctionType._Field DOCUMENTATION
-
ONE_WAY
public static final FunctionType._Field ONE_WAY
-
RETURN_TYPE
public static final FunctionType._Field RETURN_TYPE
-
NAME
public static final FunctionType._Field NAME
-
PARAMS
public static final FunctionType._Field PARAMS
-
EXCEPTIONS
public static final FunctionType._Field EXCEPTIONS
-
ANNOTATIONS
public static final FunctionType._Field ANNOTATIONS
-
-
Method Detail
-
values
public static FunctionType._Field[] 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 (FunctionType._Field c : FunctionType._Field.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FunctionType._Field valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getId
public int getId()
- Specified by:
getIdin interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
getRequirement
@Nonnull public net.morimekta.providence.descriptor.PRequirement getRequirement()
- Specified by:
getRequirementin interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
getDescriptor
@Nonnull public net.morimekta.providence.descriptor.PDescriptor getDescriptor()
- Specified by:
getDescriptorin interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
getArgumentsType
@Nullable public net.morimekta.providence.descriptor.PStructDescriptor getArgumentsType()
- Specified by:
getArgumentsTypein interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
getName
@Nonnull public java.lang.String getName()
- Specified by:
getNamein interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
getPojoName
@Nonnull public java.lang.String getPojoName()
- Specified by:
getPojoNamein interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
hasDefaultValue
public boolean hasDefaultValue()
- Specified by:
hasDefaultValuein interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
getDefaultValue
@Nullable public java.lang.Object getDefaultValue()
- Specified by:
getDefaultValuein interfacenet.morimekta.providence.descriptor.PField<FunctionType>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<FunctionType._Field>
-
findById
public static FunctionType._Field findById(int id)
- Parameters:
id- Field ID- Returns:
- The identified field or null
-
findByName
public static FunctionType._Field findByName(java.lang.String name)
- Parameters:
name- Field name- Returns:
- The named field or null
-
findByPojoName
public static FunctionType._Field findByPojoName(java.lang.String name)
- Parameters:
name- Field POJO name- Returns:
- The named field or null
-
fieldForId
public static FunctionType._Field fieldForId(int id)
- Parameters:
id- Field ID- Returns:
- The identified field
- Throws:
java.lang.IllegalArgumentException- If no such field
-
fieldForName
public static FunctionType._Field fieldForName(java.lang.String name)
- Parameters:
name- Field name- Returns:
- The named field
- Throws:
java.lang.IllegalArgumentException- If no such field
-
fieldForPojoName
public static FunctionType._Field fieldForPojoName(java.lang.String name)
- Parameters:
name- Field POJO name- Returns:
- The named field
- Throws:
java.lang.IllegalArgumentException- If no such field
-
-