org.chromattic.core
Class ObjectContext

java.lang.Object
  extended by org.chromattic.core.ObjectContext
All Implemented Interfaces:
MethodHandler
Direct Known Subclasses:
EmbeddedContext, EntityContext

public abstract class ObjectContext
extends java.lang.Object
implements MethodHandler

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ObjectContext()
           
 
Method Summary
abstract  EntityContext getEntity()
           
abstract  java.lang.Object getObject()
           
<V> V
getPropertyValue(java.lang.String propertyName, ValueType<V> type)
           
<V> java.util.List<V>
getPropertyValues(java.lang.String propertyName, ValueType<V> simpleType, ListType listType)
           
abstract  NodeTypeInfo getTypeInfo()
           
<V> void
setPropertyValue(java.lang.String propertyName, ValueType<V> type, V o)
           
<V> void
setPropertyValues(java.lang.String propertyName, ValueType<V> type, ListType listType, java.util.List<V> objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.chromattic.spi.instrument.MethodHandler
invoke
 

Constructor Detail

ObjectContext

public ObjectContext()
Method Detail

getObject

public abstract java.lang.Object getObject()

getEntity

public abstract EntityContext getEntity()

getTypeInfo

public abstract NodeTypeInfo getTypeInfo()

getPropertyValue

public final <V> V getPropertyValue(java.lang.String propertyName,
                                    ValueType<V> type)
                         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getPropertyValues

public final <V> java.util.List<V> getPropertyValues(java.lang.String propertyName,
                                                     ValueType<V> simpleType,
                                                     ListType listType)
                                          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

setPropertyValue

public final <V> void setPropertyValue(java.lang.String propertyName,
                                       ValueType<V> type,
                                       V o)
                            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

setPropertyValues

public final <V> void setPropertyValues(java.lang.String propertyName,
                                        ValueType<V> type,
                                        ListType listType,
                                        java.util.List<V> objects)
                             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.