org.eclipse.emf.ecore.xmi.impl
Class XMLSaveImpl
java.lang.Object
|
+--org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
- All Implemented Interfaces:
- XMLSave
- Direct Known Subclasses:
- XMISaveImpl
- public class XMLSaveImpl
- extends java.lang.Object
- implements XMLSave
This implements the XML serializer, possibly using an XMLMap
if one is provided as a save option.
Method Summary |
protected void |
addNamespaceDeclarations()
|
protected void |
endSaveFeatures(EObject o,
int elementType,
java.lang.String content)
|
protected java.lang.String |
getContent(EObject o,
EStructuralFeature[] features)
|
protected void |
init(XMLResource resource,
java.util.Map options)
|
protected boolean |
isEmpty(EObject o,
EStructuralFeature f)
|
protected boolean |
isNil(EObject o,
EStructuralFeature f)
|
protected int |
sameDocMany(EObject o,
EStructuralFeature f)
|
protected int |
sameDocSingle(EObject o,
EStructuralFeature f)
|
void |
save(XMLResource resource,
java.io.OutputStream outputStream,
java.util.Map options)
|
protected void |
saveContainedMany(EObject o,
EStructuralFeature f)
|
protected void |
saveContainedSingle(EObject o,
EStructuralFeature f)
|
protected void |
saveDataTypeElementSingle(EObject o,
EStructuralFeature f)
|
protected void |
saveDataTypeMany(EObject o,
EStructuralFeature f)
|
protected void |
saveDataTypeSingle(EObject o,
EStructuralFeature f)
|
protected void |
saveElement(EObject o,
EStructuralFeature f)
|
protected void |
saveElementID(EObject o)
|
protected void |
saveElementReference(EObject remote,
EStructuralFeature f)
|
protected void |
saveElementReferenceMany(EObject o,
EStructuralFeature f)
|
protected void |
saveElementReferenceSingle(EObject o,
EStructuralFeature f)
|
protected void |
saveEObjectMany(EObject o,
EStructuralFeature f)
|
protected void |
saveEObjectSingle(EObject o,
EStructuralFeature f)
|
protected boolean |
saveFeatures(EObject o)
|
protected void |
saveHref(EObject remote,
EStructuralFeature f)
|
protected void |
saveHRefMany(EObject o,
EStructuralFeature f)
|
protected void |
saveHRefSingle(EObject o,
EStructuralFeature f)
|
protected void |
saveIDRefMany(EObject o,
EStructuralFeature f)
|
protected void |
saveIDRefSingle(EObject o,
EStructuralFeature f)
|
protected void |
saveManyEmpty(EStructuralFeature f)
|
protected void |
saveNil(EStructuralFeature f)
|
protected void |
saveTypeAttribute(EClass eClass)
|
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(EObject top)
|
protected java.lang.Object |
writeTopObjects(java.util.List contents)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
helper
protected XMLHelper helper
doc
protected XMLString doc
declareXSI
protected boolean declareXSI
useEncodedAttributeStyle
protected boolean useEncodedAttributeStyle
declareXML
protected boolean declareXML
escape
protected XMLSaveImpl.Escape escape
featureTable
protected XMLSaveImpl.Lookup featureTable
encoding
protected java.lang.String encoding
idAttributeName
protected java.lang.String idAttributeName
processDanglingHREF
protected java.lang.String processDanglingHREF
declareSchemaLocation
protected boolean declareSchemaLocation
SKIP
protected static final int SKIP
SAME_DOC
protected static final int SAME_DOC
CROSS_DOC
protected static final int CROSS_DOC
TRANSIENT
protected static final int TRANSIENT
DATATYPE_SINGLE
protected static final int DATATYPE_SINGLE
DATATYPE_ELEMENT_SINGLE
protected static final int DATATYPE_ELEMENT_SINGLE
DATATYPE_CONTENT_SINGLE
protected static final int DATATYPE_CONTENT_SINGLE
DATATYPE_SINGLE_NILLABLE
protected static final int DATATYPE_SINGLE_NILLABLE
DATATYPE_MANY
protected static final int DATATYPE_MANY
OBJECT_CONTAIN_SINGLE
protected static final int OBJECT_CONTAIN_SINGLE
OBJECT_CONTAIN_MANY
protected static final int OBJECT_CONTAIN_MANY
OBJECT_HREF_SINGLE
protected static final int OBJECT_HREF_SINGLE
OBJECT_HREF_MANY
protected static final int OBJECT_HREF_MANY
OBJECT_CONTAIN_SINGLE_UNSETTABLE
protected static final int OBJECT_CONTAIN_SINGLE_UNSETTABLE
OBJECT_CONTAIN_MANY_UNSETTABLE
protected static final int OBJECT_CONTAIN_MANY_UNSETTABLE
OBJECT_HREF_SINGLE_UNSETTABLE
protected static final int OBJECT_HREF_SINGLE_UNSETTABLE
OBJECT_HREF_MANY_UNSETTABLE
protected static final int OBJECT_HREF_MANY_UNSETTABLE
OBJECT_ELEMENT_SINGLE
protected static final int OBJECT_ELEMENT_SINGLE
OBJECT_ELEMENT_MANY
protected static final int OBJECT_ELEMENT_MANY
XML_VERSION
protected static final java.lang.String XML_VERSION
XSI_NIL
protected static final java.lang.String XSI_NIL
XSI_TYPE_NS
protected static final java.lang.String XSI_TYPE_NS
XSI_XMLNS
protected static final java.lang.String XSI_XMLNS
XSI_SCHEMA_LOCATION
protected static final java.lang.String XSI_SCHEMA_LOCATION
XSI_NO_NAMESPACE_SCHEMA_LOCATION
protected static final java.lang.String XSI_NO_NAMESPACE_SCHEMA_LOCATION
EMPTY_ELEMENT
protected static final int EMPTY_ELEMENT
CONTENT_ELEMENT
protected static final int CONTENT_ELEMENT
XMLSaveImpl
public XMLSaveImpl(XMLHelper helper)
XMLSaveImpl
public XMLSaveImpl(java.util.Map options,
XMLHelper helper,
java.lang.String encoding)
- Constructor for XMLSave.
- Parameters:
options
- helper
- encoding
-
save
public void save(XMLResource resource,
java.io.OutputStream outputStream,
java.util.Map options)
throws java.io.IOException
- Specified by:
save
in interface XMLSave
init
protected void init(XMLResource resource,
java.util.Map options)
traverse
public void traverse(java.util.List contents)
writeTopObject
protected java.lang.Object writeTopObject(EObject top)
writeTopObjects
protected java.lang.Object writeTopObjects(java.util.List contents)
addNamespaceDeclarations
protected void addNamespaceDeclarations()
write
public void write(java.io.OutputStreamWriter os)
throws java.io.IOException
writeAscii
public void writeAscii(java.io.OutputStream os)
throws java.io.IOException
toChar
public char[] toChar()
saveElement
protected void saveElement(EObject o,
EStructuralFeature f)
saveTypeAttribute
protected void saveTypeAttribute(EClass eClass)
saveFeatures
protected boolean saveFeatures(EObject o)
endSaveFeatures
protected void endSaveFeatures(EObject o,
int elementType,
java.lang.String content)
saveDataTypeSingle
protected void saveDataTypeSingle(EObject o,
EStructuralFeature f)
isNil
protected boolean isNil(EObject o,
EStructuralFeature f)
isEmpty
protected boolean isEmpty(EObject o,
EStructuralFeature f)
saveNil
protected void saveNil(EStructuralFeature f)
saveManyEmpty
protected void saveManyEmpty(EStructuralFeature f)
saveDataTypeMany
protected void saveDataTypeMany(EObject o,
EStructuralFeature f)
saveEObjectSingle
protected void saveEObjectSingle(EObject o,
EStructuralFeature f)
saveEObjectMany
protected void saveEObjectMany(EObject o,
EStructuralFeature f)
saveIDRefSingle
protected void saveIDRefSingle(EObject o,
EStructuralFeature f)
saveIDRefMany
protected void saveIDRefMany(EObject o,
EStructuralFeature f)
saveElementReference
protected void saveElementReference(EObject remote,
EStructuralFeature f)
saveElementReferenceSingle
protected void saveElementReferenceSingle(EObject o,
EStructuralFeature f)
saveElementReferenceMany
protected void saveElementReferenceMany(EObject o,
EStructuralFeature f)
saveHref
protected void saveHref(EObject remote,
EStructuralFeature f)
saveHRefSingle
protected void saveHRefSingle(EObject o,
EStructuralFeature f)
saveHRefMany
protected void saveHRefMany(EObject o,
EStructuralFeature f)
saveContainedSingle
protected void saveContainedSingle(EObject o,
EStructuralFeature f)
saveContainedMany
protected void saveContainedMany(EObject o,
EStructuralFeature f)
sameDocSingle
protected int sameDocSingle(EObject o,
EStructuralFeature f)
sameDocMany
protected int sameDocMany(EObject o,
EStructuralFeature f)
getContent
protected java.lang.String getContent(EObject o,
EStructuralFeature[] features)
saveDataTypeElementSingle
protected void saveDataTypeElementSingle(EObject o,
EStructuralFeature f)
saveElementID
protected void saveElementID(EObject o)