Package com._1c.g5.v8.dt.ui.util
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 Summary
Constructors Constructor Description ModelUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBorderRepresentationOrDefault(Border border)ReturnsBorderrepresentation.static StringgetColorRepresentation(Color color)ReturnsColorrepresentation.static StringgetColorRepresentationOrDefault(Color color)ReturnsColorrepresentation.static StringgetDateRepresentation(Date date)ReturnsDatestring representation.static Collection<BasicDbObject>getDbObjects(Configuration configuration)Returns allBasicDbObjects from the givenConfiguration.static StringgetQNameRepresentation(QName qname)Returns representation ofQName: "localName (nsUri)".static StringgetValueRepresentation(Value value)ReturnsValuestring representation.
-
-
-
Method Detail
-
getDbObjects
public static Collection<BasicDbObject> getDbObjects(Configuration configuration)
Returns allBasicDbObjects from the givenConfiguration. TODO: rewrite on indexes- Parameters:
configuration- is theConfiguration- Returns:
BasicDbObjects
-
getColorRepresentation
public static String getColorRepresentation(Color color)
ReturnsColorrepresentation.- Parameters:
color- the color, cannot benull- Returns:
- the color representation
-
getColorRepresentationOrDefault
public static String getColorRepresentationOrDefault(Color color)
ReturnsColorrepresentation.- Parameters:
color- the color, can benull- Returns:
- the color representation, never
null
-
getDateRepresentation
public static String getDateRepresentation(Date date)
ReturnsDatestring representation.- Parameters:
date- the date, can benull- Returns:
- a presentation string, never
null
-
getValueRepresentation
public static String getValueRepresentation(Value value)
ReturnsValuestring representation.- Parameters:
value- the value, can benull- Returns:
- a presentation string, never
null
-
getBorderRepresentationOrDefault
public static String getBorderRepresentationOrDefault(Border border)
ReturnsBorderrepresentation.- Parameters:
border- the border, can benull- Returns:
- the border representation, never
null
-
-