Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.relations.api.impl
Class AbstractResourceAdapter

java.lang.Object
  extended by org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
All Implemented Interfaces:
ResourceAdapter
Direct Known Subclasses:
DocumentModelResourceAdapter, PropertyResourceAdapter

public abstract class AbstractResourceAdapter
extends Object
implements ResourceAdapter

Author:
Anahide Tchertchian

Field Summary
protected  String namespace
           
 
Constructor Summary
AbstractResourceAdapter()
           
 
Method Summary
 Class<?> getKlass()
           
 String getNamespace()
           
 Resource getResource(Object object)
          Transform an incoming object into a Resource
 Object getResourceRepresentation(Resource resource)
          Resolve the resource to an applicative representation, for instance a DocumentModel,
 void setNamespace(String namespace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespace

protected String namespace
Constructor Detail

AbstractResourceAdapter

public AbstractResourceAdapter()
Method Detail

getNamespace

public String getNamespace()
Specified by:
getNamespace in interface ResourceAdapter

setNamespace

public void setNamespace(String namespace)
Specified by:
setNamespace in interface ResourceAdapter

getResourceRepresentation

public Object getResourceRepresentation(Resource resource)
Description copied from interface: ResourceAdapter
Resolve the resource to an applicative representation, for instance a DocumentModel,

Specified by:
getResourceRepresentation in interface ResourceAdapter
Returns:
the representation TODO Serializable

getResource

public Resource getResource(Object object)
Description copied from interface: ResourceAdapter
Transform an incoming object into a Resource

Specified by:
getResource in interface ResourceAdapter
Parameters:
object - TODO Serializable
Returns:
the resource

getKlass

public Class<?> getKlass()
Specified by:
getKlass in interface ResourceAdapter
Returns:
the class being adapted

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.