Top Inners Fields Constructors Methods
org.jooq.impl

pack-priv final Class XMLHandler<R extends org.jooq.Record>

extends DefaultHandler
Class Inheritance
Static Imports
org.jooq.impl.DSL.field, .DSL.name, .DefaultDataType.getDataType, .SQLDataType.VARCHAR, .Tools.EMPTY_FIELD, .Tools.allMatch, .Tools.fields, .Tools.newRecord, .Tools.row0, org.jooq.tools.StringUtils.defaultIfBlank

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final DSLContext
private static final boolean
private static final JooqLogger
private XMLHandler.State<R>
s

private final Deque<XMLHandler.State<R>>

Constructor Summary

AccessConstructor and Description
pack-priv
XMLHandler(DSLContext ctx, AbstractRow<R> row, Class<? extends R> recordType)

Method Summary

Modifier and TypeMethod and Description
public final void
characters(char[]
The characters.
ch
,
int
The start position in the character array.
start
,
int
The number of characters to use from the character array.
length
)

Overrides org.xml.sax.helpers.DefaultHandler.characters.

Implements org.xml.sax.ContentHandler.characters.

Receive notification of character data inside an element.
public final void
endElement(String
The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
uri
,
String
The local name (without prefix), or the empty string if Namespace processing is not being performed.
localName
,
String
The qualified name (with prefix), or the empty string if qualified names are not available.
qName
)

Overrides org.xml.sax.helpers.DefaultHandler.endElement.

Implements org.xml.sax.ContentHandler.endElement.

Receive notification of the end of an element.
private void
private final boolean
isNil(Attributes attributes)

private static boolean
pack-priv Result<R>
read(String string)

public final void
startElement(String
The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
uri
,
String
The local name (without prefix), or the empty string if Namespace processing is not being performed.
localName
,
String
The qualified name (with prefix), or the empty string if qualified names are not available.
qName
,
Attributes
The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
attributes
)

Overrides org.xml.sax.helpers.DefaultHandler.startElement.

Implements org.xml.sax.ContentHandler.startElement.

Receive notification of the start of an element.
Inherited from org.xml.sax.helpers.DefaultHandler:
endDocumentendPrefixMappingerrorfatalErrorignorableWhitespacenotationDeclprocessingInstructionresolveEntitysetDocumentLocatorskippedEntitystartDocumentstartPrefixMappingunparsedEntityDeclwarning

Field Detail

ctxback to summary
private final DSLContext ctx
debugback to summary
private static final boolean debug
logback to summary
private static final JooqLogger log
sback to summary
private XMLHandler.State<R> s
statesback to summary
private final Deque<XMLHandler.State<R>> states

Constructor Detail

XMLHandlerback to summary
pack-priv XMLHandler(DSLContext ctx, AbstractRow<R> row, Class<? extends R> recordType)

Method Detail

charactersback to summary
public final void characters(char[] ch, int start, int length) throws SAXException

Overrides org.xml.sax.helpers.DefaultHandler.characters.

Implements org.xml.sax.ContentHandler.characters.

Doc from org.xml.sax.helpers.DefaultHandler.characters.

Receive notification of character data inside an element.

By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).

Parameters
ch:char[]

The characters.

start:int

The start position in the character array.

length:int

The number of characters to use from the character array.

Annotations
@Override
Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.
endElementback to summary
public final void endElement(String uri, String localName, String qName) throws SAXException

Overrides org.xml.sax.helpers.DefaultHandler.endElement.

Implements org.xml.sax.ContentHandler.endElement.

Doc from org.xml.sax.helpers.DefaultHandler.endElement.

Receive notification of the end of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).

Parameters
uri:String

The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.

localName:String

The local name (without prefix), or the empty string if Namespace processing is not being performed.

qName:String

The qualified name (with prefix), or the empty string if qualified names are not available.

Annotations
@Override
Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.
initResultback to summary
private void initResult()
Annotations
@SuppressWarnings:unchecked
isNilback to summary
private final boolean isNil(Attributes attributes)
onlyValueFieldsback to summary
private static boolean onlyValueFields(List<Field<?>> fields)
readback to summary
pack-priv Result<R> read(String string)
startElementback to summary
public final void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException

Overrides org.xml.sax.helpers.DefaultHandler.startElement.

Implements org.xml.sax.ContentHandler.startElement.

Doc from org.xml.sax.helpers.DefaultHandler.startElement.

Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).

Parameters
uri:String

The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.

localName:String

The local name (without prefix), or the empty string if Namespace processing is not being performed.

qName:String

The qualified name (with prefix), or the empty string if qualified names are not available.

attributes:Attributes

The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.

Annotations
@SuppressWarnings:unchecked
@Override
Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.
org.jooq.impl back to summary

private Class XMLHandler.State<R extends org.jooq.Record>

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv final DSLContext
pack-priv List<Object>
pack-priv final List<Field<?>>
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv int
pack-priv boolean
pack-priv final Class<? extends R>
pack-priv Result<R>
pack-priv AbstractRow<R>
pack-priv final List<Object>

Constructor Summary

AccessConstructor and Description
pack-priv
State(DSLContext ctx, AbstractRow<R> row, Class<? extends R> recordType)

Method Summary

Modifier and TypeMethod and Description
pack-priv final R
into(R r)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
pack-priv int column
ctxback to summary
pack-priv final DSLContext ctx
elementsback to summary
pack-priv List<Object> elements
fieldsback to summary
pack-priv final List<Field<?>> fields
inColumnback to summary
pack-priv boolean inColumn
inElementback to summary
pack-priv boolean inElement
inFieldsback to summary
pack-priv boolean inFields
inRecordback to summary
pack-priv int inRecord
inResultback to summary
pack-priv boolean inResult
recordTypeback to summary
pack-priv final Class<? extends R> recordType
resultback to summary
pack-priv Result<R> result
rowback to summary
pack-priv AbstractRow<R> row
valuesback to summary
pack-priv final List<Object> values

Constructor Detail

Stateback to summary
pack-priv State(DSLContext ctx, AbstractRow<R> row, Class<? extends R> recordType)
Annotations
@SuppressWarnings:unchecked

Method Detail

intoback to summary
pack-priv final R into(R r)