Package jadex.xml.reader
Class AReadContext
- java.lang.Object
- 
- jadex.xml.reader.AReadContext
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.Map<java.lang.Object,java.lang.Integer>arrayinfosThe map or array information.protected java.lang.ObjectcallcontextThe call context.protected MultiCollection<java.lang.Object,LinkData>childrenThe map of objects to link in bulk mode (object -> map of tags -> objects per tag).protected java.lang.ClassLoaderclassloaderThe classloader.protected java.lang.StringcommentThe current comment.protected IObjectReaderHandlerdefaulthandlerThe default object handler.protected IXMLReaderparserThe parser.protected TypeInfoPathManagerpathmanagerThe type info path manager.protected MultiCollection<java.lang.Integer,IPostProcessorCall>postprocessorsThe post processors.protected intreadignoreThe readignore counter (0=do not ignore).protected java.util.Map<java.lang.String,java.lang.Object>readobjectsThe read objects per id.protected XMLReporterreporterThe parser.protected java.lang.ObjectrootobjectThe root object.protected java.util.List<StackElement>stackThe stack.
 - 
Constructor SummaryConstructors Constructor Description AReadContext(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, IXMLReader parser, XMLReporter reporter, java.lang.Object callcontext, java.lang.ClassLoader classloader)AReadContext(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, IXMLReader parser, XMLReporter reporter, java.lang.Object callcontext, java.lang.ClassLoader classloader, java.lang.Object root, java.util.List<StackElement> stack, StackElement topse, java.lang.String comment, java.util.Map<java.lang.String,java.lang.Object> readobjects, int readignore, MultiCollection<java.lang.Integer,IPostProcessorCall> postprocessors)Create a new read context.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(java.lang.Object key, LinkData value)Add a child.voidaddStackElement(StackElement elem)intgetArrayCount(java.lang.Object parent)Get the current array counter.java.util.List<LinkData>getChildren(java.lang.Object key)Get children.java.lang.ClassLoadergetClassLoader()Get the classloader.java.lang.StringgetComment()Get the comment.IObjectReaderHandlergetDefaultHandler()Get the defaulthandler.ILocationgetLocation()IXMLReadergetParser()Get the parser.TypeInfoPathManagergetPathManager()Get the pathManager.MultiCollection<java.lang.Integer,IPostProcessorCall>getPostProcessors()Get the postprocessors.intgetReadIgnore()Get the readignore.java.util.Map<java.lang.String,java.lang.Object>getReadObjects()Get the readobjects.XMLReportergetReporter()Get the reporter.java.lang.ObjectgetRootObject()Get the root object.StackElement[]getStack()StackElementgetStackElement(int pos)Get stack element.intgetStackSize()StackElementgetTopStackElement()Get the top stack element.java.lang.ObjectgetUserContext()Get the callcontext.protected QName[]getXMLPath()Get the xml path for a stack.QName[]getXMLPath(QName tag)Get the xml path for a stack.java.util.List<LinkData>removeChildren(java.lang.Object key)Remove a child.voidremoveStackElement()voidsetCallContext(java.lang.Object callcontext)Set the callcontext.voidsetClassLoader(java.lang.ClassLoader classloader)Set the classloader.voidsetComment(java.lang.String comment)Set the comment.voidsetPostProcessors(MultiCollection<java.lang.Integer,IPostProcessorCall> postprocessors)Set the postprocessors.voidsetReadIgnore(int readignore)Set the readignore.voidsetReadObjects(java.util.Map<java.lang.String,java.lang.Object> readobjects)Set the readobjects.voidsetStackElement(StackElement elem, int pos)
 
- 
- 
- 
Field Detail- 
pathmanagerprotected TypeInfoPathManager pathmanager The type info path manager.
 - 
defaulthandlerprotected IObjectReaderHandler defaulthandler The default object handler.
 - 
parserprotected IXMLReader parser The parser.
 - 
reporterprotected XMLReporter reporter The parser.
 - 
classloaderprotected java.lang.ClassLoader classloader The classloader.
 - 
rootobjectprotected java.lang.Object rootobject The root object.
 - 
stackprotected java.util.List<StackElement> stack The stack.
 - 
commentprotected java.lang.String comment The current comment.
 - 
readobjectsprotected java.util.Map<java.lang.String,java.lang.Object> readobjects The read objects per id.
 - 
readignoreprotected int readignore The readignore counter (0=do not ignore).
 - 
callcontextprotected java.lang.Object callcontext The call context.
 - 
postprocessorsprotected MultiCollection<java.lang.Integer,IPostProcessorCall> postprocessors The post processors.
 - 
arrayinfosprotected java.util.Map<java.lang.Object,java.lang.Integer> arrayinfos The map or array information.
 - 
childrenprotected MultiCollection<java.lang.Object,LinkData> children The map of objects to link in bulk mode (object -> map of tags -> objects per tag).
 
- 
 - 
