Class QlDcsUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.ql.dcs.model.util.QlDcsUtil
-
public class QlDcsUtil extends Object
Common methods for QlDcs model
-
-
Field Summary
Fields Modifier and Type Field Description static Map<CaseInsensitiveString,String>
CHARACTERISTIC_TYPE_SETS
static Map<CaseInsensitiveString,String>
CHARACTERISTIC_TYPE_SETS_EN
static Map<CaseInsensitiveString,String>
CHARACTERISTIC_TYPE_SETS_RU
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> org.eclipse.emf.common.util.EList<T>
getExtensionItems(DcsQuerySchemaSelectQuery query, Class<T> clazz)
Gets allDcsExtensionPart
containing items.static TypeDescription
getTypeDescriptionForCharacteristic(org.eclipse.emf.ecore.EObject object)
Computes type forCharacteristicCompositionDataQuerySchema
static TypeItem
getTypeForCharacteristic(AbstractQuerySchemaTable typeName, org.eclipse.xtext.scoping.IScope scope)
Finds type by the name for ql dcs grammar
-
-
-
Field Detail
-
CHARACTERISTIC_TYPE_SETS_RU
public static final Map<CaseInsensitiveString,String> CHARACTERISTIC_TYPE_SETS_RU
-
CHARACTERISTIC_TYPE_SETS_EN
public static final Map<CaseInsensitiveString,String> CHARACTERISTIC_TYPE_SETS_EN
-
CHARACTERISTIC_TYPE_SETS
public static final Map<CaseInsensitiveString,String> CHARACTERISTIC_TYPE_SETS
-
-
Method Detail
-
getTypeDescriptionForCharacteristic
public static TypeDescription getTypeDescriptionForCharacteristic(org.eclipse.emf.ecore.EObject object)
Computes type forCharacteristicCompositionDataQuerySchema
- Parameters:
object
- must be instanceofCharacteristicCompositionDataQuerySchema
, can't benull
- Returns:
TypeDescription
with computed types or emptyTypeDescription
if types cannot be computed
-
getTypeForCharacteristic
public static TypeItem getTypeForCharacteristic(AbstractQuerySchemaTable typeName, org.eclipse.xtext.scoping.IScope scope)
Finds type by the name for ql dcs grammar- Parameters:
typeName
- name of the type in ql dcs grammar, can't benull
- Returns:
- found type for the name
content
ornull
if type wasn't found
-
getExtensionItems
public static <T> org.eclipse.emf.common.util.EList<T> getExtensionItems(DcsQuerySchemaSelectQuery query, Class<T> clazz)
Gets allDcsExtensionPart
containing items. SeeCharacteristicCompositionDataQuerySchema
,FilterCompositionDataQuerySchema
, SelectFieldsCompositionDataQuerySchema- Parameters:
query
- query for searchingDcsExtensionPart
containing items, cannot benull
clazz
- special parameter for determinate what items needed. The valueCharacteristicCompositionDataQuerySchema#getClass()
corresponding to theCharacteristicCompositionDataQuerySchema
and so on- Returns:
- collection of the
DcsExtensionPart
containing items, nevernull
-
-