Class XmiSaveImpl
- java.lang.Object
-
- org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
-
- com._1c.g5.modeling.xml.serializer.XmlSaveImpl
-
- com._1c.g5.modeling.xml.serializer.XmiSaveImpl
-
- All Implemented Interfaces:
IXmlSerializer
,org.eclipse.emf.ecore.xmi.XMLSave
public class XmiSaveImpl extends XmlSaveImpl
Расширенная реализация xmi сериалайзера. Поддерживает сохранение символических ссылок и абстрактных типов соглассно аннотациям mapping модели. Специфичная для xmi часть взята изXMISaveImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
XMI_ID_NS
protected static String
XMI_TAG_NS
protected static String
XMI_TYPE_NS
protected static String
XMI_VER_NS
protected static String
XMI_XMLNS
protected boolean
xmiType
protected String
xmiURI
-
Fields inherited from class com._1c.g5.modeling.xml.serializer.XmlSaveImpl
crossReferenceSerializer
-
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, 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 Summary
Constructors Constructor Description XmiSaveImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNamespaceDeclarations()
protected void
init(org.eclipse.emf.ecore.xmi.XMLResource resource, Map<?,?> options)
boolean
isDuplicateURI(String nsURI)
protected void
saveFeatureMapElementReference(org.eclipse.emf.ecore.EObject o, org.eclipse.emf.ecore.EReference f)
protected void
saveTypeAttribute(org.eclipse.emf.ecore.EClass eClass)
Object
writeTopObjects(List<? extends org.eclipse.emf.ecore.EObject> contents)
-
Methods inherited from class com._1c.g5.modeling.xml.serializer.XmlSaveImpl
findNameInAnnotations, getCrossReferenceSerializer, init, save, saveElement, saveElementReference, saveElementReferenceMany, saveElementReferenceSingle, saveEObjectMany, saveEObjectSingle, saveHref, saveHRefMany, saveHRefSingle, saveIDRefMany, saveIDRefSingle, setCrossReferenceSerializer, setFormater, setXMLHelper
-
Methods inherited from class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
addDoctypeInformation, convertURI, endSave, endSaveFeatures, getContent, getDataTypeElementSingleSimple, getDatatypeValue, getElementIDRefManySimple, getElementIDRefSingleSimple, getElementReferenceManySimple, getElementReferenceSingleSimple, getSchemaLocationRoot, isEmpty, isNil, processAttributeExtensions, processElementExtensions, sameDocMany, sameDocSingle, save, save, save, saveAttributeFeatureMap, saveContainedMany, saveContainedSingle, saveDataTypeAttributeMany, saveDataTypeElementSingle, saveDataTypeMany, saveDataTypeSingle, saveElement, saveElement, saveElementFeatureMap, saveElementID, saveElementIDRef, saveElementIDRef, saveElementIDRefMany, saveElementIDRefSingle, saveElementReference, saveFeatures, saveFeatures, saveHref, saveManyEmpty, saveManyEmpty, saveNil, saveNil, saveTypeAttribute, shouldSaveFeature, toChar, traverse, write, write, writeAscii, writeTopAttributes, writeTopElements, writeTopObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.modeling.xml.serializer.IXmlSerializer
save
-
-
-
-
Field Detail
-
xmiType
protected boolean xmiType
-
xmiURI
protected String xmiURI
-
XMI_ID_NS
protected static final String XMI_ID_NS
- See Also:
- Constant Field Values
-
XMI_TAG_NS
protected static final String XMI_TAG_NS
- See Also:
- Constant Field Values
-
XMI_TYPE_NS
protected static final String XMI_TYPE_NS
- See Also:
- Constant Field Values
-
XMI_VER_NS
protected static final String XMI_VER_NS
- See Also:
- Constant Field Values
-
XMI_XMLNS
protected static final String XMI_XMLNS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
protected void init(org.eclipse.emf.ecore.xmi.XMLResource resource, Map<?,?> options)
- Overrides:
init
in classXmlSaveImpl
-
writeTopObjects
public Object writeTopObjects(List<? extends org.eclipse.emf.ecore.EObject> contents)
- Overrides:
writeTopObjects
in classorg.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
-
saveTypeAttribute
protected void saveTypeAttribute(org.eclipse.emf.ecore.EClass eClass)
- Overrides:
saveTypeAttribute
in classorg.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
-
addNamespaceDeclarations
public void addNamespaceDeclarations()
- Overrides:
addNamespaceDeclarations
in classorg.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
-
isDuplicateURI
public boolean isDuplicateURI(String nsURI)
- Overrides:
isDuplicateURI
in classorg.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
-
saveFeatureMapElementReference
protected void saveFeatureMapElementReference(org.eclipse.emf.ecore.EObject o, org.eclipse.emf.ecore.EReference f)
- Overrides:
saveFeatureMapElementReference
in classorg.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
-
-