Class ColorWriter

    • Constructor Detail

      • ColorWriter

        public ColorWriter()
    • Method Detail

      • writeColor

        public void writeColor​(ExportXmlStreamWriter writer,
                               org.eclipse.emf.ecore.EStructuralFeature feature,
                               Color color,
                               boolean writeEmpty,
                               QName elementQName)
                        throws XMLStreamException,
                               ExportException
        Writes color.
        Parameters:
        writer - the writer
        feature - the feature
        color - the color, cannot be null
        writeEmpty -
        elementQName - the element qualified name, cannot be null
        Throws:
        XMLStreamException - if unexpected processing errors
        ExportException - if export processing errors
      • getColorRepresentation

        public String getColorRepresentation​(Color color)
        Color value XML representation
        Parameters:
        color - the source Color, cannot be null
        Returns:
        string color representation, or null of given color is invalid