Package com.exedio.cope.reflect
Class FeatureField<E extends Feature>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.reflect.FeatureField<E>
- All Implemented Interfaces:
Settable<E>
,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureField<Feature>
create()
static <E extends Feature>
FeatureField<E>SetValue<?>[]
Returns the exceptions possibly thrown, when setting a value for this settable.Class<?>
boolean
isFinal()
Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.boolean
Returns true, if a value for the settable should be specified on the creation of an item.boolean
static FeatureField<Feature>
newField()
Deprecated.static <E extends Feature>
FeatureField<E>Deprecated.Usecreate(Class)
insteadoptional()
<P extends Item>
PsearchUnique
(Class<P> typeClass, E value) Finds an item by it's unique fields.void
toFinal()
unique()
Methods inherited from class com.exedio.cope.Pattern
addSource, addSource, addSource, addSource, addSourceFeature, addSourceFeature, addSourceFeature, annotationField, equals, getGeneratedTypes, getSourceFeatures, getSourceFeaturesGather, getSourceFields, getSources, getSourceTypes, getType, hashCode, initialize, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newSourceType, newType, newType, onMount, registerSource
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Method Details
-
create
-
create
-
toFinal
-
optional
-
unique
-
getValueClass
-
getIdField
-
isInitial
public boolean isInitial()Description copied from interface:Settable
Returns true, if a value for the settable should be specified on the creation of an item. -
isFinal
public boolean isFinal()Description copied from interface:Settable
Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later. -
isMandatory
public boolean isMandatory()- Specified by:
isMandatory
in interfaceSettable<E extends Feature>
-
getInitialType
- Specified by:
getInitialType
in interfaceSettable<E extends Feature>
-
getInitialExceptions
Description copied from interface:Settable
Returns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptions
in interfaceSettable<E extends Feature>
-
getImplicitUniqueConstraint
-
get
-
getId
-
set
-
execute
-
getValues
-
isInvalid
-
searchUnique
Finds an item by it's unique fields.- Returns:
- null if there is no matching item.
- Throws:
NullPointerException
- if value is null.
-
newField
Deprecated.Usecreate()
instead -
newField
Deprecated.Usecreate(Class)
instead
-
create()
instead