Package com._1c.g5.v8.dt.ui.util
Class ModelUtil
java.lang.Object
com._1c.g5.v8.dt.ui.util.ModelUtil
Utilities needed for domain EMF model
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturnsBorderrepresentation.static StringgetColorRepresentation(Color color) ReturnsColorrepresentation.static StringgetColorRepresentation(Color color, String languageCode) ReturnsColorrepresentation.static StringReturnsColorrepresentation.static StringgetDateRepresentation(Date date) ReturnsDatestring representation.static Collection<MdObject>getDbObjects(Configuration configuration) Returns allBasicDbObjects from the givenConfiguration.static StringgetQNameRepresentation(QName qname) Returns representation ofQName: "localName (nsUri)".static StringgetValueRepresentation(Value value) ReturnsValuestring representation.
-
Constructor Details
-
ModelUtil
public ModelUtil()
-
-
Method Details
-
getDbObjects
Returns allBasicDbObjects from the givenConfiguration. TODO: rewrite on indexes- Parameters:
configuration- is theConfiguration- Returns:
BasicDbObjects
-
getColorRepresentation
ReturnsColorrepresentation.- Parameters:
color- the color, cannot benull- Returns:
- the color representation
-
getColorRepresentation
ReturnsColorrepresentation.- Parameters:
color- the color, cannot benulllanguageCode- the language code, can benull- Returns:
- the color representation
-
getColorRepresentationOrDefault
ReturnsColorrepresentation.- Parameters:
color- the color, can benull- Returns:
- the color representation, never
null
-
getDateRepresentation
ReturnsDatestring representation.- Parameters:
date- the date, can benull- Returns:
- a presentation string, never
null
-
getValueRepresentation
ReturnsValuestring representation.- Parameters:
value- the value, can benull- Returns:
- a presentation string, never
null
-
getBorderRepresentationOrDefault
ReturnsBorderrepresentation.- Parameters:
border- the border, can benull- Returns:
- the border representation, never
null
-
getQNameRepresentation
Returns representation ofQName: "localName (nsUri)".
-