Package net.morimekta.providence.server
Enum ProvidenceHttpError._Field
- java.lang.Object
-
- java.lang.Enum<ProvidenceHttpError._Field>
-
- net.morimekta.providence.server.ProvidenceHttpError._Field
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProvidenceHttpError._Field>,net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
- Enclosing class:
- ProvidenceHttpError
public static enum ProvidenceHttpError._Field extends java.lang.Enum<ProvidenceHttpError._Field> implements net.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGESTATUS_CODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProvidenceHttpError._FieldfieldForId(int id)static ProvidenceHttpError._FieldfieldForName(java.lang.String name)static ProvidenceHttpError._FieldfieldForPojoName(java.lang.String name)static ProvidenceHttpError._FieldfindById(int id)static ProvidenceHttpError._FieldfindByName(java.lang.String name)static ProvidenceHttpError._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()net.morimekta.providence.descriptor.PMessageDescriptor<ProvidenceHttpError>onMessageType()java.lang.StringtoString()static ProvidenceHttpError._FieldvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProvidenceHttpError._Field[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGE
public static final ProvidenceHttpError._Field MESSAGE
-
STATUS_CODE
public static final ProvidenceHttpError._Field STATUS_CODE
-
-
Method Detail
-
values
public static ProvidenceHttpError._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 (ProvidenceHttpError._Field c : ProvidenceHttpError._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 ProvidenceHttpError._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<ProvidenceHttpError>
-
getRequirement
@Nonnull public net.morimekta.providence.descriptor.PRequirement getRequirement()
- Specified by:
getRequirementin interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
getDescriptor
@Nonnull public net.morimekta.providence.descriptor.PDescriptor getDescriptor()
- Specified by:
getDescriptorin interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
getArgumentsType
@Nullable public net.morimekta.providence.descriptor.PStructDescriptor getArgumentsType()
- Specified by:
getArgumentsTypein interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
getName
@Nonnull public java.lang.String getName()
- Specified by:
getNamein interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
getPojoName
@Nonnull public java.lang.String getPojoName()
- Specified by:
getPojoNamein interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
hasDefaultValue
public boolean hasDefaultValue()
- Specified by:
hasDefaultValuein interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
getDefaultValue
@Nullable public java.lang.Object getDefaultValue()
- Specified by:
getDefaultValuein interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
onMessageType
@Nonnull public net.morimekta.providence.descriptor.PMessageDescriptor<ProvidenceHttpError> onMessageType()
- Specified by:
onMessageTypein interfacenet.morimekta.providence.descriptor.PField<ProvidenceHttpError>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<ProvidenceHttpError._Field>
-
findById
public static ProvidenceHttpError._Field findById(int id)
- Parameters:
id- Field ID- Returns:
- The identified field or null
-
findByName
public static ProvidenceHttpError._Field findByName(java.lang.String name)
- Parameters:
name- Field name- Returns:
- The named field or null
-
findByPojoName
public static ProvidenceHttpError._Field findByPojoName(java.lang.String name)
- Parameters:
name- Field POJO name- Returns:
- The named field or null
-
fieldForId
public static ProvidenceHttpError._Field fieldForId(int id)
- Parameters:
id- Field ID- Returns:
- The identified field
- Throws:
java.lang.IllegalArgumentException- If no such field
-
fieldForName
public static ProvidenceHttpError._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 ProvidenceHttpError._Field fieldForPojoName(java.lang.String name)
- Parameters:
name- Field POJO name- Returns:
- The named field
- Throws:
java.lang.IllegalArgumentException- If no such field
-
-