public abstract class AWriteContext<T> extends Object implements IContext
Constructor and Description |
---|
AWriteContext(IObjectWriterHandler handler,
T writer,
Object usercontext,
Object rootobject,
ClassLoader classloader)
Create a new write context.
|
AWriteContext(IObjectWriterHandler handler,
T writer,
Object usercontext,
Object rootobject,
ClassLoader classloader,
Map writtenobs,
List stack,
MultiCollection preprocessors)
Create a new write context.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Get the classloader.
|
IObjectWriterHandler |
getHandler()
Get the handler.
|
int |
getId()
Get the id.
|
Namespace |
getNamespace(String uri)
Get or create a namespace.
|
MultiCollection |
getPreProcessors()
Get the preprocessors.
|
Object |
getRootObject()
Get the root object.
|
List |
getStack()
Get the stack.
|
Object |
getUserContext()
Get the callcontext.
|
T |
getWriter()
Get the writer.
|
Map |
getWrittenObjects()
Get the writtenobs.
|
void |
setClassLoader(ClassLoader classloader)
Set the classloader.
|
void |
setHandler(IObjectWriterHandler handler)
Set the handler.
|
void |
setId(int id)
Set the id.
|
void |
setPreProcessors(MultiCollection preprocessors)
Set the preprocessors.
|
void |
setRootObject(Object root)
Set the root object.
|
void |
setStack(List stack)
Set the stack.
|
void |
setUserContext(Object usercontext)
Set the callcontext.
|
void |
setWriter(T writer)
Set the writer.
|
void |
setWrittenObjects(Map writtenobs)
Set the writtenobs.
|
public AWriteContext(IObjectWriterHandler handler, T writer, Object usercontext, Object rootobject, ClassLoader classloader)
public AWriteContext(IObjectWriterHandler handler, T writer, Object usercontext, Object rootobject, ClassLoader classloader, Map writtenobs, List stack, MultiCollection preprocessors)
public IObjectWriterHandler getHandler()
public void setHandler(IObjectWriterHandler handler)
handler
- The handler to set.public T getWriter()
public void setWriter(T writer)
writer
- The writer to set.public Object getRootObject()
getRootObject
in interface IContext
public void setRootObject(Object root)
root
- The rootobject to set.public ClassLoader getClassLoader()
getClassLoader
in interface IContext
public void setClassLoader(ClassLoader classloader)
classloader
- The classloader to set.public Object getUserContext()
getUserContext
in interface IContext
public void setUserContext(Object usercontext)
callcontext
- The callcontext to set.public Map getWrittenObjects()
public void setWrittenObjects(Map writtenobs)
writtenobs
- The writtenobs to set.public List getStack()
public void setStack(List stack)
stack
- The stack to set.public MultiCollection getPreProcessors()
public void setPreProcessors(MultiCollection preprocessors)
preprocessors
- The preprocessors to set.public int getId()
public void setId(int id)
id
- The id to set.Copyright © 2012. All Rights Reserved.