public abstract class AReadContext<T> extends Object implements IContext
Constructor and Description |
---|
AReadContext(TypeInfoPathManager pathmanager,
IObjectReaderHandler handler,
T parser,
XMLReporter reporter,
Object callcontext,
ClassLoader classloader) |
AReadContext(TypeInfoPathManager pathmanager,
IObjectReaderHandler handler,
T parser,
XMLReporter reporter,
Object callcontext,
ClassLoader classloader,
Object root,
List stack,
StackElement topse,
String comment,
Map readobjects,
int readignore,
MultiCollection postprocessors)
Create a new read context.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Object key,
Object value)
Add a child.
|
void |
addStackElement(StackElement elem) |
int |
getArrayCount(Object parent)
Get the current array counter.
|
Object |
getChildren(Object key)
Get children.
|
ClassLoader |
getClassLoader()
Get the classloader.
|
String |
getComment()
Get the comment.
|
IObjectReaderHandler |
getDefaultHandler()
Get the defaulthandler.
|
abstract ILocation |
getLocation()
Returns the current parser location.
|
T |
getParser()
Get the parser.
|
TypeInfoPathManager |
getPathManager()
Get the pathManager.
|
MultiCollection |
getPostProcessors()
Get the postprocessors.
|
int |
getReadIgnore()
Get the readignore.
|
Map |
getReadObjects()
Get the readobjects.
|
XMLReporter |
getReporter()
Get the reporter.
|
Object |
getRootObject()
Get the root object.
|
StackElement[] |
getStack() |
StackElement |
getStackElement(int pos)
Get stack element.
|
int |
getStackSize() |
StackElement |
getTopStackElement()
Get the top stack element.
|
Object |
getUserContext()
Get the callcontext.
|
QName[] |
getXMLPath(QName tag)
Get the xml path for a stack.
|
List |
removeChildren(Object key)
Remove a child.
|
void |
removeStackElement() |
void |
setCallContext(Object callcontext)
Set the callcontext.
|
void |
setClassLoader(ClassLoader classloader)
Set the classloader.
|
void |
setComment(String comment)
Set the comment.
|
void |
setPostProcessors(MultiCollection postprocessors)
Set the postprocessors.
|
void |
setReadIgnore(int readignore)
Set the readignore.
|
void |
setReadObjects(Map readobjects)
Set the readobjects.
|
void |
setStackElement(StackElement elem,
int pos) |
public AReadContext(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, T parser, XMLReporter reporter, Object callcontext, ClassLoader classloader)
parser
- public AReadContext(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, T parser, XMLReporter reporter, Object callcontext, ClassLoader classloader, Object root, List stack, StackElement topse, String comment, Map readobjects, int readignore, MultiCollection postprocessors)
parser
- root
- stack
- topse
- comment
- readobjects
- public T getParser()
public TypeInfoPathManager getPathManager()
public IObjectReaderHandler getDefaultHandler()
public XMLReporter getReporter()
public Object getRootObject()
getRootObject
in interface IContext
public StackElement getStackElement(int pos)
public StackElement getTopStackElement()
public void addStackElement(StackElement elem)
public void setStackElement(StackElement elem, int pos)
public void removeStackElement()
public int getStackSize()
public abstract ILocation getLocation()
public String getComment()
public void setComment(String comment)
comment
- The comment to set.public Map getReadObjects()
public void setReadObjects(Map readobjects)
readobjects
- The readobjects to set.public int getReadIgnore()
public void setReadIgnore(int readignore)
readignore
- The readignore to set.public Object getUserContext()
getUserContext
in interface IContext
public void setCallContext(Object callcontext)
callcontext
- The callcontext to set.public ClassLoader getClassLoader()
getClassLoader
in interface IContext
public void setClassLoader(ClassLoader classloader)
classloader
- The classloader to set.public MultiCollection getPostProcessors()
public void setPostProcessors(MultiCollection postprocessors)
postprocessors
- The postprocessors to set.public int getArrayCount(Object parent)
public QName[] getXMLPath(QName tag)
stack
- The stack.public StackElement[] getStack()
Copyright © 2013. All Rights Reserved.