org.chromattic.core
Class ObjectContext

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

public class ObjectContext
extends Object
implements MethodHandler

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ObjectContext(TypeMapper mapper)
           
ObjectContext(TypeMapper mapper, org.chromattic.core.TransientContextState state)
           
 
Method Summary
 void addChild(Object child)
           
 void addChild(ObjectContext childCtx)
           
 void addChild(String name, Object child)
           
 void addChild(String name, ObjectContext childCtx)
           
 boolean addReference(String name, Object referent, LinkType linkType)
           
 String getAttribute(NodeAttributeType type)
           
 Object getChild(String name)
           
<T> Iterator<T>
getChildren(Class<T> filterClass)
           
 String getId()
           
 String getName()
           
 Object getObject()
           
 Object getParent()
           
 String getPath()
           
 Map<String,Object> getPropertyMap()
           
 Object getPropertyValue(String propertyName, SimpleValueInfo type)
           
<T> T
getPropertyValues(String propertyName, SimpleValueInfo simpleType, ListType<T> listType)
           
 Object getReferenced(String name, LinkType linkType)
           
<T> Iterator<T>
getReferents(String name, Class<T> filterClass, LinkType linkType)
           
 DomainSession getSession()
           
 Status getStatus()
           
 Object invoke(Object o, Method method, Object[] args)
           
 void orderBefore(ObjectContext srcCtx, ObjectContext dstCtx)
           
 void remove()
           
 void removeChild(String name)
           
 void setName(String name)
           
 void setPropertyValue(String propertyName, SimpleValueInfo type, Object o)
           
<T> void
setPropertyValues(String propertyName, SimpleValueInfo type, ListType<T> listType, T objects)
           
 void setReferenced(String name, Object referenced, LinkType linkType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectContext

public ObjectContext(TypeMapper mapper)

ObjectContext

public ObjectContext(TypeMapper mapper,
                     org.chromattic.core.TransientContextState state)
Method Detail

getSession

public DomainSession getSession()

getStatus

public Status getStatus()

getObject

public Object getObject()

getAttribute

public String getAttribute(NodeAttributeType type)

remove

public void remove()

getReferents

public <T> Iterator<T> getReferents(String name,
                                    Class<T> filterClass,
                                    LinkType linkType)

getName

public String getName()

getId

public String getId()

getPath

public String getPath()

setName

public void setName(String name)

getReferenced

public Object getReferenced(String name,
                            LinkType linkType)

setReferenced

public void setReferenced(String name,
                          Object referenced,
                          LinkType linkType)

addReference

public boolean addReference(String name,
                            Object referent,
                            LinkType linkType)

getPropertyMap

public Map<String,Object> getPropertyMap()

getPropertyValue

public Object getPropertyValue(String propertyName,
                               SimpleValueInfo type)

getPropertyValues

public <T> T getPropertyValues(String propertyName,
                               SimpleValueInfo simpleType,
                               ListType<T> listType)

setPropertyValue

public void setPropertyValue(String propertyName,
                             SimpleValueInfo type,
                             Object o)

setPropertyValues

public <T> void setPropertyValues(String propertyName,
                                  SimpleValueInfo type,
                                  ListType<T> listType,
                                  T objects)

removeChild

public void removeChild(String name)

orderBefore

public void orderBefore(ObjectContext srcCtx,
                        ObjectContext dstCtx)

addChild

public void addChild(ObjectContext childCtx)

addChild

public void addChild(Object child)

addChild

public void addChild(String name,
                     ObjectContext childCtx)

addChild

public void addChild(String name,
                     Object child)

getChild

public Object getChild(String name)

getChildren

public <T> Iterator<T> getChildren(Class<T> filterClass)

getParent

public Object getParent()

toString

public String toString()
Overrides:
toString in class Object

invoke

public Object invoke(Object o,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface MethodHandler
Throws:
Throwable


Copyright © 2009 eXo Platform SAS. All Rights Reserved.