org.chromattic.core
Class EmbeddedContext

java.lang.Object
  extended by org.chromattic.core.ObjectContext<EmbeddedContext>
      extended by org.chromattic.core.EmbeddedContext
All Implemented Interfaces:
MethodHandler

public final class EmbeddedContext
extends ObjectContext<EmbeddedContext>

Version:
$Revision$
Author:
Julien Viet

Method Summary
 EntityContext getEntity()
           
 ObjectMapper<EmbeddedContext> getMapper()
           
 java.lang.Object getObject()
           
 DomainSession getSession()
           
 Status getStatus()
          Returns the status of the related entity when the context is attached to an entity otherwise it returns the Status.TRANSIENT value.
 NodeTypeInfo getTypeInfo()
          Returns the type info associated with the context.
 java.lang.String toString()
           
 
Methods inherited from class org.chromattic.core.ObjectContext
addChild, addChild, getChild, getChildren, getPropertyValue, getPropertyValues, hasChild, hasProperty, invoke, invoke, invoke, orderBefore, removeChild, setPropertyValue, setPropertyValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getStatus

public Status getStatus()
Returns the status of the related entity when the context is attached to an entity otherwise it returns the Status.TRANSIENT value.

Specified by:
getStatus in class ObjectContext<EmbeddedContext>
Returns:
the status

getMapper

public ObjectMapper<EmbeddedContext> getMapper()
Specified by:
getMapper in class ObjectContext<EmbeddedContext>

getSession

public DomainSession getSession()
Specified by:
getSession in class ObjectContext<EmbeddedContext>

getTypeInfo

public NodeTypeInfo getTypeInfo()
Description copied from class: ObjectContext
Returns the type info associated with the context. Null is returned when the context is in transient state, otherwise the type info of the corresponding node is returned.

Specified by:
getTypeInfo in class ObjectContext<EmbeddedContext>
Returns:
the type info

getObject

public java.lang.Object getObject()
Specified by:
getObject in class ObjectContext<EmbeddedContext>

getEntity

public EntityContext getEntity()
Specified by:
getEntity in class ObjectContext<EmbeddedContext>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 eXo Platform SAS. All Rights Reserved.