Package com.exedio.cope.pattern
Class EnumSetField<E extends Enum<E>>
java.lang.Object
com.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.EnumSetField<E>
- All Implemented Interfaces:
Settable<EnumSet<E>>,Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanstatic <E extends Enum<E>>
EnumSetField<E>SetValue<?>[]BEWARE: Results are not unmodifiable, since EnumSets cannot be unmodifiable.Returns the exceptions possibly thrown, when setting a value for this settable.Deprecated.booleanisFinal()Returns true, if a value for the settable can be specified on the creation of an item only, thus cannot be modified later.booleanReturns true, if a value for the settable should be specified on the creation of an item.booleanstatic <E extends Enum<E>>
EnumSetField<E>Deprecated.Usecreate(Class)insteadvoidvoidtoFinal()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, registerSourceMethods 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
-
toFinal
-
getElementClass
-
getField
-
contains
-
add
-
remove
-
get
BEWARE: Results are not unmodifiable, since EnumSets cannot be unmodifiable. -
set
-
execute
-
isFinal
public boolean isFinal()Description copied from interface:SettableReturns 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:
isMandatoryin interfaceSettable<E extends Enum<E>>
-
getInitialType
- Specified by:
getInitialTypein interfaceSettable<E extends Enum<E>>
-
isInitial
public boolean isInitial()Description copied from interface:SettableReturns true, if a value for the settable should be specified on the creation of an item. -
getInitialExceptions
Description copied from interface:SettableReturns the exceptions possibly thrown, when setting a value for this settable.- Specified by:
getInitialExceptionsin interfaceSettable<E extends Enum<E>>
-
contains
-
newSet
Deprecated.Usecreate(Class)instead -
getKeyClass
Deprecated.UsegetElementClass()instead
-
getElementClass()instead