Class DocumentPropertyObjectResolverImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.api.model.resolver.DocumentPropertyObjectResolverImpl
-
- All Implemented Interfaces:
PropertyObjectResolver
public class DocumentPropertyObjectResolverImpl extends Object implements PropertyObjectResolver
- Since:
- 7.1
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModel
doc
protected ObjectResolver
resolver
protected String
xpath
-
Constructor Summary
Constructors Constructor Description DocumentPropertyObjectResolverImpl(DocumentModel doc, String xpath, ObjectResolver resolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentPropertyObjectResolverImpl
create(DocumentModel doc, String xpath)
Object
fetch()
<T> T
fetch(Class<T> type)
Object
fetch(Object context)
List<Class<?>>
getManagedClasses()
ObjectResolver
getObjectResolver()
Returns the underlyingObjectResolver
.void
setObject(Object object)
Gets a reference to the object and set the corresponding value to this property.boolean
validate()
boolean
validate(Object context)
-
-
-
Field Detail
-
doc
protected DocumentModel doc
-
xpath
protected String xpath
-
resolver
protected ObjectResolver resolver
-
-
Constructor Detail
-
DocumentPropertyObjectResolverImpl
public DocumentPropertyObjectResolverImpl(DocumentModel doc, String xpath, ObjectResolver resolver)
-
-
Method Detail
-
create
public static DocumentPropertyObjectResolverImpl create(DocumentModel doc, String xpath)
-
getManagedClasses
public List<Class<?>> getManagedClasses()
Description copied from interface:PropertyObjectResolver
- Specified by:
getManagedClasses
in interfacePropertyObjectResolver
-
validate
public boolean validate()
Description copied from interface:PropertyObjectResolver
- Specified by:
validate
in interfacePropertyObjectResolver
-
validate
public boolean validate(Object context)
Description copied from interface:PropertyObjectResolver
- Specified by:
validate
in interfacePropertyObjectResolver
-
fetch
public Object fetch()
Description copied from interface:PropertyObjectResolver
- Specified by:
fetch
in interfacePropertyObjectResolver
-
fetch
public Object fetch(Object context)
Description copied from interface:PropertyObjectResolver
- Specified by:
fetch
in interfacePropertyObjectResolver
-
fetch
public <T> T fetch(Class<T> type)
Description copied from interface:PropertyObjectResolver
- Specified by:
fetch
in interfacePropertyObjectResolver
-
setObject
public void setObject(Object object)
Description copied from interface:PropertyObjectResolver
Gets a reference to the object and set the corresponding value to this property.ObjectResolver.fetch(Class, Object)
- Specified by:
setObject
in interfacePropertyObjectResolver
-
getObjectResolver
public ObjectResolver getObjectResolver()
Description copied from interface:PropertyObjectResolver
Returns the underlyingObjectResolver
.- Specified by:
getObjectResolver
in interfacePropertyObjectResolver
-
-