TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.hyades.models.hierarchy.util
Class HierarchyXMISaveImpl

java.lang.Object
  extended byorg.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
      extended byorg.eclipse.emf.ecore.xmi.impl.XMISaveImpl
          extended byorg.eclipse.hyades.models.hierarchy.util.HierarchyXMISaveImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.xmi.XMLSave

public class HierarchyXMISaveImpl
extends org.eclipse.emf.ecore.xmi.impl.XMISaveImpl

This implements the XML serializer, possibly using an XMLMap if one is provided as a save option.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.Escape, org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.Lookup, org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.XMLTypeInfoImpl
 
Nested classes inherited from class org.eclipse.emf.ecore.xmi.XMLSave
org.eclipse.emf.ecore.xmi.XMLSave.XMLTypeInfo
 
Field Summary
protected  char[] buffer
           
static int BUFFER_SIZE
           
protected  byte[] bytes
           
protected  java.util.List contentsSingleElementList
           
protected  int currentDepth
           
protected  int elementFeaturesCount
           
protected  java.util.List elementFeaturesPool
           
protected  int[] featureKinds
           
protected  java.lang.StringBuffer ids
           
protected  java.lang.StringBuffer xsiSchemaLocation
           
 
Fields inherited from class org.eclipse.emf.ecore.xmi.impl.XMISaveImpl
XMI_ID_NS, XMI_TAG_NS, XMI_TYPE_NS, XMI_VER_NS, XMI_XMLNS, xmiType, xmiURI
 
Fields inherited from class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
anySimpleType, anyType, ATTRIBUTE_FEATURE_MAP, CONTENT_ELEMENT, CROSS_DOC, currentNode, DATATYPE_ATTRIBUTE_MANY, DATATYPE_CONTENT_SINGLE, DATATYPE_ELEMENT_SINGLE, DATATYPE_MANY, DATATYPE_SINGLE, DATATYPE_SINGLE_NILLABLE, declareSchemaLocation, declareSchemaLocationImplementation, declareXML, declareXSI, doc, document, ELEMENT_FEATURE_MAP, EMPTY_ELEMENT, encoding, eObjectToExtensionMap, escape, escapeURI, extendedMetaData, featureTable, flushThreshold, handler, helper, idAttributeName, idAttributeNS, INDEX_LOOKUP, keepDefaults, map, nameInfo, OBJECT_ATTRIBUTE_IDREF_MANY, OBJECT_ATTRIBUTE_IDREF_SINGLE, OBJECT_ATTRIBUTE_MANY, OBJECT_ATTRIBUTE_SINGLE, OBJECT_CONTAIN_MANY, OBJECT_CONTAIN_MANY_UNSETTABLE, OBJECT_CONTAIN_SINGLE, OBJECT_CONTAIN_SINGLE_UNSETTABLE, OBJECT_ELEMENT_IDREF_MANY, OBJECT_ELEMENT_IDREF_SINGLE, OBJECT_ELEMENT_IDREF_SINGLE_UNSETTABLE, OBJECT_ELEMENT_MANY, OBJECT_ELEMENT_SINGLE, OBJECT_ELEMENT_SINGLE_UNSETTABLE, OBJECT_HREF_MANY, OBJECT_HREF_MANY_UNSETTABLE, OBJECT_HREF_SINGLE, OBJECT_HREF_SINGLE_UNSETTABLE, processDanglingHREF, root, SAME_DOC, saveTypeInfo, SKIP, toDOM, TRANSIENT, useCache, useEncodedAttributeStyle, XML_VERSION, xmlResource, xmlSchemaTypePackage, xmlTypeInfo, xmlVersion, XSI_NIL, XSI_NO_NAMESPACE_SCHEMA_LOCATION, XSI_SCHEMA_LOCATION, XSI_TYPE_NS, XSI_XMLNS
 
Constructor Summary
HierarchyXMISaveImpl(java.util.Map options, org.eclipse.emf.ecore.xmi.XMLHelper helper, java.lang.String encoding)
           
HierarchyXMISaveImpl(org.eclipse.emf.ecore.xmi.XMLHelper helper)
           
 
Method Summary
 void addNamespaceDeclarations()
           
protected  byte[] allocByteArray(int slen)
          Method allocByteArray.
protected  char[] allocCharArray(int slen)
           
protected  java.lang.String getContent(org.eclipse.emf.ecore.EObject o, org.eclipse.emf.ecore.EStructuralFeature[] features)
           
 void save(org.eclipse.emf.ecore.xmi.XMLResource resource, java.io.OutputStream outputStream, java.util.Map options)
           
protected  void saveDataTypeElementSingle(org.eclipse.emf.ecore.EObject o, org.eclipse.emf.ecore.EStructuralFeature f)
           
protected  void saveDataTypeMany(org.eclipse.emf.ecore.EObject o, org.eclipse.emf.ecore.EStructuralFeature f)
           
