Class XmiSaveImpl

  • All Implemented Interfaces:
    IXmlSerializer, org.eclipse.emf.ecore.xmi.XMLSave

    public class XmiSaveImpl
    extends XmlSaveImpl
    Расширенная реализация xmi сериалайзера. Поддерживает сохранение символических ссылок и абстрактных типов соглассно аннотациям mapping модели. Специфичная для xmi часть взята из XMISaveImpl
    • Nested Class Summary

      • Nested classes/interfaces 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/interfaces inherited from interface org.eclipse.emf.ecore.xmi.XMLSave

        org.eclipse.emf.ecore.xmi.XMLSave.XMLTypeInfo
    • 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 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()  
    • Constructor Detail

      • XmiSaveImpl

        public XmiSaveImpl()
    • Method Detail

      • init

        protected void init​(org.eclipse.emf.ecore.xmi.XMLResource resource,
                            Map<?,​?> options)
        Overrides:
        init in class XmlSaveImpl
      • writeTopObjects

        public Object writeTopObjects​(List<? extends org.eclipse.emf.ecore.EObject> contents)
        Overrides:
        writeTopObjects in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
      • saveTypeAttribute

        protected void saveTypeAttribute​(org.eclipse.emf.ecore.EClass eClass)
        Overrides:
        saveTypeAttribute in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
      • addNamespaceDeclarations

        public void addNamespaceDeclarations()
        Overrides:
        addNamespaceDeclarations in class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl
      • isDuplicateURI

        public boolean isDuplicateURI​(String nsURI)
        Overrides:
        isDuplicateURI in class org.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 class org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl