Class FormFeatureAttributeWriter

    • Constructor Detail

      • FormFeatureAttributeWriter

        public FormFeatureAttributeWriter()
    • Method Detail

      • getWritableValue

        protected Object getWritableValue​(org.eclipse.emf.ecore.EObject eObject,
                                          org.eclipse.emf.ecore.EAttribute attribute,
                                          Version version)
        Get value of given context object and attribute to write in xml
        Parameters:
        eObject - context object, cannot be null
        attribute - the EAttribute, cannot be null
        version - the exporting project Version, cannot be null
        Returns:
        the value object, can be null
      • isWritable

        protected boolean isWritable​(org.eclipse.emf.ecore.EObject eObject,
                                     org.eclipse.emf.ecore.EAttribute attribute,
                                     boolean writeEmpty,
                                     Version version)
        Tests whether a feature is need to be write
        Parameters:
        eObject - context object, cannot be null
        attribute - the EAttribute, cannot be null
        writeEmpty - environment property to writing empty element
        version - the exporting project Version, cannot be null
        Returns:
        true if the feature is must be write or false in otherwise