protected  void saveDataTypeSingle(org.eclipse.emf.ecore.EObject o, org.eclipse.emf.ecore.EStructuralFeature f)
           
protected  boolean saveFeatures(org.eclipse.emf.ecore.EObject o)
           
protected  void saveIDRefMany(org.eclipse.emf.ecore.EObject o, org.eclipse.emf.ecore.EStructuralFeature f)
           
 char[] toChar()
           
 void traverse(java.util.List contents)
           
 void write(java.io.OutputStreamWriter os)
           
 void writeAscii(java.io.OutputStream os)
           
protected  java.lang.Object writeTopObject(org.eclipse.emf.ecore.EObject top)
           
 java.lang.Object writeTopObjects(java.util.List contents)
           
 
Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMISaveImpl
init, isDuplicateURI, saveFeatureMapElementReference, saveTypeAttribute
 
Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
endSaveFeatures, getDataTypeElementSingleSimple, getDatatypeValue, getElementIDRefManySimple, getElementIDRefSingleSimple, getElementReferenceManySimple, getElementReferenceSingleSimple, getSchemaLocationRoot, isEmpty, isNil, processAttributeExtensions, processElementExtensions, sameDocMany, sameDocSingle, save, save, saveAttributeFeatureMap, saveContainedMany, saveContainedSingle, saveDataTypeAttributeMany, saveElement, saveElement, saveElementFeatureMap, saveElementID, saveElementIDRef, saveElementIDRef, saveElementIDRefMany, saveElementIDRefSingle, saveElementReference, saveElementReferenceMany, saveElementReferenceSingle, saveEObjectMany, saveEObjectSingle, saveHref, saveHRefMany, saveHRefSingle, saveIDRefSingle, saveManyEmpty, saveManyEmpty, saveNil, saveNil, saveTypeAttribute, write, writeTopAttributes, writeTopElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values

elementFeaturesPool

protected java.util.List elementFeaturesPool

ids

protected java.lang.StringBuffer ids

xsiSchemaLocation

protected java.lang.StringBuffer xsiSchemaLocation

buffer

protected char[] buffer

bytes

protected byte[] bytes

featureKinds

protected int[] featureKinds

currentDepth

protected int currentDepth

elementFeaturesCount

protected int elementFeaturesCount

contentsSingleElementList

protected java.util.List contentsSingleElementList
Constructor Detail

HierarchyXMISaveImpl

public HierarchyXMISaveImpl(org.eclipse.emf.ecore.xmi.XMLHelper helper)

HierarchyXMISaveImpl

public HierarchyXMISaveImpl(java.util.Map options,
                            org.eclipse.emf.ecore.xmi.XMLHelper helper,
                            java.lang.String encoding)
Method Detail

addNamespaceDeclarations

public void addNamespaceDeclarations()

save

public void save(org.eclipse.emf.ecore.xmi.XMLResource resource,
                 java.io.OutputStream outputStream,
                 java.util.Map options)
          throws java.io.IOException
Throws:
java.io.IOException

toChar

public char[] toChar()

traverse

public void traverse(java.util.List contents)

write

public void write(java.io.OutputStreamWriter os)
           throws java.io.IOException
Throws:
java.io.IOException

writeAscii

public void writeAscii(java.io.OutputStream os)
                throws java.io.IOException
Throws:
java.io.IOException

writeTopObjects

public java.lang.Object writeTopObjects(java.util.List contents)

getContent

protected java.lang.String getContent(org.eclipse.emf.ecore.EObject o,
                                      org.eclipse.emf.ecore.EStructuralFeature[] features)

allocByteArray

protected byte[] allocByteArray(int slen)
Method allocByteArray.

Parameters:
slen -
Returns:
byte[]

allocCharArray

protected char[] allocCharArray(int slen)

saveDataTypeElementSingle

protected void saveDataTypeElementSingle(org.eclipse.emf.ecore.EObject o,
                                         org.eclipse.emf.ecore.EStructuralFeature f)

saveDataTypeMany

protected void saveDataTypeMany(org.eclipse.emf.ecore.EObject o,
                                org.eclipse.emf.ecore.EStructuralFeature f)

saveDataTypeSingle

protected void saveDataTypeSingle(org.eclipse.emf.ecore.EObject o,
                                  org.eclipse.emf.ecore.EStructuralFeature f)

saveFeatures

protected boolean saveFeatures(org.eclipse.emf.ecore.EObject o)

saveIDRefMany

protected void saveIDRefMany(org.eclipse.emf.ecore.EObject o,
                             org.eclipse.emf.ecore.EStructuralFeature f)

writeTopObject

protected java.lang.Object writeTopObject(org.eclipse.emf.ecore.EObject top)

TPTP 4.2.0 Platform Project
Public API Specification