|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.jboss.axis.encoding.DeserializationContextImpl
| Field Summary | |
protected boolean |
haveSeenSchemaNS
|
protected org.xml.sax.InputSource |
inputSource
|
protected MessageContext (src) |
msgContext
|
protected int |
startOfMappingsPos
|
| Constructor Summary | |
DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext (src) ctx,
java.lang.String messageType)
Construct Deserializer |
|
DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext (src) ctx,
java.lang.String messageType,
SOAPEnvelopeAxisImpl (src) env)
Construct Deserializer |
|
DeserializationContextImpl(MessageContext (src) ctx,
SOAPHandler (src) initialHandler)
Construct Deserializer using MessageContext and EnvelopeBuilder handler |
|
| Method Summary | |
void |
addObjectById(java.lang.String id,
java.lang.Object obj)
Add the object associated with this id (where id is the value of an id= attribute, i.e. |
void |
characters(char[] p1,
int p2,
int p3)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
deserializing(boolean isDeserializing)
|
void |
endCDATA()
|
void |
endDocument()
endDocument is invoked at the end of the document. |
void |
endDTD()
|
void |
endElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName)
endElement is called at the end tag of an element |
void |
endEntity(java.lang.String name)
|
void |
endPrefixMapping(java.lang.String prefix)
|
SOAPElementAxisImpl (src) |
getCurElement()
Get current MessageElement |
java.util.ArrayList |
getCurrentNSMappings()
Get the Namespace Mappings. |
int |
getCurrentRecordPos()
Get the current position in the record. |
Deserializer (src) |
getDeserializer(java.lang.Class cls,
QName (src) xmlType)
Get a Deserializer which can turn a given xml type into a given Java type |
Deserializer (src) |
getDeserializerForClass(java.lang.Class cls)
Convenience method to get the Deserializer for a specific java class from its meta data. |
Deserializer (src) |
getDeserializerForType(QName (src) xmlType)
Convenience method to get the Deserializer for a specific xmlType. |
org.xml.sax.Locator |
getDocumentLocator()
|
SOAPElementAxisImpl (src) |
getElementByID(java.lang.String id)
Get the MessageElement for the indicated id (where id is the #value of an href) If the MessageElement has not been processed, the MessageElement will be returned. |
SOAPEnvelopeAxisImpl (src) |
getEnvelope()
Get Envelope |
MessageContext (src) |
getMessageContext()
Get MessageContext |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Get the Namespace for a particular prefix |
java.lang.Object |
getObjectByRef(java.lang.String href)
Gets the MessageElement or actual Object value associated with the href value. |
QName (src) |
getQNameFromString(java.lang.String qNameStr)
Construct a QName from a string of the form |
SAX2EventRecorder (src) |
getRecorder()
Get Event Recorder |
int |
getStartOfMappingsPos()
Get the start of the mapping position |
QName (src) |
getTypeFromAttributes(java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Create a QName for the type of the element defined by localName and namespace with the specified attributes. |
QName (src) |
getTypeFromXSITypeAttr(java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Create a QName for the type of the element defined by localName and namespace from the XSI type. |
TypeMapping (src) |
getTypeMapping()
Get the TypeMapping for this DeserializationContext |
TypeMappingRegistry (src) |
getTypeMappingRegistry()
Get the TypeMappingRegistry we're using. |
void |
ignorableWhitespace(char[] p1,
int p2,
int p3)
|
boolean |
isDoneParsing()
Return if done parsing document. |
boolean |
isNil(org.xml.sax.Attributes attrs)
Convenenience method that returns true if the value is nil (due to the xsi:nil) attribute. |
boolean |
isProcessingRef()
Are we in the midst of processing an href target? If so, we shouldn't be pushing the element stack... |
void |
parse()
Create a parser and parse the inputSource |
SOAPHandler (src) |
popElementHandler()
|
void |
processingInstruction(java.lang.String p1,
java.lang.String p2)
|
void |
pushElementHandler(SOAPHandler (src) handler)
************************************************************* Management of sub-handlers (deserializers) |
void |
pushNewElement(SOAPElementAxisImpl (src) elem)
Push the MessageElement into the recorder |
void |
registerElementByID(java.lang.String id,
SOAPElementAxisImpl (src) elem)
Register the MessageElement with this id (where id is id= form without the #) This routine is called when the MessageElement with an id is read. |
void |
registerFixup(java.lang.String href,
Deserializer (src) dser)
During deserialization, an element with an href=#id |
void |
registerResolverForID(java.lang.String id,
IDResolver (src) resolver)
Each id can have its own kind of resolver. |
void |
replaceElementHandler(SOAPHandler (src) handler)
Replace the handler at the top of the stack. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
void |
setCurElement(SOAPElementAxisImpl (src) el)
Set current MessageElement |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setProcessingRef(boolean ref)
Indicate if we're in the midst of processing an href target, in which case we shouldn't be pushing the element stack. |
void |
setRecorder(SAX2EventRecorder (src) recorder)
Set Event Recorder |
void |
skippedEntity(java.lang.String p1)
|
void |
startCDATA()
|
void |
startDocument()
************************************************************* SAX event handlers |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
startElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
startElement is called when an element is read. |
void |
startEntity(java.lang.String name)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
Record the current set of prefix mappings in the nsMappings table. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
error, fatalError, notationDecl, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected MessageContext (src) msgContext
protected org.xml.sax.InputSource inputSource
protected int startOfMappingsPos
protected boolean haveSeenSchemaNS
| Constructor Detail |
public DeserializationContextImpl(MessageContext (src) ctx,
SOAPHandler (src) initialHandler)
ctx - is the MessageContextinitialHandler - is the EnvelopeBuilder handler
public DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext (src) ctx,
java.lang.String messageType)
is - is the InputSourcectx - is the MessageContextmessageType - is the MessageType to construct an EnvelopeBuilder
public DeserializationContextImpl(org.xml.sax.InputSource is,
MessageContext (src) ctx,
java.lang.String messageType,
SOAPEnvelopeAxisImpl (src) env)
is - is the InputSourcectx - is the MessageContextmessageType - is the MessageType to construct an EnvelopeBuilderenv - is the SOAPEnvelope to construct an EnvelopeBuilder| Method Detail |
public void deserializing(boolean isDeserializing)
public void parse()
throws org.xml.sax.SAXException
parse in interface DeserializationContext (src) org.xml.sax.SAXExceptionpublic SOAPElementAxisImpl (src) getCurElement()
getCurElement in interface DeserializationContext (src) public void setCurElement(SOAPElementAxisImpl (src) el)
setCurElement in interface DeserializationContext (src) public MessageContext (src) getMessageContext()
getMessageContext in interface DeserializationContext (src) public SOAPEnvelopeAxisImpl (src) getEnvelope()
getEnvelope in interface DeserializationContext (src) public SAX2EventRecorder (src) getRecorder()
getRecorder in interface DeserializationContext (src) public void setRecorder(SAX2EventRecorder (src) recorder)
setRecorder in interface DeserializationContext (src) public java.util.ArrayList getCurrentNSMappings()
getCurrentNSMappings in interface DeserializationContext (src) public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface DeserializationContext (src) public QName (src) getQNameFromString(java.lang.String qNameStr)
getQNameFromString in interface DeserializationContext (src) qNameStr - is the prefixed name from the xml text
public QName (src) getTypeFromXSITypeAttr(java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
getTypeFromXSITypeAttr in interface DeserializationContext (src) namespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the element
public QName (src) getTypeFromAttributes(java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
getTypeFromAttributes in interface DeserializationContext (src) namespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the elementpublic Deserializer (src) getDeserializerForClass(java.lang.Class cls)
getDeserializerForClass in interface DeserializationContext (src) cls - is the Class used to find the deserializer
public boolean isNil(org.xml.sax.Attributes attrs)
isNil in interface DeserializationContext (src) attrs - are the element attributes.
public final Deserializer (src) getDeserializer(java.lang.Class cls,
QName (src) xmlType)
getDeserializer in interface DeserializationContext (src) public final Deserializer (src) getDeserializerForType(QName (src) xmlType)
getDeserializerForType in interface DeserializationContext (src) xmlType - is QName for a type to deserialize
public TypeMapping (src) getTypeMapping()
getTypeMapping in interface DeserializationContext (src) public TypeMappingRegistry (src) getTypeMappingRegistry()
getTypeMappingRegistry in interface DeserializationContext (src) public SOAPElementAxisImpl (src) getElementByID(java.lang.String id)
getElementByID in interface DeserializationContext (src) id - is the value of an href attribute
public java.lang.Object getObjectByRef(java.lang.String href)
getObjectByRef in interface DeserializationContext (src) href - is the value of an href attribute (or an Attachment id)
public void addObjectById(java.lang.String id,
java.lang.Object obj)
addObjectById in interface DeserializationContext (src) id - (id name without the #)obj - is the deserialized object for this id.
public void registerFixup(java.lang.String href,
Deserializer (src) dser)
registerFixup in interface DeserializationContext (src) href - (#id syntax)dser - is the deserializer of the element
public void registerElementByID(java.lang.String id,
SOAPElementAxisImpl (src) elem)
registerElementByID in interface DeserializationContext (src) id - (id name without the #)elem - is the MessageElement
public void registerResolverForID(java.lang.String id,
IDResolver (src) resolver)
registerResolverForID in interface DeserializationContext (src) public int getCurrentRecordPos()
getCurrentRecordPos in interface DeserializationContext (src) public int getStartOfMappingsPos()
getStartOfMappingsPos in interface DeserializationContext (src) public void pushNewElement(SOAPElementAxisImpl (src) elem)
pushNewElement in interface DeserializationContext (src) public void pushElementHandler(SOAPHandler (src) handler)
pushElementHandler in interface DeserializationContext (src) public void replaceElementHandler(SOAPHandler (src) handler)
replaceElementHandler in interface DeserializationContext (src) public SOAPHandler (src) popElementHandler()
popElementHandler in interface DeserializationContext (src) public void setProcessingRef(boolean ref)
DeserializationContext (src)
setProcessingRef in interface DeserializationContext (src) ref - public boolean isProcessingRef()
DeserializationContext (src)
isProcessingRef in interface DeserializationContext (src)
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.SAXExceptionpublic boolean isDoneParsing()
isDoneParsing in interface DeserializationContext (src)
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerpublic org.xml.sax.Locator getDocumentLocator()
public void characters(char[] p1,
int p2,
int p3)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void ignorableWhitespace(char[] p1,
int p2,
int p3)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void processingInstruction(java.lang.String p1,
java.lang.String p2)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void skippedEntity(java.lang.String p1)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void startElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String namespace,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException
public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
startDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void endDTD()
throws org.xml.sax.SAXException
endDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
startEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
endEntity in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void startCDATA()
throws org.xml.sax.SAXException
startCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void endCDATA()
throws org.xml.sax.SAXException
endCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
resolveEntity in interface org.xml.sax.EntityResolver
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||