public class SAXUnmarshallerHandlerImpl extends Object implements SAXUnmarshallerHandler, UnmarshallingContext
UnmarshallerHandler
.
This object converts SAX events into unmarshaller events and
cooridnates the entire unmarshalling process.Constructor and Description |
---|
SAXUnmarshallerHandlerImpl(UnmarshallerImpl _parent,
TypeRegistry _reg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addPatcher(Runnable job)
Deprecated.
Adds a job that will be executed at the last of the unmarshalling.
|
String |
addToIdTable(String id)
Deprecated.
Adds the object which is currently being unmarshalled
to the ID table.
|
void |
characters(char[] buf,
int start,
int len)
Deprecated.
|
void |
consumeAttribute(int idx)
Deprecated.
Fires an attribute event for the specified attribute.
|
protected void |
consumeText(String str,
boolean ignorable)
Deprecated.
|
void |
endDocument()
Deprecated.
|
void |
endElement(String uri,
String local,
String qname)
Deprecated.
|
void |
endPrefixMapping(String prefix)
Deprecated.
Removes a namespace declaration.
|
int |
getAttribute(String uri,
String local)
Deprecated.
Gets the index of the attribute with the specified name.
|
String |
getBaseUri()
Deprecated.
|
UnmarshallingEventHandler |
getCurrentEventHandler()
Deprecated.
Gets the current handler.
|
ContentHandlerEx |
getCurrentHandler()
Deprecated.
|
Locator |
getLocator()
Deprecated.
Gets the current source location information.
|
String |
getNamespaceURI(String prefix)
Deprecated.
|
UnmarshallableObject |
getObjectFromId(String id)
Deprecated.
Looks up the ID table and gets associated object.
|
String |
getPrefix(String uri)
Deprecated.
|
Iterator |
getPrefixes(String uri)
Deprecated.
|
Object |
getResult()
Deprecated.
|
Tracer |
getTracer()
Deprecated.
Gets a tracer object.
|
TypeRegistry |
getTypeRegistry()
Deprecated.
Obtains a reference to the current type registry.
|
Attributes |
getUnconsumedAttributes()
Deprecated.
Gets all the unconsumed attributes.
|
boolean |
handleEvent(ValidationEvent event)
Deprecated.
|
void |
ignorableWhitespace(char[] buf,
int start,
int len)
Deprecated.
|
boolean |
isNotation(String s)
Deprecated.
|
boolean |
isUnparsedEntity(String s)
Deprecated.
|
void |
popAttributes()
Deprecated.
Discards the previously stored attribute set.
|
void |
popContentHandler()
Deprecated.
Pops a content handler from the stack and registers
it as the current content handler.
|
void |
processingInstruction(String target,
String data)
Deprecated.
|
void |
pushAttributes(Attributes atts)
Deprecated.
Stores a new attribute set.
|
void |
pushContentHandler(UnmarshallingEventHandler handler,
int memento)
Deprecated.
Pushes the current content handler into the stack
and registers the newly specified content handler so
that it can receive SAX events.
|
void |
reportAndThrow(UnreportedException e)
Deprecated.
|
String |
resolveNamespacePrefix(String prefix)
Deprecated.
|
void |
setDocumentLocator(Locator loc)
Deprecated.
|
void |
setTracer(Tracer t)
Deprecated.
|
void |
skippedEntity(String name)
Deprecated.
|
void |
startDocument()
Deprecated.
|
void |
startElement(String uri,
String local,
String qName,
Attributes atts)
Deprecated.
|
void |
startPrefixMapping(String prefix,
String uri)
Deprecated.
Adds a new namespace declaration.
|
public SAXUnmarshallerHandlerImpl(UnmarshallerImpl _parent, TypeRegistry _reg)
public TypeRegistry getTypeRegistry()
UnmarshallingContext
getTypeRegistry
in interface UnmarshallingContext
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startElement(String uri, String local, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public final void endElement(String uri, String local, String qname) throws SAXException
endElement
in interface ContentHandler
SAXException
public Object getResult() throws UnmarshalException
getResult
in interface UnmarshallerHandler
UnmarshalException
public void pushContentHandler(UnmarshallingEventHandler handler, int memento)
UnmarshallingContext
pushContentHandler
in interface UnmarshallingContext
memento
- When this newly specified handler will be removed from the stack,
the leaveChild event will be fired to the parent handler
with this memento.public void popContentHandler() throws UnreportedException
UnmarshallingContext
This method will also fire the leaveChild event with the associated memento.
popContentHandler
in interface UnmarshallingContext
UnreportedException
public ContentHandlerEx getCurrentHandler()
UnmarshallingContext
Returns the same object as the getCurrentEventHandler but in a different type.
getCurrentHandler
in interface UnmarshallingContext
public UnmarshallingEventHandler getCurrentEventHandler()
UnmarshallingContext
getCurrentEventHandler
in interface UnmarshallingContext
protected void consumeText(String str, boolean ignorable) throws UnreportedException
UnreportedException
public final void characters(char[] buf, int start, int len)
characters
in interface ContentHandler
public final void ignorableWhitespace(char[] buf, int start, int len)
ignorableWhitespace
in interface ContentHandler
public void startPrefixMapping(String prefix, String uri)
UnmarshallingContext
startPrefixMapping
in interface UnmarshallingContext
startPrefixMapping
in interface ContentHandler
public void endPrefixMapping(String prefix)
UnmarshallingContext
endPrefixMapping
in interface UnmarshallingContext
endPrefixMapping
in interface ContentHandler
public String resolveNamespacePrefix(String prefix)
resolveNamespacePrefix
in interface org.relaxng.datatype.ValidationContext
public Iterator getPrefixes(String uri)
getPrefixes
in interface NamespaceContext
public String getPrefix(String uri)
getPrefix
in interface NamespaceContext
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public void pushAttributes(Attributes atts)
UnmarshallingContext
pushAttributes
in interface UnmarshallingContext
public void popAttributes()
UnmarshallingContext
popAttributes
in interface UnmarshallingContext
public Attributes getUnconsumedAttributes()
UnmarshallingContext
getUnconsumedAttributes
in interface UnmarshallingContext
public int getAttribute(String uri, String local)
UnmarshallingContext
getAttribute
in interface UnmarshallingContext
public void consumeAttribute(int idx) throws UnreportedException
UnmarshallingContext
consumeAttribute
in interface UnmarshallingContext
UnreportedException
public void addPatcher(Runnable job)
UnmarshallingContext
addPatcher
in interface UnmarshallingContext
job
- The run method of this object is called.public String addToIdTable(String id)
UnmarshallingContext
addToIdTable
in interface UnmarshallingContext
public UnmarshallableObject getObjectFromId(String id)
UnmarshallingContext
getObjectFromId
in interface UnmarshallingContext
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void setDocumentLocator(Locator loc)
setDocumentLocator
in interface ContentHandler
public Locator getLocator()
UnmarshallingContext
getLocator
in interface UnmarshallingContext
public boolean handleEvent(ValidationEvent event)
handleEvent
in interface ValidationEventHandler
public void reportAndThrow(UnreportedException e) throws SAXException
SAXException
public String getBaseUri()
getBaseUri
in interface org.relaxng.datatype.ValidationContext
public boolean isUnparsedEntity(String s)
isUnparsedEntity
in interface org.relaxng.datatype.ValidationContext
public boolean isNotation(String s)
isNotation
in interface org.relaxng.datatype.ValidationContext
public void setTracer(Tracer t)
public Tracer getTracer()
UnmarshallingContext
getTracer
in interface UnmarshallingContext
Copyright © 2019 Oracle Corporation. All rights reserved.