Class BaseQNameProvider

    • Field Detail

      • specifiedFeatureNames

        protected final com.google.common.collect.ImmutableMap<org.eclipse.emf.ecore.EStructuralFeature,​QName> specifiedFeatureNames
      • specifiedClassNames

        protected final com.google.common.collect.ImmutableMap<org.eclipse.emf.ecore.EClass,​QName> specifiedClassNames
      • specifiedPackageNS

        protected final com.google.common.collect.ImmutableMap<org.eclipse.emf.ecore.EPackage,​String> specifiedPackageNS
    • Constructor Detail

      • BaseQNameProvider

        public BaseQNameProvider()
        Constructor
    • Method Detail

      • getClassQName

        public QName getClassQName​(org.eclipse.emf.ecore.EClass eClass)
        Description copied from interface: IQNameProvider
        Get QName for eClass
        Specified by:
        getClassQName in interface IQNameProvider
        Parameters:
        eClass - the EClass not null
        Returns:
        QName for write this eClass in xml
      • getElementQName

        public QName getElementQName​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Description copied from interface: IQNameProvider
        Get QName for feature
        Specified by:
        getElementQName in interface IQNameProvider
        Parameters:
        feature - the EStructuralFeature not null
        Returns:
        QName for write this feature in xml
      • fillSpecifiedClassNames

        protected void fillSpecifiedClassNames​(com.google.common.collect.ImmutableMap.Builder<org.eclipse.emf.ecore.EClass,​QName> builder)
        Determine map of EClass-s to specified names, used in XML writers
        Parameters:
        builder - map builder, cannot be null
      • fillSpecifiedFeatureNames

        protected void fillSpecifiedFeatureNames​(com.google.common.collect.ImmutableMap.Builder<org.eclipse.emf.ecore.EStructuralFeature,​QName> builder)
        Determine map of EStructuralFeature-s to specified names, used in XML writers
        Parameters:
        builder - map builder, cannot be null
      • fillSpecifiedPackageNsUri

        protected void fillSpecifiedPackageNsUri​(com.google.common.collect.ImmutableMap.Builder<org.eclipse.emf.ecore.EPackage,​String> builder)
        Determine map of EPackage-s to specified namespace uri for every contains element, used in XML writers
        Parameters:
        builder - map builder, cannot be null
      • needToCapitalizeFirstLetterOfFeatureName

        protected boolean needToCapitalizeFirstLetterOfFeatureName()
        Specifies that all feature names will be writen with first letter in uppercase as default
        Returns:
        true for write first letter of all feature names in uppercase as default, false to otherwise