Constructor Detail- 
AReadContextpublic AReadContext(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, IXMLReader parser, XMLReporter reporter, java.lang.Object callcontext, java.lang.ClassLoader classloader) - Parameters:
- parser-
 
 - 
AReadContextpublic AReadContext(TypeInfoPathManager pathmanager, IObjectReaderHandler handler, IXMLReader parser, XMLReporter reporter, java.lang.Object callcontext, java.lang.ClassLoader classloader, java.lang.Object root, java.util.List<StackElement> stack, StackElement topse, java.lang.String comment, java.util.Map<java.lang.String,java.lang.Object> readobjects, int readignore, MultiCollection<java.lang.Integer,IPostProcessorCall> postprocessors) Create a new read context.- Parameters:
- parser-
- root-
- stack-
- topse-
- comment-
- readobjects-
 
 
- 
 - 
Method Detail- 
getParserpublic IXMLReader getParser() Get the parser.- Returns:
- The parser.
 
 - 
getPathManagerpublic TypeInfoPathManager getPathManager() Get the pathManager.- Returns:
- the pathManager.
 
 - 
getDefaultHandlerpublic IObjectReaderHandler getDefaultHandler() Get the defaulthandler.- Returns:
- the defaulthandler.
 
 - 
getReporterpublic XMLReporter getReporter() Get the reporter.- Returns:
- The reporter.
 
 - 
getRootObjectpublic java.lang.Object getRootObject() Get the root object.- Specified by:
- getRootObjectin interface- IContext
- Returns:
- The root object.
 
 - 
getStackElementpublic StackElement getStackElement(int pos) Get stack element.
 - 
getTopStackElementpublic StackElement getTopStackElement() Get the top stack element.- Returns:
- The top stack element (if any).
 
 - 
addStackElementpublic void addStackElement(StackElement elem) 
 - 
setStackElementpublic void setStackElement(StackElement elem, int pos) 
 - 
removeStackElementpublic void removeStackElement() 
 - 
getStackSizepublic int getStackSize() 
 - 
getCommentpublic java.lang.String getComment() Get the comment.- Returns:
- The comment.
 
 - 
setCommentpublic void setComment(java.lang.String comment) Set the comment.- Parameters:
- comment- The comment to set.
 
 - 
getReadObjectspublic java.util.Map<java.lang.String,java.lang.Object> getReadObjects() Get the readobjects.- Returns:
- The readobjects.
 
 - 
setReadObjectspublic void setReadObjects(java.util.Map<java.lang.String,java.lang.Object> readobjects) Set the readobjects.- Parameters:
- readobjects- The readobjects to set.
 
 - 
getReadIgnorepublic int getReadIgnore() Get the readignore.- Returns:
- The readignore.
 
 - 
setReadIgnorepublic void setReadIgnore(int readignore) Set the readignore.- Parameters:
- readignore- The readignore to set.
 
 - 
getUserContextpublic java.lang.Object getUserContext() Get the callcontext.- Specified by:
- getUserContextin interface- IContext
- Returns:
- The callcontext.
 
 - 
setCallContextpublic void setCallContext(java.lang.Object callcontext) Set the callcontext.- Parameters:
- callcontext- The callcontext to set.
 
 - 
getClassLoaderpublic java.lang.ClassLoader getClassLoader() Get the classloader.- Specified by:
- getClassLoaderin interface- IContext
- Returns:
- The classloader.
 
 - 
setClassLoaderpublic void setClassLoader(java.lang.ClassLoader classloader) Set the classloader.- Parameters:
- classloader- The classloader to set.
 
 - 
getPostProcessorspublic MultiCollection<java.lang.Integer,IPostProcessorCall> getPostProcessors() Get the postprocessors.- Returns:
- The postprocessors.
 
 - 
setPostProcessorspublic void setPostProcessors(MultiCollection<java.lang.Integer,IPostProcessorCall> postprocessors) Set the postprocessors.- Parameters:
- postprocessors- The postprocessors to set.
 
 - 
getArrayCountpublic int getArrayCount(java.lang.Object parent) Get the current array counter.
 - 
getChildrenpublic java.util.List<LinkData> getChildren(java.lang.Object key) Get children.
 - 
addChildpublic void addChild(java.lang.Object key, LinkData value)Add a child.
 - 
removeChildrenpublic java.util.List<LinkData> removeChildren(java.lang.Object key) Remove a child.
 - 
getXMLPathpublic QName[] getXMLPath(QName tag) Get the xml path for a stack.- Parameters:
- stack- The stack.
- Returns:
- The string representig the xml stack (e.g. tag1/tag2/tag3)
 
 - 
getXMLPathprotected QName[] getXMLPath() Get the xml path for a stack.- Parameters:
- stack- The stack.
- Returns:
- The string representig the xml stack (e.g. tag1/tag2/tag3)
 
 - 
getStackpublic StackElement[] getStack() 
 - 
getLocationpublic ILocation getLocation() 
 
- 
 
-