Class ValueWriter

    • Constructor Detail

      • ValueWriter

        public ValueWriter()
    • Method Detail

      • writeValue

        public void writeValue​(ExportXmlStreamWriter writer,
                               Object valueObject,
                               QName elementName,
                               boolean writeEmpty,
                               org.eclipse.emf.ecore.EStructuralFeature feature,
                               Version version)
                        throws XMLStreamException,
                               ExportException
        Write value.
        Parameters:
        writer - the xml ExportXmlStreamWriter, cannot be null
        valueObject - the value object, can be null
        elementName - the element name, cannot be null
        writeEmpty - write empty element if true or nothing if false
        feature - the EStructuralFeature, cannot be null
        version - the exporting project Version, cannot be null
        Throws:
        XMLStreamException - if unexpected processing errors
        ExportException - if export processing errors
      • getTypeName

        protected QName getTypeName​(ReferenceValue refValueObject)
        Returns reference type name
        Parameters:
        refValueObject - reference value, cannot be null
        Returns:
        type name, never null