public abstract class AWriteContext extends java.lang.Object implements IContext
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.ClassLoader | classloaderThe classloader. | 
| protected IObjectWriterHandler | handlerThe handler. | 
| protected int | idThe id counter. | 
| protected java.util.Map<java.lang.String,Namespace> | namespacebypackageThe namespaces. | 
| protected int | nscnt | 
| protected MultiCollection<java.lang.Integer,IPreProcessor> | preprocessorsThe pre processors. | 
| protected java.lang.Object | rootobjectThe root object. | 
| protected java.util.List<StackElement> | stackThe stack. | 
| protected java.lang.Object | usercontextThe user context. | 
| protected java.lang.Object | writerThe writer. | 
| protected java.util.Map<java.lang.Object,java.lang.Object> | writtenobsThe written objects. | 
| Constructor and Description | 
|---|
| AWriteContext(IObjectWriterHandler handler,
             java.lang.Object writer,
             java.lang.Object usercontext,
             java.lang.Object rootobject,
             java.lang.ClassLoader classloader)Create a new write context. | 
| AWriteContext(IObjectWriterHandler handler,
             java.lang.Object writer,
             java.lang.Object usercontext,
             java.lang.Object rootobject,
             java.lang.ClassLoader classloader,
             java.util.Map<java.lang.Object,java.lang.Object> writtenobs,
             java.util.List<StackElement> stack,
             MultiCollection<java.lang.Integer,IPreProcessor> preprocessors)Create a new write context. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.ClassLoader | getClassLoader()Get the classloader. | 
| IObjectWriterHandler | getHandler()Get the handler. | 
| int | getId()Get the id. | 
| Namespace | getNamespace(java.lang.String uri)Get or create a namespace. | 
| MultiCollection<java.lang.Integer,IPreProcessor> | getPreProcessors()Get the preprocessors. | 
| java.lang.Object | getRootObject()Get the root object. | 
| java.util.List<StackElement> | getStack()Get the stack. | 
| java.lang.Object | getUserContext()Get the callcontext. | 
| java.lang.Object | getWriter()Get the writer. | 
| java.util.Map<java.lang.Object,java.lang.Object> | getWrittenObjects()Get the writtenobs. | 
| void | setClassLoader(java.lang.ClassLoader classloader)Set the classloader. | 
| void | setHandler(IObjectWriterHandler handler)Set the handler. | 
| void | setId(int id)Set the id. | 
| void | setPreProcessors(MultiCollection<java.lang.Integer,IPreProcessor> preprocessors)Set the preprocessors. | 
| void | setRootObject(java.lang.Object root)Set the root object. | 
| void | setStack(java.util.List<StackElement> stack)Set the stack. | 
| void | setUserContext(java.lang.Object usercontext)Set the callcontext. | 
| void | setWriter(java.lang.Object writer)Set the writer. | 
| void | setWrittenObjects(java.util.Map<java.lang.Object,java.lang.Object> writtenobs)Set the writtenobs. | 
protected IObjectWriterHandler handler
protected java.lang.Object writer
protected java.lang.ClassLoader classloader
protected java.lang.Object rootobject
protected java.lang.Object usercontext
protected java.util.Map<java.lang.Object,java.lang.Object> writtenobs
protected java.util.List<StackElement> stack
protected MultiCollection<java.lang.Integer,IPreProcessor> preprocessors
protected int id
protected java.util.Map<java.lang.String,Namespace> namespacebypackage
protected int nscnt
public AWriteContext(IObjectWriterHandler handler, java.lang.Object writer, java.lang.Object usercontext, java.lang.Object rootobject, java.lang.ClassLoader classloader)
public AWriteContext(IObjectWriterHandler handler, java.lang.Object writer, java.lang.Object usercontext, java.lang.Object rootobject, java.lang.ClassLoader classloader, java.util.Map<java.lang.Object,java.lang.Object> writtenobs, java.util.List<StackElement> stack, MultiCollection<java.lang.Integer,IPreProcessor> preprocessors)
public IObjectWriterHandler getHandler()
public void setHandler(IObjectWriterHandler handler)
handler - The handler to set.public java.lang.Object getWriter()
public void setWriter(java.lang.Object writer)
writer - The writer to set.public java.lang.Object getRootObject()
getRootObject in interface IContextpublic void setRootObject(java.lang.Object root)
root - The rootobject to set.public java.lang.ClassLoader getClassLoader()
getClassLoader in interface IContextpublic void setClassLoader(java.lang.ClassLoader classloader)
classloader - The classloader to set.public java.lang.Object getUserContext()
getUserContext in interface IContextpublic void setUserContext(java.lang.Object usercontext)
callcontext - The callcontext to set.public java.util.Map<java.lang.Object,java.lang.Object> getWrittenObjects()
public void setWrittenObjects(java.util.Map<java.lang.Object,java.lang.Object> writtenobs)
writtenobs - The writtenobs to set.public java.util.List<StackElement> getStack()
public void setStack(java.util.List<StackElement> stack)
stack - The stack to set.public MultiCollection<java.lang.Integer,IPreProcessor> getPreProcessors()
public void setPreProcessors(MultiCollection<java.lang.Integer,IPreProcessor> preprocessors)
preprocessors - The preprocessors to set.public int getId()
public void setId(int id)
id - The id to set.public Namespace getNamespace(java.lang.String uri)
uri - The namespace uri.