|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.bind.unmarshaller.SAXUnmarshallerHandlerImpl
public class SAXUnmarshallerHandlerImpl
Implementation of UnmarshallerHandler.
This object converts SAX events into unmarshaller events and
cooridnates the entire unmarshalling process.
| Constructor Summary | |
|---|---|
SAXUnmarshallerHandlerImpl(UnmarshallerImpl _parent,
TypeRegistry _reg)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addPatcher(java.lang.Runnable job)
Deprecated. Adds a job that will be executed at the last of the unmarshalling. |
java.lang.String |
addToIdTable(java.lang.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(java.lang.String str,
boolean ignorable)
Deprecated. |
void |
endDocument()
Deprecated. |
void |
endElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
Deprecated. |
void |
endPrefixMapping(java.lang.String prefix)
Deprecated. Removes a namespace declaration. |
int |
getAttribute(java.lang.String uri,
java.lang.String local)
Deprecated. Gets the index of the attribute with the specified name. |
java.lang.String |
getBaseUri()
Deprecated. |
UnmarshallingEventHandler |
getCurrentEventHandler()
Deprecated. Gets the current handler. |
ContentHandlerEx |
getCurrentHandler()
Deprecated. |
org.xml.sax.Locator |
getLocator()
Deprecated. Gets the current source location information. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Deprecated. |
UnmarshallableObject |
getObjectFromId(java.lang.String id)
Deprecated. Looks up the ID table and gets associated object. |
java.lang.String |
getPrefix(java.lang.String uri)
Deprecated. |
java.util.Iterator |
getPrefixes(java.lang.String uri)
Deprecated. |
java.lang.Object |
getResult()
Deprecated. |
Tracer |
getTracer()
Deprecated. Gets a tracer object. |
TypeRegistry |
getTypeRegistry()
Deprecated. Obtains a reference to the current type registry. |
org.xml.sax.Attributes |
getUnconsumedAttributes()
Deprecated. Gets all the unconsumed attributes. |
boolean |
handleEvent(ValidationEvent event)
Deprecated. |
void |
ignorableWhitespace(char[] buf,
int start,
int len)
Deprecated. |
boolean |
isNotation(java.lang.String s)
Deprecated. |
boolean |
isUnparsedEntity(java.lang.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(java.lang.String target,
java.lang.String data)
Deprecated. |
void |
pushAttributes(org.xml.sax.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. |
java.lang.String |
resolveNamespacePrefix(java.lang.String prefix)
Deprecated. |
void |
setDocumentLocator(org.xml.sax.Locator loc)
Deprecated. |
void |
setTracer(Tracer t)
Deprecated. |
void |
skippedEntity(java.lang.String name)
Deprecated. |
void |
startDocument()
Deprecated. |
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String qName,
org.xml.sax.Attributes atts)
Deprecated. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Deprecated. Adds a new namespace declaration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAXUnmarshallerHandlerImpl(UnmarshallerImpl _parent,
TypeRegistry _reg)
| Method Detail |
|---|
public TypeRegistry getTypeRegistry()
UnmarshallingContext
getTypeRegistry in interface UnmarshallingContext
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void startElement(java.lang.String uri,
java.lang.String local,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public final void endElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public java.lang.Object getResult()
throws UnmarshalException
getResult in interface UnmarshallerHandlerUnmarshalException
public void pushContentHandler(UnmarshallingEventHandler handler,
int memento)
UnmarshallingContext
pushContentHandler in interface UnmarshallingContextmemento - 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
UnmarshallingContextThis method will also fire the leaveChild event with the associated memento.
popContentHandler in interface UnmarshallingContextUnreportedExceptionpublic ContentHandlerEx getCurrentHandler()
UnmarshallingContextReturns the same object as the getCurrentEventHandler but in a different type.
getCurrentHandler in interface UnmarshallingContextpublic UnmarshallingEventHandler getCurrentEventHandler()
UnmarshallingContext
getCurrentEventHandler in interface UnmarshallingContext
protected void consumeText(java.lang.String str,
boolean ignorable)
throws UnreportedException
UnreportedException
public final void characters(char[] buf,
int start,
int len)
characters in interface org.xml.sax.ContentHandler
public final void ignorableWhitespace(char[] buf,
int start,
int len)
ignorableWhitespace in interface org.xml.sax.ContentHandler
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
UnmarshallingContext
startPrefixMapping in interface UnmarshallingContextstartPrefixMapping in interface org.xml.sax.ContentHandlerpublic void endPrefixMapping(java.lang.String prefix)
UnmarshallingContext
endPrefixMapping in interface UnmarshallingContextendPrefixMapping in interface org.xml.sax.ContentHandlerpublic java.lang.String resolveNamespacePrefix(java.lang.String prefix)
resolveNamespacePrefix in interface ValidationContextpublic java.util.Iterator getPrefixes(java.lang.String uri)
getPrefixes in interface javax.xml.namespace.NamespaceContextpublic java.lang.String getPrefix(java.lang.String uri)
getPrefix in interface javax.xml.namespace.NamespaceContextpublic java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface javax.xml.namespace.NamespaceContextpublic void pushAttributes(org.xml.sax.Attributes atts)
UnmarshallingContext
pushAttributes in interface UnmarshallingContextpublic void popAttributes()
UnmarshallingContext
popAttributes in interface UnmarshallingContextpublic org.xml.sax.Attributes getUnconsumedAttributes()
UnmarshallingContext
getUnconsumedAttributes in interface UnmarshallingContext
public int getAttribute(java.lang.String uri,
java.lang.String local)
UnmarshallingContext
getAttribute in interface UnmarshallingContext
public void consumeAttribute(int idx)
throws UnreportedException
UnmarshallingContext
consumeAttribute in interface UnmarshallingContextUnreportedExceptionpublic void addPatcher(java.lang.Runnable job)
UnmarshallingContext
addPatcher in interface UnmarshallingContextjob - The run method of this object is called.public java.lang.String addToIdTable(java.lang.String id)
UnmarshallingContext
addToIdTable in interface UnmarshallingContextpublic UnmarshallableObject getObjectFromId(java.lang.String id)
UnmarshallingContext
getObjectFromId in interface UnmarshallingContextpublic void skippedEntity(java.lang.String name)
skippedEntity in interface org.xml.sax.ContentHandler
public void processingInstruction(java.lang.String target,
java.lang.String data)
processingInstruction in interface org.xml.sax.ContentHandlerpublic void setDocumentLocator(org.xml.sax.Locator loc)
setDocumentLocator in interface org.xml.sax.ContentHandlerpublic org.xml.sax.Locator getLocator()
UnmarshallingContext
getLocator in interface UnmarshallingContextpublic boolean handleEvent(ValidationEvent event)
handleEvent in interface ValidationEventHandler
public void reportAndThrow(UnreportedException e)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic java.lang.String getBaseUri()
getBaseUri in interface ValidationContextpublic boolean isUnparsedEntity(java.lang.String s)
isUnparsedEntity in interface ValidationContextpublic boolean isNotation(java.lang.String s)
isNotation in interface ValidationContextpublic void setTracer(Tracer t)
public Tracer getTracer()
UnmarshallingContext
getTracer in interface UnmarshallingContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||