public class ExtendedXMLSaveImpl
extends org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
XMLSave
implementation that provides support for on-the-fly migration of instances of newer
metamodel implementations to older resource
s using model converter
s.
The model converter
to be used for on-the-fly resource migration must be contributed to the
org.eclipse.sphinx.emf.modelConverters
extension point.
Modifier and Type | Field and Description |
---|---|
protected IModelConverter |
converter |
protected java.util.Map<?,?> |
options
The save options.
|
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, elementHandler, 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, proxyAttributes, resourceEntityHandler, root, roots, 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 and Description |
---|
ExtendedXMLSaveImpl(java.util.Map<?,?> options,
org.eclipse.emf.ecore.xmi.XMLHelper helper,
java.lang.String encoding) |
ExtendedXMLSaveImpl(java.util.Map<?,?> options,
org.eclipse.emf.ecore.xmi.XMLHelper helper,
java.lang.String encoding,
java.lang.String xmlVersion) |
ExtendedXMLSaveImpl(org.eclipse.emf.ecore.xmi.XMLHelper helper) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNamespaceDeclarations() |
protected java.lang.StringBuffer |
getBuffer() |
void |
save(org.eclipse.emf.ecore.xmi.XMLResource resource,
java.io.OutputStream outputStream,
java.util.Map<?,?> options) |
void |
save(org.eclipse.emf.ecore.xmi.XMLResource resource,
java.io.Writer writer,
java.util.Map<?,?> options) |
protected void |
saveOuterContent(org.eclipse.emf.ecore.EObject top)
Writes out the contents of the special feature ExtendedResourceConstants.OUTER_CONTENT_ATTRIBUTE_NAME of the
passed in object.
|
void |
traverse(java.util.List<? extends org.eclipse.emf.ecore.EObject> contents) |
protected java.lang.Object |
writeTopObject(org.eclipse.emf.ecore.EObject top) |
addDoctypeInformation, convertURI, endSave, endSaveFeatures, getContent, getDataTypeElementSingleSimple, getDatatypeValue, getElementIDRefManySimple, getElementIDRefSingleSimple, getElementReferenceManySimple, getElementReferenceSingleSimple, getSchemaLocationRoot, init, isDuplicateURI, isEmpty, isNil, processAttributeExtensions, processElementExtensions, sameDocMany, sameDocSingle, save, saveAttributeFeatureMap, saveContainedMany, saveContainedSingle, saveDataTypeAttributeMany, saveDataTypeElementSingle, saveDataTypeMany, saveDataTypeSingle, saveElement, saveElement, saveElement, saveElementFeatureMap, saveElementID, saveElementIDRef, saveElementIDRef, saveElementIDRefMany, saveElementIDRefSingle, saveElementReference, saveElementReferenceMany, saveElementReferenceSingle, saveEObjectMany, saveEObjectSingle, saveFeatureMapElementReference, saveFeatures, saveFeatures, saveHref, saveHRefMany, saveHRefSingle, saveIDRefMany, saveIDRefSingle, saveManyEmpty, saveManyEmpty, saveNil, saveNil, saveTypeAttribute, saveTypeAttribute, shouldSaveFeature, toChar, write, write, writeAscii, writeTopAttributes, writeTopElements, writeTopObjects
protected java.util.Map<?,?> options
protected IModelConverter converter
public ExtendedXMLSaveImpl(org.eclipse.emf.ecore.xmi.XMLHelper helper)
public ExtendedXMLSaveImpl(java.util.Map<?,?> options, org.eclipse.emf.ecore.xmi.XMLHelper helper, java.lang.String encoding)
public ExtendedXMLSaveImpl(java.util.Map<?,?> options, org.eclipse.emf.ecore.xmi.XMLHelper helper, java.lang.String encoding, java.lang.String xmlVersion)
public void save(org.eclipse.emf.ecore.xmi.XMLResource resource, java.io.Writer writer, java.util.Map<?,?> options) throws java.io.IOException
save
in interface org.eclipse.emf.ecore.xmi.XMLSave
save
in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
java.io.IOException
public void save(org.eclipse.emf.ecore.xmi.XMLResource resource, java.io.OutputStream outputStream, java.util.Map<?,?> options) throws java.io.IOException
save
in interface org.eclipse.emf.ecore.xmi.XMLSave
save
in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
java.io.IOException
public void traverse(java.util.List<? extends org.eclipse.emf.ecore.EObject> contents)
traverse
in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
protected void addNamespaceDeclarations()
addNamespaceDeclarations
in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
protected java.lang.StringBuffer getBuffer()
protected java.lang.Object writeTopObject(org.eclipse.emf.ecore.EObject top)
writeTopObject
in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
protected void saveOuterContent(org.eclipse.emf.ecore.EObject top)
top
- The root object
whose mixed outer content (text, comments, CDATA and processing
instructions) is to be saved.