Class DocumentModelResolver
- java.lang.Object
-
- javax.el.ELResolver
-
- javax.el.BeanELResolver
-
- org.nuxeo.ecm.platform.el.DocumentModelResolver
-
public class DocumentModelResolver extends javax.el.BeanELResolver
Resolves expressions for theDocumentModelframework.To specify a property on a document mode, the following syntax is available:
myDocumentModel.dublincore.titlewhere 'dublincore' is the schema name and 'title' is the field name. It can be used to get or set the document title:<h:outputText value="# {currentDocument.dublincore.title}" />or<h:inputText value="# {currentDocument.dublincore.title}" />.Simple document properties are get/set directly: for instance, the above expression will return a String value on get, and set this String on the document for set. Complex properties (maps and lists) are get/set through the
Propertyobject controlling their value: on get, sub properties will be resolved at the next iteration, and on set, they will be set on the property instance so the document model is aware of the change.- Author:
- Razvan Caraghin, Anahide Tchertchian
-
-
Constructor Summary
Constructors Constructor Description DocumentModelResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getType(javax.el.ELContext context, Object base, Object property)ObjectgetValue(javax.el.ELContext context, Object base, Object property)booleanisReadOnly(javax.el.ELContext context, Object base, Object property)voidsetValue(javax.el.ELContext context, Object base, Object property, Object value)
-
-
-
Constructor Detail
-
DocumentModelResolver
public DocumentModelResolver()
-
-
Method Detail
-
getType
public Class<?> getType(javax.el.ELContext context, Object base, Object property)
- Overrides:
getTypein classjavax.el.BeanELResolver
-
getValue
public Object getValue(javax.el.ELContext context, Object base, Object property)
- Overrides:
getValuein classjavax.el.BeanELResolver
-
isReadOnly
public boolean isReadOnly(javax.el.ELContext context, Object base, Object property)
- Overrides:
isReadOnlyin classjavax.el.BeanELResolver
-
-