|
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.Field<E>
public abstract class Field<E>
An field represents a persistently
stored field of a Type.
Subclasses specify the type of information to be stored
in the field.
For an overview here is a UML diagram.
| Method Summary | |
|---|---|
Collection<E> |
castCollection(Collection<?> c)
|
void |
check(E value)
|
SetValue[] |
execute(E value,
Item exceptionItem)
|
abstract E |
get(Item item)
|
String |
getColumnName()
Deprecated. Use SchemaInfo.getColumnName(Field) instead |
Set<Class<? extends Throwable>> |
getInitialExceptions()
Returns the exceptions possibly thrown, when setting a value for this settable. |
Class |
getInitialType()
|
Pattern |
getPattern()
|
List<Pattern> |
getPatterns()
Deprecated. |
Class<E> |
getValueClass()
|
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 field should be specified on the creation of an item. |
boolean |
isMandatory()
|
SetValue<E> |
map(E value)
|
SetValue<E> |
mapNull()
|
abstract Field<E> |
optional()
Returns a new Field, that differs from this Field by being optional. |
abstract void |
set(Item item,
E value)
|
abstract Field<E> |
toFinal()
Returns a new Field, that differs from this Field by being final. |
| Methods inherited from class com.exedio.cope.Feature |
|---|
getAnnotation, getID, getName, getType, getWrappers, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public abstract Field<E> toFinal()
isFinal()public abstract Field<E> optional()
isMandatory()public final boolean isFinal()
Settable
isFinal in interface Settable<E>toFinal()public final boolean isMandatory()
public boolean isInitial()
isFinal() || isMandatory().
isInitial in interface Settable<E>public Class getInitialType()
getInitialType in interface Settable<E>public Set<Class<? extends Throwable>> getInitialExceptions()
Settable
getInitialExceptions in interface Settable<E>public final Class<E> getValueClass()
public final Collection<E> castCollection(Collection<?> c)
public final SetValue<E> map(E value)
map in interface Settable<E>public final SetValue<E> mapNull()
public final SetValue[] execute(E value,
Item exceptionItem)
execute in interface Settable<E>
public final void check(E value)
throws ConstraintViolationException
ConstraintViolationExceptionpublic final Pattern getPattern()
Pattern.getSourceFields()public abstract E get(Item item)
public abstract void set(Item item,
E value)
@Deprecated public final String getColumnName()
SchemaInfo.getColumnName(Field) instead
@Deprecated public final List<Pattern> getPatterns()
|
Cope with Object Persistence |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||