Class ModelUtil

java.lang.Object
com._1c.g5.v8.dt.ui.util.ModelUtil

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

    • ModelUtil

      public ModelUtil()
  • Method Details

    • getDbObjects

      public static Collection<MdObject> getDbObjects(Configuration configuration)
      Returns all BasicDbObjects from the given Configuration. TODO: rewrite on indexes
      Parameters:
      configuration - is the Configuration
      Returns:
      BasicDbObjects
    • getColorRepresentation

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

      public static String getColorRepresentation(Color color, String languageCode)
      Returns Color representation.
      Parameters:
      color - the color, cannot be null
      languageCode - the language code, can 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