Package jadex.xml.reader
Class AReader
- java.lang.Object
- 
- jadex.xml.reader.AReader
 
- 
- Direct Known Subclasses:
- Reader
 
 public abstract class AReader extends java.lang.ObjectXML Reader abstract class.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanbulklinkThe link mode.static booleanDEBUGThe debug flag.static java.lang.ObjectNULLThe null object.static java.lang.ThreadLocal<AReadContext>READ_CONTEXTThis thread local variable provides access to the read context, e.g.protected XMLReporterreporterstatic java.lang.ObjectSTRING_MARKERThe string marker object.
 - 
Constructor SummaryConstructors Constructor Description AReader(boolean bulklink, XMLReporter reporter)
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected AReadContextcreateReadContext(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, IXMLReader parser, XMLReporter reporter, java.lang.Object callcontext, java.lang.ClassLoader classloader)protected abstract IXMLReadercreateXMLReader(java.io.InputStream input)protected abstract IXMLReadercreateXMLReader(java.io.Reader input)static SubobjectInfogetSubobjectInfoRead(QName localname, QName[] fullpath, TypeInfo patypeinfo, java.util.Map<java.lang.String,java.lang.String> attrs)Get a subobject info for reading.protected voidhandleComment(AReadContext readcontext)Handle the comment.protected voidhandleContent(AReadContext readcontext)Handle the content.protected voidhandleEndElement(AReadContext readcontext)Handle the end element.protected voidhandleStartElement(AReadContext readcontext)Handle the start element.static java.lang.ObjectobjectFromByteArray(AReader reader, byte[] val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)static java.lang.ObjectobjectFromByteArray(AReader reader, byte[] val, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler)static java.lang.ObjectobjectFromInputStream(AReader reader, java.io.InputStream val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)static java.lang.ObjectobjectFromInputStream(AReader reader, java.io.InputStream bis, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler)static java.lang.ObjectobjectFromXML(AReader reader, java.lang.String val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler)static java.lang.ObjectobjectFromXML(AReader reader, java.lang.String val, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler)java.lang.Objectread(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, IXMLReader parser, java.lang.ClassLoader classloader, java.lang.Object callcontext)Read properties from xml.java.lang.Objectread(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, java.io.InputStream input, java.lang.ClassLoader classloader, java.lang.Object callcontext)Read properties from xml.java.lang.Objectread(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, java.io.Reader input, java.lang.ClassLoader classloader, java.lang.Object callcontext)Read properties from xml.
 
- 
- 
- 
Field Detail- 
DEBUGpublic static final boolean DEBUG The debug flag.- See Also:
- Constant Field Values
 
 - 
STRING_MARKERpublic static final java.lang.Object STRING_MARKER The string marker object.
 - 
READ_CONTEXTpublic static final java.lang.ThreadLocal<AReadContext> READ_CONTEXT This thread local variable provides access to the read context, e.g. from the XML reporter, if required.
 - 
NULLpublic static final java.lang.Object NULL The null object.
 - 
bulklinkprotected boolean bulklink The link mode.
 - 
reporterprotected XMLReporter reporter 
 
- 
 - 
Constructor Detail- 
AReaderpublic AReader(boolean bulklink, XMLReporter reporter)
 
- 
 - 
Method Detail- 
objectFromXMLpublic static java.lang.Object objectFromXML(AReader reader, java.lang.String val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler) - Parameters:
- val- The string value.
- Returns:
- The encoded object.
 
 - 
objectFromXMLpublic static java.lang.Object objectFromXML(AReader reader, java.lang.String val, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler) - Parameters:
- val- The string value.
- Returns:
- The encoded object.
 
 - 
objectFromByteArraypublic static java.lang.Object objectFromByteArray(AReader reader, byte[] val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler) - Parameters:
- val- The string value.
- Returns:
- The encoded object.
 
 - 
objectFromByteArraypublic static java.lang.Object objectFromByteArray(AReader reader, byte[] val, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler) - Parameters:
- val- The string value.
- Returns:
- The encoded object.
 
 - 
objectFromInputStreampublic static java.lang.Object objectFromInputStream(AReader reader, java.io.InputStream val, java.lang.ClassLoader classloader, TypeInfoPathManager manager, IObjectReaderHandler handler) - Parameters:
- val- The string value.
- Returns:
- The encoded object.
 
 - 
objectFromInputStreampublic static java.lang.Object objectFromInputStream(AReader reader, java.io.InputStream bis, java.lang.ClassLoader classloader, java.lang.Object context, TypeInfoPathManager manager, IObjectReaderHandler handler) - Parameters:
- val- The string value.
- Returns:
- The encoded object.
 
 - 
getSubobjectInfoReadpublic static SubobjectInfo getSubobjectInfoRead(QName localname, QName[] fullpath, TypeInfo patypeinfo, java.util.Map<java.lang.String,java.lang.String> attrs) Get a subobject info for reading.
 - 
readpublic java.lang.Object read(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, java.io.Reader input, java.lang.ClassLoader classloader, java.lang.Object callcontext) throws java.lang.Exception Read properties from xml.- Parameters:
- input- The input stream.
- classloader- The classloader.
- context- The context.
- Throws:
- java.lang.Exception
 
 - 
readpublic java.lang.Object read(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, java.io.InputStream input, java.lang.ClassLoader classloader, java.lang.Object callcontext) throws java.lang.Exception Read properties from xml.- Parameters:
- input- The input stream.
- classloader- The classloader.
- context- The context.
- Throws:
- java.lang.Exception
 
 - 
readpublic java.lang.Object read(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, IXMLReader parser, java.lang.ClassLoader classloader, java.lang.Object callcontext) throws java.lang.Exception Read properties from xml.- Parameters:
- input- The input stream.
- classloader- The classloader.
- context- The context.
- Throws:
- java.lang.Exception
 
 - 
handleCommentprotected void handleComment(AReadContext readcontext) throws java.lang.Exception Handle the comment.- Parameters:
- readcontext- The context for reading with all necessary information.
- Throws:
- java.lang.Exception
 
 - 
handleContentprotected void handleContent(AReadContext readcontext) throws java.lang.Exception Handle the content.- Parameters:
- readcontext- The context for reading with all necessary information.
- Throws:
- java.lang.Exception
 
 - 
handleStartElementprotected void handleStartElement(AReadContext readcontext) throws java.lang.Exception Handle the start element.- Parameters:
- readcontext- The context for reading with all necessary information.
- Throws:
- java.lang.Exception
 
 - 
handleEndElementprotected void handleEndElement(AReadContext readcontext) throws java.lang.Exception Handle the end element.- Parameters:
- readcontext- The context for reading with all necessary information.
- Throws:
- java.lang.Exception
 
 - 
createReadContextprotected AReadContext createReadContext(TypeInfoPathManager tipmanager, IObjectReaderHandler handler, IXMLReader parser, XMLReporter reporter, java.lang.Object callcontext, java.lang.ClassLoader classloader) 
 - 
createXMLReaderprotected abstract IXMLReader createXMLReader(java.io.Reader input) 
 - 
createXMLReaderprotected abstract IXMLReader createXMLReader(java.io.InputStream input) 
 
- 
 
-