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 String
getBorderRepresentationOrDefault(Border border)
ReturnsBorder
representation.static String
getColorRepresentation(Color color)
ReturnsColor
representation.static String
getColorRepresentationOrDefault(Color color)
ReturnsColor
representation.static String
getDateRepresentation(Date date)
ReturnsDate
string representation.static Collection<BasicDbObject>
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.
-
-
-
Method Detail
-
getDbObjects
public static Collection<BasicDbObject> getDbObjects(Configuration configuration)
Returns allBasicDbObject
s from the givenConfiguration
. TODO: rewrite on indexes- Parameters:
configuration
- is theConfiguration
- Returns:
BasicDbObject
s
-
getColorRepresentation
public static String getColorRepresentation(Color color)
ReturnsColor
representation.- Parameters:
color
- the color, cannot benull
- Returns:
- the color representation
-
getColorRepresentationOrDefault
public static String getColorRepresentationOrDefault(Color color)
ReturnsColor
representation.- Parameters:
color
- the color, can benull
- Returns:
- the color representation, never
null
-
getDateRepresentation
public static String getDateRepresentation(Date date)
ReturnsDate
string representation.- Parameters:
date
- the date, can benull
- Returns:
- a presentation string, never
null
-
getValueRepresentation
public static String getValueRepresentation(Value value)
ReturnsValue
string representation.- Parameters:
value
- the value, can benull
- Returns:
- a presentation string, never
null
-
getBorderRepresentationOrDefault
public static String getBorderRepresentationOrDefault(Border border)
ReturnsBorder
representation.- Parameters:
border
- the border, can benull
- Returns:
- the border representation, never
null
-
-