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 String
ReturnsBorder
representation.static String
getColorRepresentation
(Color color) ReturnsColor
representation.static String
getColorRepresentation
(Color color, String languageCode) ReturnsColor
representation.static String
ReturnsColor
representation.static String
getDateRepresentation
(Date date) ReturnsDate
string representation.static Collection<MdObject>
getDbObjects
(Configuration configuration) Returns allBasicDbObject
s from the givenConfiguration
.static String
getQNameRepresentation
(QName qname) Returns representation ofQName
: "localName (nsUri)".static String
getValueRepresentation
(Value value) ReturnsValue
string representation.
-
Constructor Details
-
ModelUtil
public ModelUtil()
-
-
Method Details
-
getDbObjects
Returns allBasicDbObject
s from the givenConfiguration
. TODO: rewrite on indexes- Parameters:
configuration
- is theConfiguration
- Returns:
BasicDbObject
s
-
getColorRepresentation
ReturnsColor
representation.- Parameters:
color
- the color, cannot benull
- Returns:
- the color representation
-
getColorRepresentation
ReturnsColor
representation.- Parameters:
color
- the color, cannot benull
languageCode
- the language code, can benull
- Returns:
- the color representation
-
getColorRepresentationOrDefault
ReturnsColor
representation.- Parameters:
color
- the color, can benull
- Returns:
- the color representation, never
null
-
getDateRepresentation
ReturnsDate
string representation.- Parameters:
date
- the date, can benull
- Returns:
- a presentation string, never
null
-
getValueRepresentation
ReturnsValue
string representation.- Parameters:
value
- the value, can benull
- Returns:
- a presentation string, never
null
-
getBorderRepresentationOrDefault
ReturnsBorder
representation.- Parameters:
border
- the border, can benull
- Returns:
- the border representation, never
null
-
getQNameRepresentation
Returns representation ofQName
: "localName (nsUri)".
-