public enum UniquePropertyQuality extends Enum<UniquePropertyQuality>
Enum Constant and Description |
---|
all
All primitives or entity references are allowed.
|
onlyPrimitives
Only primitives are allowed (even optional).
|
onlyRequired
Only required primitives and required entity references and are allowed.
|
onlyRequiredPrimitives
Only required primitives are allowed.
|
Modifier and Type | Method and Description |
---|---|
static UniquePropertyQuality |
getMatchingQuality(Property<?,?> property)
Finds the best quality that matches the given property.
|
abstract boolean |
isAllowed(Property<?,?> property)
Indicates which type of property is allowed for this quality.
|
static UniquePropertyQuality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UniquePropertyQuality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UniquePropertyQuality onlyRequiredPrimitives
public static final UniquePropertyQuality onlyRequired
public static final UniquePropertyQuality onlyPrimitives
public static final UniquePropertyQuality all
public static UniquePropertyQuality[] values()
for (UniquePropertyQuality c : UniquePropertyQuality.values()) System.out.println(c);
public static UniquePropertyQuality valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static UniquePropertyQuality getMatchingQuality(Property<?,?> property)
property
- the property to checknull
if the property is
never allowedpublic abstract boolean isAllowed(Property<?,?> property)
property
- the property to checktrue
if that property is allowed as unique propertyCopyright © 2022 fastnate.org. All rights reserved.