Method Summary |
|
public void | addListener(ConstrainedPropertyListener listener) Adds a new listener. |
public T | autoRetrieved(boolean autoRetrieved) Sets whether the content data of this property should be retrieved
automatically from the back-end. |
public ConstrainedProperty | clone() |
public T | constraint(String name, Object constraintData) Sets the data of a particular constraint in a generic
fashion. |
public T | contentAttribute(String name, boolean value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, char value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, byte value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, short value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, int value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, long value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, float value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, double value) Sets a named content attribute for this property that will be converted
internally to a String value. |
public T | contentAttribute(String name, String value) Sets a named content attribute for this property. |
public T | defaultValue(boolean value) |
public T | defaultValue(char value) |
public T | defaultValue(byte value) |
public T | defaultValue(short value) |
public T | defaultValue(int value) |
public T | defaultValue(long value) |
public T | defaultValue(float value) |
public T | defaultValue(double value) |
public T | defaultValue(Object value) |
public T | displayedRaw(boolean displayedRaw) |
public T | editable(boolean editable) |
public T | email(boolean email) |
public T | file(boolean file) |
public T | format(Format format) |
public T | fragment(boolean fragment) Sets whether the content data of this property is a fragment.
This is only useful when the property also has a mime type
constraint. |
public Object | getCachedLoadedData() Retrieves the cached loaded content data. |
public Object | getConstraint(String name) |
public Map<String, Object> | getConstraints() Retrieves the map of all the constraints. |
public Map<String, String> | getContentAttributes() Retrieves the map of named content attributes for this property. |
public Object | getDefaultValue() |
public Format | getFormat() |
public String[] | getInList() |
public ManyToMany | getManyToMany() |
public ManyToManyAssociation | getManyToManyAssociation() |
public ManyToOne | getManyToOne() |
public ManyToOneAssociation | getManyToOneAssociation() |
public Date | getMaxDate() |
public int | getMaxLength() |
public MimeType | getMimeType() Retrieves the mime type of the property. |
public Date | getMinDate() |
public int | getMinLength() |
public String | getName() Retrieves the name of this property. |
public Object | getNotEqual() Retrieves the reference object to which the property value can't be
equal. |
public String | getOrdinalRestriction() Retrieves the ordinal restriction of this property. |
public int | getPosition() Retrieves the position in which the property should be displayed. |
public int | getPrecision() |
public String | getPropertyName() Retrieves the property name. |
public Comparable | getRangeBegin() |
public Comparable | getRangeEnd() |
public String | getRegexp() |
public String | getRepository() Retrieves the repository where the content data of this property will
be stored. |
public String | getSameAs() |
public int | getScale() |
public String | getSubjectName() Retrieves the subject name. |
public ContentTransformer | getTransformer() Retrieves the content transformer of this property. |
public boolean | hasDefaultValue() |
public boolean | hasLimitedLength() |
public boolean | hasManyToMany() |
public boolean | hasManyToManyAssociation() |
public boolean | hasManyToOne() |
public boolean | hasManyToOneAssociation() |
public boolean | hasMaxLength() |
public boolean | hasMimeType() Indicates whether the property has a mime type. |
public boolean | hasMixLength() |
public boolean | hasName() Indicates whether this property has a name. |
public boolean | hasOrdinalRestriction() Indicates whether this property has an ordinal restricting column. |
public boolean | hasPosition() Indicates whether the position of the property is set. |
public boolean | hasPrecision() |
public boolean | hasRepository() Indicates whether this property will be stored in another repository
than the default repository. |
public boolean | hasScale() |
public boolean | hasTransformer() Indicates whether this property has a content transformer. |
public T | identifier(boolean identifier) Set whether the property value is an identifier.
Note that this is only applicable to contexts where a collection
of the data is stored an that identification can apply against the
other entries. |
public T | inList(String... inList) |
public T | inList(int... inList) |
public T | inList(byte... inList) |
public T | inList(char... inList) |
public T | inList(short... inList) |
public T | inList(long... inList) |
public T | inList(float... inList) |
public T | inList(double... inList) |
public T | inList(Collection inList) |
public boolean | isAutoRetrieved() Indicates whether the content data of this property is automatically
retrieved from the back-end. |
public boolean | isDisplayedRaw() |
public boolean | isEditable() |
public boolean | isEmail() |
public boolean | isFile() |
public boolean | isFormatted() |
public boolean | isFragment() Indicates whether the content data of this property is a fragment. |
public boolean | isIdentifier() Retrieves whether the property is an identifier. |
public boolean | isInList() |
public boolean | isLimitedDate() |
public boolean | isListed() Retrieves whether the property should be included in data lists. |
public boolean | isNotEmpty() Retrieves whether the property value can be empty. |
public boolean | isNotEqual() Retrieves whether the property can't be equal to a specific
reference value. |
public boolean | isNotNull() Retrieves whether the property value can be null . |
public boolean | isOrdinal() Indicates whether this property has to be used as an ordinal. |
public boolean | isPersistent() |
public boolean | isRange() |
public boolean | isSameAs() |
public boolean | isSaved() |
public boolean | isSparse() |
public boolean | isUnique() Retrieves whether the property value has to be unique. |
public boolean | isUrl() |
public T | listed(boolean listed) Sets whether the property should be included in data lists. |
public T | manyToMany() |
public T | manyToMany(Class klass) |
public T | manyToMany(CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public T | manyToMany(Class klass, CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public T | manyToManyAssociation() |
public T | manyToManyAssociation(String property) |
public T | manyToManyAssociation(Class klass, String property) |
public T | manyToOne() |
public T | manyToOne(Class klass) |
public T | manyToOne(Class klass, String columnReference) |
public T | manyToOne(String table, String columnReference) |
public T | manyToOne(Class klass, String columnReference, CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public T | manyToOne(String table, String columnReference, CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public T | manyToOneAssociation() |
public T | manyToOneAssociation(String property) |
public T | manyToOneAssociation(Class klass, String property) |
public boolean | matchesRegexp() |
public T | maxDate(Date maxDate) |
public T | maxLength(int maxLength) |
public T | mimeType(MimeType mimeType) Sets the mime type of the property.
Setting this constraint will make the
com.uwyn.rife.cmf.dam.ContentQueryManager ContentQueryManager automatically store the data in this property in the content management
back-end. |
public T | minDate(Date minDate) |
public T | minLength(int minLength) |
public T | name(String name) Sets the name of the content data of this property. |
public T | notEmpty(boolean notEmpty) Set whether the property value can be empty.
Note that this has different meanings for different datatypes
- for textual types this is an empty string, ie.
|
public T | notEqual(boolean reference) Set that the property value can't be equal to a specified
boolean reference value. |
public T | notEqual(byte reference) Set that the property value can't be equal to a specified
byte reference value. |
public T | notEqual(char reference) Set that the property value can't be equal to a specified
char reference value. |
public T | notEqual(short reference) Set that the property value can't be equal to a specified
short reference value. |
public T | notEqual(int reference) Set that the property value can't be equal to a specified
int reference value. |
public T | notEqual(long reference) Set that the property value can't be equal to a specified
long reference value. |
public T | notEqual(float reference) Set that the property value can't be equal to a specified
float reference value. |
public T | notEqual(double reference) Set that the property value can't be equal to a specified
double reference value. |
public T | notEqual(Object reference) Set that the property value can't be equal to a specified
Object reference value. |
public T | notNull(boolean notNull) Set whether the property value can be null .
Note that this has different meanings in different contexts:
- for values in java this is only applicable to object references
as primitive values are never
null ,
- for values that are stored in a database, it's applicable to
every column.
Parameters: notNull - true when the value can't benull ; or false when the value can benull . |
public T | ordinal(boolean ordinal) Sets whether this property has to be used as an ordinal.
The value of this property will be handled in the back-end by an
com.uwyn.rife.cmf.dam.OrdinalManager OrdinalManager . |
public T | ordinal(boolean ordinal, String restriction) Sets whether this property has to be used as an ordinal with a
restricting column. |
public T | persistent(boolean persistent) |
public T | position(int position) Sets the position in which the property should be displayed. |
public T | precision(int precision) |
public T | rangeBegin(byte value) |
public T | rangeBegin(char value) |
public T | rangeBegin(short value) |
public T | rangeBegin(int value) |
public T | rangeBegin(long value) |
public T | rangeBegin(float value) |
public T | rangeBegin(double value) |
public T | rangeBegin(Comparable value) |
public T | rangeEnd(char value) |
public T | rangeEnd(byte value) |
public T | rangeEnd(double value) |
public T | rangeEnd(float value) |
public T | rangeEnd(int value) |
public T | rangeEnd(long value) |
public T | rangeEnd(short value) |
public T | rangeEnd(Comparable value) |
public T | regexp(String regexp) |
public boolean | removeListener(ConstrainedPropertyListener listener) Removes a listener. |
public T | repository(String repository) Sets the repository where the content data of this property will be
stored. |
public T | sameAs(String reference) |
public T | saved(boolean saved) |
public T | scale(int scale) |
public void | setAutoRetrieved(boolean autoRetrieved) Sets whether the content data of this property should be retrieved
automatically from the back-end. |
public void | setCachedLoadedData(Object data) Sets the cached loaded data. |
public void | setConstraint(String name, Object constraintData) Sets the data of a particular constraint in a generic
fashion. |
public void | setDefaultValue(Object value) |
public void | setDisplayedRaw(boolean displayedRaw) |
public void | setEditable(boolean editable) |
public void | setEmail(boolean email) |
public void | setFile(boolean file) |
public void | setFormat(Format format) |
public void | setFragment(boolean fragment) Sets whether the content data of this property is a fragment. |
public void | setIdentifier(boolean identifier) Set whether the property value is an identifier. |
public void | setInList(String... inList) |
public void | setInList(int... inList) |
public void | setInList(byte... inList) |
public void | setInList(char... inList) |
public void | setInList(short... inList) |
public void | setInList(long... inList) |
public void | setInList(float... inList) |
public void | setInList(double... inList) |
public void | setInList(Collection inList) |
public void | setListed(boolean listed) Sets whether the property should be included in data lists. |
public void | setManyToMany() |
public void | setManyToMany(Class klass) |
public void | setManyToMany(CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public void | setManyToMany(Class klass, CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public void | setManyToManyAssociation() |
public void | setManyToManyAssociation(String property) |
public void | setManyToManyAssociation(Class klass, String property) |
public void | setManyToOne() |
public void | setManyToOne(Class klass) |
public void | setManyToOne(Class klass, String columnReference) |
public void | setManyToOne(String table, String columnReference) |
public void | setManyToOne(Class klass, String columnReference, CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public void | setManyToOne(String table, String columnReference, CreateTable.ViolationAction onUpdate, CreateTable.ViolationAction onDelete) |
public void | setManyToOneAssociation() |
public void | setManyToOneAssociation(String property) |
public void | setManyToOneAssociation(Class klass, String property) |
public void | setMaxDate(Date maxDate) |
public void | setMaxLength(int maxLength) |
public void | setMimeType(MimeType mimeType) Sets the mime type of the property. |
public void | setMinDate(Date minDate) |
public void | setMinLength(int minLength) |
public void | setName(String name) Sets the name of the content data of this property. |
public void | setNotEmpty(boolean notEmpty) Set whether the property value can be empty. |
public void | setNotEqual(boolean reference) Set that the property value can't be equal to a specified
boolean reference value. |
public void | setNotEqual(byte reference) Set that the property value can't be equal to a specified
byte reference value. |
public void | setNotEqual(char reference) Set that the property value can't be equal to a specified
char reference value. |
public void | setNotEqual(short reference) Set that the property value can't be equal to a specified
short reference value. |
public void | setNotEqual(int reference) Set that the property value can't be equal to a specified
int reference value. |
public void | setNotEqual(long reference) Set that the property value can't be equal to a specified
long reference value. |
public void | setNotEqual(float reference) Set that the property value can't be equal to a specified
float reference value. |
public void | setNotEqual(double reference) Set that the property value can't be equal to a specified
double reference value. |
public void | setNotEqual(Object reference) Set that the property value can't be equal to a specified
Object reference value. |
public void | setNotNull(boolean notNull) Set whether the property value can be null . |
public void | setOrdinal(boolean ordinal) Sets whether this property has to be used as an ordinal. |
public void | setOrdinal(boolean ordinal, String restriction) Sets whether this property has to be used as an ordinal with a
restricting column. |
public void | setPersistent(boolean persistent) |
public void | setPosition(int position) Sets the position in which the property should be displayed. |
public void | setPrecision(int precision) |
public void | setRangeBegin(byte value) |
public void | setRangeBegin(char value) |
public void | setRangeBegin(short value) |
public void | setRangeBegin(int value) |
public void | setRangeBegin(long value) |
public void | setRangeBegin(float value) |
public void | setRangeBegin(double value) |
public void | setRangeBegin(Comparable rangeBegin) |
public void | setRangeEnd(byte value) |
public void | setRangeEnd(char value) |
public void | setRangeEnd(short value) |
public void | setRangeEnd(int value) |
public void | setRangeEnd(long value) |
public void | setRangeEnd(float value) |
public void | setRangeEnd(double value) |
public void | setRangeEnd(Comparable rangeEnd) |
public void | setRegexp(String regexp) |
public void | setRepository(String repository) Sets the repository where the content data of this property will be
stored. |
public void | setSameAs(String reference) |
public void | setSaved(boolean saved) |
public void | setScale(int scale) |
public void | setSparse(boolean sparse) |
public void | setSubjectName(String name) Sets the subject name. |
public void | setTransformer(ContentTransformer transformer) Sets a content transformer for this property. |
public void | setUnique(boolean unique) Set whether the property value has to be unique. |
public void | setUrl(boolean url) |
public T | sparse(boolean sparse) |
public T | subjectName(String name) Sets the subject name. |
public T | transformer(ContentTransformer transformer) Sets a content transformer for this property. |
public T | unique(boolean unique) Set whether the property value has to be unique.
Note that this is only applicable to contexts where a collection
of the data is stored an that uniqueness can apply against the
other entries. |
public T | url(boolean url) |