|
exedio cope | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.exedio.cope.Feature
com.exedio.cope.Pattern
com.exedio.cope.pattern.LimitedListField<E>
public final class LimitedListField<E>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.exedio.cope.Pattern |
|---|
Pattern.BackedItem |
| Method Summary | ||
|---|---|---|
Condition |
contains(E value)
|
|
Condition |
equal(Collection<E> value)
|
|
SetValue[] |
execute(Collection value,
Item exceptionItem)
|
|
List<E> |
get(Item item)
|
|
Set<Class<? extends Throwable>> |
getInitialExceptions()
Returns the exceptions possibly thrown, when setting a value for this settable. |
|
Class |
getInitialType()
|
|
List<FunctionField<E>> |
getSourceFields()
|
|
List<FunctionField<E>> |
getSources()
Deprecated. Use getSourceFields() instead |
|
List<Wrapper> |
getWrappers()
|
|
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 |
isInitial()
Returns true, if a value for the settable should be specified on the creation of an item. |
|
SetValue<Collection<E>> |
map(Collection<E> value)
|
|
static
|
newList(FunctionField<E> source1,
FunctionField<E> source2)
|
|
static
|
newList(FunctionField<E> source1,
FunctionField<E> source2,
FunctionField<E> source3)
|
|
static
|
newList(FunctionField<E> template,
int maximumSize)
|
|
Condition |
notEqual(Collection<E> value)
|
|
void |
set(Item item,
Collection<? extends E> value)
|
|
| Methods inherited from class com.exedio.cope.Pattern |
|---|
addSource, getGeneratedTypes, getSourceTypes, getType, initialize, newSourceType, newSourceType, newType, newType, registerSource |
| Methods inherited from class com.exedio.cope.Feature |
|---|
getAnnotation, getID, getName, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static final <E> LimitedListField<E> newList(FunctionField<E> source1,
FunctionField<E> source2)
public static final <E> LimitedListField<E> newList(FunctionField<E> source1,
FunctionField<E> source2,
FunctionField<E> source3)
public static final <E> LimitedListField<E> newList(FunctionField<E> template,
int maximumSize)
public List<FunctionField<E>> getSourceFields()
getSourceFields in class PatternField.getPattern()public List<Wrapper> getWrappers()
getWrappers in class Featurepublic boolean isInitial()
Settable
isInitial in interface Settable<Collection<E>>public boolean isFinal()
Settable
isFinal in interface Settable<Collection<E>>public Class getInitialType()
getInitialType in interface Settable<Collection<E>>public Set<Class<? extends Throwable>> getInitialExceptions()
Settable
getInitialExceptions in interface Settable<Collection<E>>public List<E> get(Item item)
public void set(Item item,
Collection<? extends E> value)
throws UniqueViolationException,
MandatoryViolationException,
StringLengthViolationException,
FinalViolationException,
ClassCastException
UniqueViolationException
MandatoryViolationException
StringLengthViolationException
FinalViolationException
ClassCastExceptionpublic SetValue<Collection<E>> map(Collection<E> value)
map in interface Settable<Collection<E>>
public SetValue[] execute(Collection value,
Item exceptionItem)
execute in interface Settable<Collection<E>>public Condition equal(Collection<E> value)
public Condition notEqual(Collection<E> value)
public Condition contains(E value)
@Deprecated public List<FunctionField<E>> getSources()
getSourceFields() instead
getSources in class Pattern
|
Cope with Object Persistence |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||