Package com._1c.g5.v8.dt.md
Enum Class FieldsSourceUtil
- All Implemented Interfaces:
Serializable,Comparable<FieldsSourceUtil>,Constable
Field source util for fields.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetAllFieldsOf(org.eclipse.emf.ecore.EObject eObject) For aConstanteObjectreturns all the self-fields of all the constants in the configuration, i.e. fields provided byFieldSource.getCharacteristicsTypesFields(Field field, List<Field> characteristicFields) Returns fields from characteristic fields those type contains catalog or characteristic types ref type from selected field.getDataPathFields(MdObject characteristicTypes) Gets possible values for data path field ofCharacteristicsDescriptiongetDefaultDataPathField(MdObject characteristicTypes) Gets default value for data pathCharacteristicsDescriptionfieldgetDefaultKeyField(MdObject characteristicTypes) Returns characteristic description key field default value.getDefaultObjectField(MdObject characteristicValues, MdObject mdObject) Returns characteristic description object field default value for selected md-object.getDefaultTypeField(MdObject characteristicValues, Field field) Returns characteristic description type field default value for selected field types.getDynamicDataPathFields(CharacteristicsDescription description) Gets all dynamic fields allowed in data path field ofCharacteristicsDescriptiongetKeyFields(MdObject characteristicTypes) Returns characteristic description key field availaible values.getObjectFields(MdObject characteristicValues, MdObject mdObject) Returns characteristic description object field availaible values for selected md-object.getTypeFields(MdObject characteristicValues, Field field) Returns characteristic description type field availaible values for selected field types.getTypeFields(org.eclipse.emf.ecore.EObject eObject) Gets field source type fields.getTypesFilterFields(MdObject characteristicTypes) Returns characteristic description types filter field availaible values.getUseMultipleValuesFields(MdObject characteristicTypes) Returns characteristic description use multiple values field availaible values.getValueFields(MdObject characteristicValues) Returns characteristic description value field availaible values.booleanhasFieldForCharacteristicsTypes(Field field, List<Field> characteristicFields) Checks is characteristic fields has field those type contains catalog or characteristic types ref type from selected field.booleanChecks, if field source types containsSourceType.CHARACTERISTIC_KINDand field type containsCatalog,ChartOfCharacteristicTypes,Tablereference type.booleanisFieldContainsMdObjectRefType(MdObject mdObject, Field field) Checks, if field availables for md-object.booleanisFieldContainsTypeNameType(String typeName, Field field) Checks, if field availables for md-object.static FieldsSourceUtilReturns the enum constant of this class with the specified name.static FieldsSourceUtil[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFields
public Collection<Field> getFields(Object inputElement, com.google.common.base.Predicate<Field> predicate) ForinputElementthat is aFieldSourcereturns its fields filtered bypredicate. For others returns an empty collection.- Parameters:
inputElement- the field sourcepredicate- a filter
-
getAllFieldsOf
For aConstanteObjectreturns all the self-fields of all the constants in the configuration, i.e. fields provided byFieldSource.For
BasicFeatures orStandardAttributes returns self-fields ofeObjects container. If containerBasicTabularSectionorStandardTabularSectionDescriptionalso adds all self-fields of grandparent container.For
CommonAttributes returns an empty collection.For all the others returns self-fields of the given
eObject.- Parameters:
eObject- the field sources- Returns:
- self fields
-
getTypeFields
Gets field source type fields.- Parameters:
context- the field source- Returns:
- type fields
-
getDefaultTypeField
Returns characteristic description type field default value for selected field types.- Parameters:
characteristicValues- the characteristic description characteristic values, can benullfield- the field, can benull- Returns:
- the field availaible values, cannot be
null
-
getDefaultKeyField
Returns characteristic description key field default value.- Parameters:
characteristicTypes- the characteristic description characteristic types, can benull- Returns:
- the field default value or
null
-
getDefaultDataPathField
Gets default value for data pathCharacteristicsDescriptionfield- Parameters:
characteristicTypes-CharacteristicsDescription.getCharacteristicTypes()value, cannot benull- Returns:
- default value for data path
CharacteristicsDescriptionfield, can benullif fields was not found
-
getDefaultObjectField
Returns characteristic description object field default value for selected md-object.- Parameters:
characteristicValues- the characteristic description characteristic values, can benullmdObject- the md-object, cannot benull- Returns:
- the field default value or
null
-
getValueFields
Returns characteristic description value field availaible values.- Parameters:
characteristicValues- the characteristic description characteristic values, can benull- Returns:
- the field availaible values, cannot be
null
-
getTypeFields
Returns characteristic description type field availaible values for selected field types.- Parameters:
characteristicValues- the characteristic description characteristic values, can benullfield- the field, can benull- Returns:
- the field availaible values, cannot be
null
-
getCharacteristicsTypesFields
Returns fields from characteristic fields those type contains catalog or characteristic types ref type from selected field.- Parameters:
field- the selected field, cannot benullcharacteristicFields- , the characteristic fields collection, cannot benull- Returns:
trueif has
-
getObjectFields
Returns characteristic description object field availaible values for selected md-object.- Parameters:
characteristicValues- the characteristic description characteristic values, can benullmdObject- the md-object, cannot benull- Returns:
- the field availaible values, cannot be
null
-
getTypesFilterFields
Returns characteristic description types filter field availaible values.- Parameters:
characteristicTypes- the characteristic description characteristic types, can benull- Returns:
- the field availaible values, cannot be
null
-
getKeyFields
Returns characteristic description key field availaible values.- Parameters:
characteristicTypes- the characteristic description characteristic types, can benull- Returns:
- the field availaible values, cannot be
null
-
getDataPathFields
Gets possible values for data path field ofCharacteristicsDescription- Parameters:
characteristicTypes-CharacteristicsDescription.getCharacteristicTypes()value, cannot benull- Returns:
- collection pair of string - the first value of pair is possible value for data path field, the second value of pair
is data path value localized to Russian language, never
null
-
getDynamicDataPathFields
Gets all dynamic fields allowed in data path field ofCharacteristicsDescription- Parameters:
description-CharacteristicsDescriptionfor getting dynamic data path field, cannot benull- Returns:
- all dynamic fields allowed in data path field of
CharacteristicsDescription, nevernull
-
hasFieldForCharacteristicsTypes
Checks is characteristic fields has field those type contains catalog or characteristic types ref type from selected field.- Parameters:
field- the selected field, cannot benullcharacteristicFields- , the characteristic fields collection, cannot benull- Returns:
trueif has
-
isCharacteristicKindRefefenceField
Checks, if field source types containsSourceType.CHARACTERISTIC_KINDand field type containsCatalog,ChartOfCharacteristicTypes,Tablereference type.- Parameters:
field- the field, cannot benull- Returns:
trueif is
-
isFieldContainsTypeNameType
Checks, if field availables for md-object.- Parameters:
typeName- the type name, cannot benullfield- the field, cannot benull- Returns:
trueif contains
-
isFieldContainsMdObjectRefType
Checks, if field availables for md-object.- Parameters:
mdObject- the md-object, cannot benullfield- the field, cannot benull- Returns:
trueis available
-
getUseMultipleValuesFields
Returns characteristic description use multiple values field availaible values.- Parameters:
characteristicTypes- the characteristic description characteristic types, may benull- Returns:
- the availaible values, never be
null
-