Package org.fastnate.generator.context
Enum Class UniquePropertyQuality
- All Implemented Interfaces:
Serializable,Comparable<UniquePropertyQuality>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll primitives or entity references are allowed.Only primitives are allowed (even optional).Only required primitives and required entity references and are allowed.Only required primitives are allowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic UniquePropertyQualitygetMatchingQuality(Property<?, ?> property) Finds the best quality that matches the given property.abstract booleanIndicates which type of property is allowed for this quality.static UniquePropertyQualityReturns the enum constant of this class with the specified name.static UniquePropertyQuality[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
onlyRequiredPrimitives
Only required primitives are allowed. -
onlyRequired
Only required primitives and required entity references and are allowed. -
onlyPrimitives
Only primitives are allowed (even optional). -
all
All primitives or entity references are allowed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMatchingQuality
Finds the best quality that matches the given property.- Parameters:
property- the property to check- Returns:
- the quality with the lowest ordinal, that matches the given property, or
nullif the property is never allowed
-
isAllowed
Indicates which type of property is allowed for this quality.- Parameters:
property- the property to check- Returns:
trueif that property is allowed as unique property
-