public interface UnmarshallingContext extends org.relaxng.datatype.ValidationContext, ContentHandler, NamespaceContext, ValidationEventHandler
Errors detected by the ContentHandlerEx-derived classes should
be either thrown as UnrepotedException
or reported through
the handleEvent method of this interface.
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 |
consumeAttribute(int idx)
Deprecated.
Fires an attribute event for the specified attribute.
|
void |
endPrefixMapping(String prefix)
Deprecated.
Removes a namespace declaration.
|
int |
getAttribute(String uri,
String name)
Deprecated.
Gets the index of the attribute with the specified name.
|
UnmarshallingEventHandler |
getCurrentEventHandler()
Deprecated.
Gets the current handler.
|
ContentHandlerEx |
getCurrentHandler()
Deprecated.
Ue the getCurentEventHandler method.
|
Locator |
getLocator()
Deprecated.
Gets the current source location information.
|
UnmarshallableObject |
getObjectFromId(String id)
Deprecated.
Looks up the ID table and gets associated object.
|
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.
|
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 |
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 |
startPrefixMapping(String prefix,
String namespaceUri)
Deprecated.
Adds a new namespace declaration.
|
getBaseUri, isNotation, isUnparsedEntity, resolveNamespacePrefix
characters, endDocument, endElement, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement
getNamespaceURI, getPrefix, getPrefixes
handleEvent
TypeRegistry getTypeRegistry()
void pushContentHandler(UnmarshallingEventHandler handler, int memento)
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.void popContentHandler() throws UnreportedException
This method will also fire the leaveChild event with the associated memento.
UnreportedException
ContentHandlerEx getCurrentHandler()
Returns the same object as the getCurrentEventHandler but in a different type.
UnmarshallingEventHandler getCurrentEventHandler()
void startPrefixMapping(String prefix, String namespaceUri)
startPrefixMapping
in interface ContentHandler
void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
void pushAttributes(Attributes atts)
void popAttributes()
int getAttribute(String uri, String name)
Attributes getUnconsumedAttributes()
void consumeAttribute(int idx) throws UnreportedException
UnreportedException
void addPatcher(Runnable job)
job
- The run method of this object is called.String addToIdTable(String id)
UnmarshallableObject getObjectFromId(String id)
Locator getLocator()
Tracer getTracer()
Copyright © 2019 Oracle Corporation. All rights reserved.