|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.jboss.axis.encoding.DeserializationContextImpl
public class DeserializationContextImpl
| Field Summary | |
|---|---|
protected boolean |
haveSeenSchemaNS
|
protected InputSource |
inputSource
|
protected MessageContext |
msgContext
|
protected int |
startOfMappingsPos
|
| Constructor Summary | |
|---|---|
DeserializationContextImpl(InputSource is,
MessageContext ctx,
String messageType)
Construct Deserializer |
|
DeserializationContextImpl(InputSource is,
MessageContext ctx,
String messageType,
SOAPEnvelopeAxisImpl env)
Construct Deserializer |
|
DeserializationContextImpl(MessageContext ctx,
SOAPHandler initialHandler)
Construct Deserializer using MessageContext and EnvelopeBuilder handler |
|
| Method Summary | |
|---|---|
void |
addObjectById(String id,
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(String namespace,
String localName,
String qName)
endElement is called at the end tag of an element |
void |
endEntity(String name)
|
void |
endPrefixMapping(String prefix)
|
SOAPElementAxisImpl |
getCurElement()
Get current MessageElement |
ArrayList |
getCurrentNSMappings()
Get the Namespace Mappings. |
int |
getCurrentRecordPos()
Get the current position in the record. |
Deserializer |
getDeserializer(Class cls,
javax.xml.namespace.QName xmlType)
Get a Deserializer which can turn a given xml type into a given Java type |
Deserializer |
getDeserializerForClass(Class cls)
Convenience method to get the Deserializer for a specific java class from its meta data. |
Deserializer |
getDeserializerForType(javax.xml.namespace.QName xmlType)
Convenience method to get the Deserializer for a specific xmlType. |
Locator |
getDocumentLocator()
|
SOAPElementAxisImpl |
getElementByID(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 |
getEnvelope()
Get Envelope |
MessageContext |
getMessageContext()
Get MessageContext |
String |
getNamespaceURI(String prefix)
Get the Namespace for a particular prefix |
Object |
getObjectByRef(String href)
Gets the MessageElement or actual Object value associated with the href value. |
javax.xml.namespace.QName |
getQNameFromString(String qNameStr)
Construct a QName from a string of the form |
SAX2EventRecorder |
getRecorder()
Get Event Recorder |
int |
getStartOfMappingsPos()
Get the start of the mapping position |
javax.xml.namespace.QName |
getTypeFromAttributes(String namespace,
String localName,
Attributes attrs)
Create a QName for the type of the element defined by localName and namespace with the specified attributes. |
javax.xml.namespace.QName |
getTypeFromXSITypeAttr(String namespace,
String localName,
Attributes attrs)
Create a QName for the type of the element defined by localName and namespace from the XSI type. |
TypeMapping |
getTypeMapping()
Get the TypeMapping for this DeserializationContext |
TypeMappingRegistry |
getTypeMappingRegistry()
Get the TypeMappingRegistry we're using. |
void |
ignorableWhitespace(char[] p1,
int p2,
int p3)
|
boolean |
isDoneParsing()
Return if done parsing document. |
boolean |
isNil(Attributes attrs)
Convenenience method that returns true if the value is nil (due to the xsi:nil) attribute. |
boolean |
isProcessingRef()
|
void |
parse()
Create a parser and parse the inputSource |
SOAPHandler |
popElementHandler()
|
void |
processingInstruction(String p1,
String p2)
|
void |
pushElementHandler(SOAPHandler handler)
************************************************************* Management of sub-handlers (deserializers) |
void |
pushNewElement(SOAPElementAxisImpl elem)
Push the MessageElement into the recorder |
void |
registerElementByID(String id,
SOAPElementAxisImpl 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(String href,
Deserializer dser)
During deserialization, an element with an href=#id |
void |
registerResolverForID(String id,
IDResolver resolver)
Each id can have its own kind of resolver. |
void |
replaceElementHandler(SOAPHandler handler)
Replace the handler at the top of the stack. |
InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
setCurElement(SOAPElementAxisImpl el)
Set current MessageElement |
void |
setDocumentLocator(Locator locator)
|
void |
setProcessingRef(boolean ref)
|
void |
setRecorder(SAX2EventRecorder recorder)
Set Event Recorder |
void |
skippedEntity(String p1)
|
void |
startCDATA()
|
void |
startDocument()
************************************************************* SAX event handlers |
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String namespace,
String localName,
String qName,
Attributes attributes)
startElement is called when an element is read. |
void |
startEntity(String name)
|
void |
startPrefixMapping(String prefix,
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 msgContext
protected InputSource inputSource
protected int startOfMappingsPos
protected boolean haveSeenSchemaNS
| Constructor Detail |
|---|
public DeserializationContextImpl(MessageContext ctx,
SOAPHandler initialHandler)
ctx - is the MessageContextinitialHandler - is the EnvelopeBuilder handler
public DeserializationContextImpl(InputSource is,
MessageContext ctx,
String messageType)
is - is the InputSourcectx - is the MessageContextmessageType - is the MessageType to construct an EnvelopeBuilder
public DeserializationContextImpl(InputSource is,
MessageContext ctx,
String messageType,
SOAPEnvelopeAxisImpl 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 SAXException
SAXExceptionpublic SOAPElementAxisImpl getCurElement()
public void setCurElement(SOAPElementAxisImpl el)
public MessageContext getMessageContext()
public SOAPEnvelopeAxisImpl getEnvelope()
public SAX2EventRecorder getRecorder()
public void setRecorder(SAX2EventRecorder recorder)
public ArrayList getCurrentNSMappings()
public String getNamespaceURI(String prefix)
public javax.xml.namespace.QName getQNameFromString(String qNameStr)
qNameStr - is the prefixed name from the xml text
public javax.xml.namespace.QName getTypeFromXSITypeAttr(String namespace,
String localName,
Attributes attrs)
namespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the element
public javax.xml.namespace.QName getTypeFromAttributes(String namespace,
String localName,
Attributes attrs)
namespace - of the elementlocalName - is the local name of the elementattrs - are the attributes on the elementpublic Deserializer getDeserializerForClass(Class cls)
cls - is the Class used to find the deserializer
public boolean isNil(Attributes attrs)
attrs - are the element attributes.
public final Deserializer getDeserializer(Class cls,
javax.xml.namespace.QName xmlType)
public final Deserializer getDeserializerForType(javax.xml.namespace.QName xmlType)
xmlType - is QName for a type to deserialize
public TypeMapping getTypeMapping()
public TypeMappingRegistry getTypeMappingRegistry()
public SOAPElementAxisImpl getElementByID(String id)
id - is the value of an href attribute
public Object getObjectByRef(String href)
href - is the value of an href attribute (or an Attachment id)
public void addObjectById(String id,
Object obj)
id - (id name without the #)obj - is the deserialized object for this id.
public void registerFixup(String href,
Deserializer dser)
href - (#id syntax)dser - is the deserializer of the element
public void registerElementByID(String id,
SOAPElementAxisImpl elem)
id - (id name without the #)elem - is the MessageElement
public void registerResolverForID(String id,
IDResolver resolver)
public int getCurrentRecordPos()
public int getStartOfMappingsPos()
public void pushNewElement(SOAPElementAxisImpl elem)
public void pushElementHandler(SOAPHandler handler)
public void replaceElementHandler(SOAPHandler handler)
public SOAPHandler popElementHandler()
public void setProcessingRef(boolean ref)
public boolean isProcessingRef()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic boolean isDoneParsing()
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class DefaultHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerpublic Locator getDocumentLocator()
public void characters(char[] p1,
int p2,
int p3)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXException
public void ignorableWhitespace(char[] p1,
int p2,
int p3)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXException
public void processingInstruction(String p1,
String p2)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class DefaultHandlerSAXException
public void skippedEntity(String p1)
throws SAXException
skippedEntity in interface ContentHandlerskippedEntity in class DefaultHandlerSAXException
public void startElement(String namespace,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXException
public void endElement(String namespace,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXException
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
startDTD in interface LexicalHandlerSAXException
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXException
public void startEntity(String name)
throws SAXException
startEntity in interface LexicalHandlerSAXException
public void endEntity(String name)
throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXException
public InputSource resolveEntity(String publicId,
String systemId)
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||