|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Field
Fields belong to documents (or versions of documents), and can be used for various purposes.
Often, fields will be used for meta-data about the document, though
you can use them for whatever data that you want to have addressable
on a finer level then that contained in the Parts.
A field is always based upon a FieldType,
which defines the kind of data that the field can contain.
Note that a field has no setters methods, modifications can only
be done through the containing Document. This is because
fields can also be obtained from Versions, which are not
modifiable.
| Method Summary | |
|---|---|
long |
getTypeId()
The id of the field type of this field. |
String |
getTypeName()
The name of the field type (for convenience, this is retrieved from the RepositorySchema). |
Object |
getValue()
The value of the field. |
ValueType |
getValueType()
The ValueType of the field, which defines the kind of object you will get from getValue(). |
org.outerx.daisy.x10.FieldDocument |
getXml()
Get an XML document describing this field. |
boolean |
isHierarchical()
Indicates if this field is a hierarchical field. |
boolean |
isMultiValue()
Indicates if this field is a multivalue field. |
| Method Detail |
|---|
long getTypeId()
RepositorySchema.
String getTypeName()
ValueType getValueType()
getValue(). This method is here for convenience,
the information is retrieved from the RepositorySchema.
boolean isMultiValue()
boolean isHierarchical()
Object getValue()
ValueType, and of whether it concerns a multi-value
and/or hierarchical field type. For multi-value fields, an array (Object[]) is returned.
For hierarchical fields, a HierarchyPath object is returned.
It hence follows that for hierarchical-and-multivalue fields,
an array of HierarchyPath objects is returned.
org.outerx.daisy.x10.FieldDocument getXml()
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||