Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.model.impl.osm
Class DynamicObjectAdapter

java.lang.Object
  extended by org.nuxeo.ecm.core.api.model.impl.osm.DynamicObjectAdapter
All Implemented Interfaces:
Serializable, ObjectAdapter
Direct Known Subclasses:
BlobObjectAdapter

public abstract class DynamicObjectAdapter
extends Object
implements ObjectAdapter

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Method Summary
 void addField(String name, String property)
           
 void addField(String name, String property, boolean isReadOnly)
           
 ObjectAdapter getAdapter(String name)
           
 Serializable getDefaultValue()
           
 Map<String,Object> getMap(Object object)
           
 Object getValue(Object object, String name)
           
 void setMap(Object object, Map<String,Object> value)
           
 void setValue(Object object, String name, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.core.api.model.impl.osm.ObjectAdapter
create
 

Method Detail

addField

public void addField(String name,
                     String property)
              throws PropertyException
Throws:
PropertyException

addField

public void addField(String name,
                     String property,
                     boolean isReadOnly)
              throws PropertyException
Throws:
PropertyException

getMap

public Map<String,Object> getMap(Object object)
                          throws PropertyException
Specified by:
getMap in interface ObjectAdapter
Throws:
PropertyException

setMap

public void setMap(Object object,
                   Map<String,Object> value)
            throws PropertyException
Specified by:
setMap in interface ObjectAdapter
Throws:
PropertyException

getValue

public Object getValue(Object object,
                       String name)
                throws PropertyException
Specified by:
getValue in interface ObjectAdapter
Throws:
PropertyException

setValue

public void setValue(Object object,
                     String name,
                     Object value)
              throws PropertyException
Specified by:
setValue in interface ObjectAdapter
Throws:
PropertyException

getAdapter

public ObjectAdapter getAdapter(String name)
                         throws PropertyNotFoundException
Specified by:
getAdapter in interface ObjectAdapter
Throws:
PropertyNotFoundException

getDefaultValue

public Serializable getDefaultValue()
Specified by:
getDefaultValue in interface ObjectAdapter

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.