public abstract class AWriteContext extends java.lang.Object implements IContext
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
classloader
The classloader.
|
protected IObjectWriterHandler |
handler
The handler.
|
protected int |
id
The id counter.
|
protected java.util.Map<java.lang.String,Namespace> |
namespacebypackage
The namespaces.
|
protected int |
nscnt |
protected MultiCollection<java.lang.Integer,IPreProcessor> |
preprocessors
The pre processors.
|
protected java.lang.Object |
rootobject
The root object.
|
protected java.util.List<StackElement> |
stack
The stack.
|
protected java.lang.Object |
usercontext
The user context.
|
protected java.lang.Object |
writer
The writer.
|
protected java.util.Map<java.lang.Object,java.lang.Object> |
writtenobs
The 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 IContext
public void setRootObject(java.lang.Object root)
root
- The rootobject to set.public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface IContext
public void setClassLoader(java.lang.ClassLoader classloader)
classloader
- The classloader to set.public java.lang.Object getUserContext()
getUserContext
in interface IContext
public 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.