Class ModelUtil


  • public class ModelUtil
    extends Object
    Utilities needed for domain EMF model
    • Constructor Detail

      • ModelUtil

        public ModelUtil()
    • Method Detail

      • getColorRepresentation

        public static String getColorRepresentation​(Color color)
        Returns Color representation.
        Parameters:
        color - the color, cannot be null
        Returns:
        the color representation
      • getColorRepresentationOrDefault

        public static String getColorRepresentationOrDefault​(Color color)
        Returns Color representation.
        Parameters:
        color - the color, can be null
        Returns:
        the color representation, never null
      • getDateRepresentation

        public static String getDateRepresentation​(Date date)
        Returns Date string representation.
        Parameters:
        date - the date, can be null
        Returns:
        a presentation string, never null
      • getValueRepresentation

        public static String getValueRepresentation​(Value value)
        Returns Value string representation.
        Parameters:
        value - the value, can be null
        Returns:
        a presentation string, never null
      • getBorderRepresentationOrDefault

        public static String getBorderRepresentationOrDefault​(Border border)
        Returns Border representation.
        Parameters:
        border - the border, can be null
        Returns:
        the border representation, never null
      • getQNameRepresentation

        public static String getQNameRepresentation​(QName qname)
        Returns representation of QName: "localName (nsUri)".
        Parameters:
        qname - the QName to get representation for, can be null
        Returns:
        the string representation of QName, never null