Class QlDcsUtil
java.lang.Object
com._1c.g5.v8.dt.ql.dcs.model.util.QlDcsUtil
Common methods for QlDcs model
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<CaseInsensitiveString,String> static final Map<CaseInsensitiveString,String> static final Map<CaseInsensitiveString,String> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.eclipse.emf.common.util.EList<T>getExtensionItems(DcsQuerySchemaSelectQuery query, Class<T> clazz) Gets allDcsExtensionPartcontaining items.static TypeDescriptiongetTypeDescriptionForCharacteristic(org.eclipse.emf.ecore.EObject object) Computes type forCharacteristicCompositionDataQuerySchemastatic TypeItemgetTypeForCharacteristic(AbstractQuerySchemaTable typeName, org.eclipse.xtext.scoping.IScope scope) Finds type by the name for ql dcs grammar
-
Field Details
-
CHARACTERISTIC_TYPE_SETS_RU
-
CHARACTERISTIC_TYPE_SETS_EN
-
CHARACTERISTIC_TYPE_SETS
-
-
Method Details
-
getTypeDescriptionForCharacteristic
public static TypeDescription getTypeDescriptionForCharacteristic(org.eclipse.emf.ecore.EObject object) Computes type forCharacteristicCompositionDataQuerySchema- Parameters:
object- must be instanceofCharacteristicCompositionDataQuerySchema, can't benull- Returns:
TypeDescriptionwith computed types or emptyTypeDescriptionif 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
contentornullif type wasn't found
-
getExtensionItems
public static <T> org.eclipse.emf.common.util.EList<T> getExtensionItems(DcsQuerySchemaSelectQuery query, Class<T> clazz) Gets allDcsExtensionPartcontaining items. SeeCharacteristicCompositionDataQuerySchema,FilterCompositionDataQuerySchema, SelectFieldsCompositionDataQuerySchema- Parameters:
query- query for searchingDcsExtensionPartcontaining items, cannot benullclazz- special parameter for determinate what items needed. The valueCharacteristicCompositionDataQuerySchema#getClass()corresponding to theCharacteristicCompositionDataQuerySchemaand so on- Returns:
- collection of the
DcsExtensionPartcontaining items, nevernull
-