public class DocumentPropertyObjectResolverImpl extends Object implements PropertyObjectResolver
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
protected ObjectResolver |
resolver |
protected String |
xpath |
Constructor and Description |
---|
DocumentPropertyObjectResolverImpl(DocumentModel doc,
String xpath,
ObjectResolver resolver) |
Modifier and Type | Method and Description |
---|---|
static DocumentPropertyObjectResolverImpl |
create(DocumentModel doc,
String xpath) |
Object |
fetch()
|
<T> T |
fetch(Class<T> type)
|
List<Class<?>> |
getManagedClasses()
|
ObjectResolver |
getObjectResolver()
Returns the underlying
ObjectResolver . |
void |
setObject(Object object)
Gets a reference to the object and set the corresponding value to this property.
|
boolean |
validate()
|
protected DocumentModel doc
protected ObjectResolver resolver
public DocumentPropertyObjectResolverImpl(DocumentModel doc, String xpath, ObjectResolver resolver)
public static DocumentPropertyObjectResolverImpl create(DocumentModel doc, String xpath)
public List<Class<?>> getManagedClasses()
PropertyObjectResolver
getManagedClasses
in interface PropertyObjectResolver
public boolean validate()
PropertyObjectResolver
validate
in interface PropertyObjectResolver
public Object fetch()
PropertyObjectResolver
fetch
in interface PropertyObjectResolver
public <T> T fetch(Class<T> type)
PropertyObjectResolver
fetch
in interface PropertyObjectResolver
public void setObject(Object object)
PropertyObjectResolver
ObjectResolver.fetch(Class, Object)
setObject
in interface PropertyObjectResolver
public ObjectResolver getObjectResolver()
PropertyObjectResolver
ObjectResolver
.getObjectResolver
in interface PropertyObjectResolver
Copyright © 2018 Nuxeo. All rights reserved.