org.apache.tuscany.sdo.util.resource
Class SDODeserializer

java.lang.Object
  extended by org.apache.tuscany.sdo.util.StreamDeserializer
      extended by org.apache.tuscany.sdo.util.resource.SDODeserializer
All Implemented Interfaces:
javax.xml.stream.XMLStreamConstants
Direct Known Subclasses:
ChangeSummaryStreamDeserializer

public class SDODeserializer
extends StreamDeserializer

SDO StAX Deserializer. The instance isn't thread-safe, however it's safe to use the instance any times on the same thread.


Nested Class Summary
protected static class SDODeserializer.Ref
           
 
Nested classes/interfaces inherited from class org.apache.tuscany.sdo.util.StreamDeserializer
StreamDeserializer.Attribute, StreamDeserializer.QualifiedAttribute
 
Field Summary
protected  commonj.sdo.Property propertyInSequence
           
 
Fields inherited from class org.apache.tuscany.sdo.util.StreamDeserializer
EQUAL, EQUAL_NULL, name, nameSpace, reader, SAME
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
SDODeserializer()
           
 
Method Summary
protected  commonj.sdo.Property getProperty(java.lang.String nameSpace, java.lang.String name, commonj.sdo.Type type)
           
protected  commonj.sdo.Property getProperty(commonj.sdo.Type type, java.lang.String name)
           
protected  commonj.sdo.Property getProperty(commonj.sdo.Type type, java.lang.String nameSpace, java.lang.String name, boolean element)
           
protected  commonj.sdo.Type globalElementType(java.lang.String nameSpace, java.lang.String name)
           
protected  void initialize(javax.xml.stream.XMLStreamReader stream, commonj.sdo.helper.HelperContext scope, java.lang.Object rootObject)
           
protected  java.lang.Object load(javax.xml.stream.XMLStreamReader reader, java.util.Map options)
           
protected  org.eclipse.emf.ecore.EObject referent(SDODeserializer.Ref path)
           
protected  org.eclipse.emf.ecore.EObject referent(java.lang.String ref, javax.xml.namespace.NamespaceContext nameSpaces)
           
protected  commonj.sdo.Type typeXSI()
           
protected  java.lang.Object value(commonj.sdo.Type type)
           
protected  java.lang.Object value(javax.xml.stream.XMLStreamReader reader)
           
 
Methods inherited from class org.apache.tuscany.sdo.util.StreamDeserializer
play, typedXSI, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyInSequence

protected commonj.sdo.Property propertyInSequence
Constructor Detail

SDODeserializer

public SDODeserializer()
Method Detail

initialize

protected final void initialize(javax.xml.stream.XMLStreamReader stream,
                                commonj.sdo.helper.HelperContext scope,
                                java.lang.Object rootObject)

getProperty

protected final commonj.sdo.Property getProperty(commonj.sdo.Type type,
                                                 java.lang.String nameSpace,
                                                 java.lang.String name,
                                                 boolean element)

getProperty

protected final commonj.sdo.Property getProperty(commonj.sdo.Type type,
                                                 java.lang.String name)

getProperty

protected final commonj.sdo.Property getProperty(java.lang.String nameSpace,
                                                 java.lang.String name,
                                                 commonj.sdo.Type type)

load

protected java.lang.Object load(javax.xml.stream.XMLStreamReader reader,
                                java.util.Map options)
                         throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

value

protected final java.lang.Object value(commonj.sdo.Type type)
                                throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

value

protected final java.lang.Object value(javax.xml.stream.XMLStreamReader reader)
                                throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

referent

protected final org.eclipse.emf.ecore.EObject referent(java.lang.String ref,
                                                       javax.xml.namespace.NamespaceContext nameSpaces)

referent

protected final org.eclipse.emf.ecore.EObject referent(SDODeserializer.Ref path)

typeXSI

protected final commonj.sdo.Type typeXSI()

globalElementType

protected final commonj.sdo.Type globalElementType(java.lang.String nameSpace,
                                                   java.lang.String name)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.