Package com._1c.g5.v8.dt.xdto.resource
Class CurrentConfigurationPackageProvider
java.lang.Object
com._1c.g5.v8.dt.xdto.resource.CurrentConfigurationPackageProvider
- All Implemented Interfaces:
ICurrentConfigurationPackageProvider
public class CurrentConfigurationPackageProvider
extends Object
implements ICurrentConfigurationPackageProvider
Default implementation of
ICurrentConfigurationPackageProvider
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
URI
scheme for resourceCurrentConfigXdtoResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears cachingIScope
.protected Type
CreatesObjectType
corresponding to the AccountingRegisterRecord producing typeprotected Type
CreatesObjectType
corresponding to the AccumulationRegisterRecord producing typeprotected Type
CreatesObjectType
corresponding to the BusinessProcessObject producing typeprotected Type
CreatesObjectType
corresponding to the CalculationRegisterRecord producing typeprotected Type
CreatesObjectType
corresponding to the CatalogObject producing typeprotected Type
CreatesObjectType
corresponding to the ChartOfAccountsObject producing typeprotected Type
CreatesObjectType
corresponding to the ChartOfCalculationTypesObject producing typeprotected Type
createChartOfCharacteristicTypesObjectXdtoObjectType
(Type type, CompatibilityMode compatibilityMode) CreatesObjectType
corresponding to the ChartOfCharacteristicTypesObject producing typeprotected Package
createCurrentConfigPackage
(org.eclipse.core.resources.IProject project) CreatesPackage
corresponding to the platform xdto package with uir "http://v8.1c.ru/8.1/data/enterprise/current-config"protected Type
CreatesObjectType
corresponding to the DocumentObject producing typeprotected Type
CreatesObjectType
corresponding to the ExchangePlanObject producing typeprotected Type
CreatesObjectType
corresponding to the External data source CubeRecord producing typeprotected Type
CreatesObjectType
corresponding to the External data source TableObject and DimensionTableObject producing typeprotected Type
CreatesObjectType
corresponding to the External data source TableRecord producing typeprotected Type
CreatesObjectType
corresponding to the InformationRegisterRecordKey producing typeprotected Type
CreatesObjectType
corresponding to the InformationRegisterRecord producing typeprotected Property
createPropertyByPropertyType
(Property property) protected Type
CreatesObjectType
corresponding to the RecalculationRecord producing typeprotected Type
CreatesObjectType
corresponding to the RecordSet producing typeprotected Type
CreatesObjectType
corresponding to the RegisterRecordKey producing typeprotected Type
CreatesObjectType
corresponding to the SequenceRecord producing typeprotected Type
CreatesObjectType
corresponding to the TaskObject producing typeprotected Type
createXdtoObjectType
(Type type) CreatesObjectType
corresponding to the producing type.protected Type
createXdtoType
(Type type, CompatibilityMode compatibilityMode) void
deleteCurrentConfigPackage
(String projectName) Deletes file with content ofPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"protected boolean
Checks that file with content of thePackage
corresponding to the platform xdto package with uir "http://v8.1c.ru/8.1/data/enterprise/current-config" existprotected void
fillDependencies
(Package xdtoPackage) Creates dependencies of thePackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"static final QName
getCurrentConfigPackage
(org.eclipse.core.resources.IProject project) GetsPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"protected org.eclipse.emf.common.util.URI
getCurrentConfigResourceUri
(org.eclipse.core.resources.IProject project) Gets resourceURI
of thePackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"protected File
getResourceLocation
(String projectName) Gets file corresponding to theCurrentConfigXdtoResource
by contextIProject
org.eclipse.xtext.scoping.IScope
getScope
(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference) Gets actualIScope
of the element fromPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"protected boolean
hasXdtoType
(String typeCategory) Checks that type category produces element of the xdto packageprotected boolean
isXdtoValueType
(String categoryName) void
Loads resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"void
Saves resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"
-
Field Details
-
CURRENT_CONFIG_XDTO_SCHEME
URI
scheme for resourceCurrentConfigXdtoResource
- See Also:
-
-
Constructor Details
-
CurrentConfigurationPackageProvider
public CurrentConfigurationPackageProvider()
-
-
Method Details
-
getBaseRefType
-
clearCachedScope
public void clearCachedScope()Description copied from interface:ICurrentConfigurationPackageProvider
Clears cachingIScope
. This method should be called each time when content of the configuration object was changed- Specified by:
clearCachedScope
in interfaceICurrentConfigurationPackageProvider
-
getScope
public org.eclipse.xtext.scoping.IScope getScope(org.eclipse.emf.ecore.resource.Resource context, org.eclipse.emf.ecore.EReference reference) Description copied from interface:ICurrentConfigurationPackageProvider
Gets actualIScope
of the element fromPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Specified by:
getScope
in interfaceICurrentConfigurationPackageProvider
- Parameters:
context
- context resource for creatingIScope
, can't benull
reference
-EReference
for detect type of the elements inIScope
, can't benull
- Returns:
- actual
IScope
of the element fromPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config", nevernull
-
getCurrentConfigPackage
Description copied from interface:ICurrentConfigurationPackageProvider
GetsPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Specified by:
getCurrentConfigPackage
in interfaceICurrentConfigurationPackageProvider
- Parameters:
project
- contextIProject
for gettingPackage
, can't benull
- Returns:
Package
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"
-
loadCurrentConfigResource
Description copied from interface:ICurrentConfigurationPackageProvider
Loads resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Specified by:
loadCurrentConfigResource
in interfaceICurrentConfigurationPackageProvider
- Parameters:
resource
- loadingCurrentConfigXdtoResource
, can't benull
-
saveCurrentConfigResource
Description copied from interface:ICurrentConfigurationPackageProvider
Saves resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Specified by:
saveCurrentConfigResource
in interfaceICurrentConfigurationPackageProvider
- Parameters:
resource
- savingCurrentConfigXdtoResource
, can't benull
-
deleteCurrentConfigPackage
Description copied from interface:ICurrentConfigurationPackageProvider
Deletes file with content ofPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Specified by:
deleteCurrentConfigPackage
in interfaceICurrentConfigurationPackageProvider
- Parameters:
projectName
- name of the context project for deleting file, can't benull
-
createCurrentConfigPackage
CreatesPackage
corresponding to the platform xdto package with uir "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
project
- context project for generate content of the creating package, can't benull
- Returns:
- created
Package
corresponding to the platform xdto package with uir "http://v8.1c.ru/8.1/data/enterprise/current-config", nevernull
-
existCurrentConfigPackage
Checks that file with content of thePackage
corresponding to the platform xdto package with uir "http://v8.1c.ru/8.1/data/enterprise/current-config" exist- Parameters:
resource
- specialCurrentConfigXdtoResource
ofPackage
, can't benull
- Returns:
true
if file exists,false
otherwise
-
hasXdtoType
Checks that type category produces element of the xdto package- Parameters:
typeCategory
- type category, can't benull
- Returns:
true
if checking type category provides element of the xdto package,false
otherwise
-
getCurrentConfigResourceUri
protected org.eclipse.emf.common.util.URI getCurrentConfigResourceUri(org.eclipse.core.resources.IProject project) Gets resourceURI
of thePackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
project
- context project for generating correctURI
, can't benull
- Returns:
- resource
URI
of thePackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config", nevernull
-
createXdtoType
- Parameters:
type
- producing configurationType
, can't benull
compatibilityMode
- actual compatibility mode of current configuration, cannot benull
- Returns:
- created xdto element (
ValueType
orObjectType
), nevernull
-
getResourceLocation
Gets file corresponding to theCurrentConfigXdtoResource
by contextIProject
- Parameters:
project
- context project for getting file, can't benull
- Returns:
- file corresponding to the
CurrentConfigXdtoResource
, nevernull
-
createCatalogObjectXdtoObjectType
CreatesObjectType
corresponding to the CatalogObject producing type- Parameters:
type
- CatalogObject producing type, can't benull
- Returns:
ObjectType
corresponding to the CatalogObject producing type, nevernull
-
createExternalDataSourceTableObjectXdtoObjectType
CreatesObjectType
corresponding to the External data source TableObject and DimensionTableObject producing type- Parameters:
type
- External data source TableObject and DimensionTableObject producing type, can't benull
- Returns:
ObjectType
corresponding to the External data source TableObject and DimensionTableObject producing type, nevernull
-
createDocumentObjectXdtoObjectType
CreatesObjectType
corresponding to the DocumentObject producing type- Parameters:
type
- DocumentObject producing type, can't benull
- Returns:
ObjectType
corresponding to the DocumentObject producing type, nevernull
-
createChartOfAccountsObjectXdtoObjectType
CreatesObjectType
corresponding to the ChartOfAccountsObject producing type- Parameters:
type
- ChartOfAccountsObject producing type, can't benull
- Returns:
ObjectType
corresponding to the ChartOfAccountsObject producing type, nevernull
-
createChartOfCharacteristicTypesObjectXdtoObjectType
protected Type createChartOfCharacteristicTypesObjectXdtoObjectType(Type type, CompatibilityMode compatibilityMode) CreatesObjectType
corresponding to the ChartOfCharacteristicTypesObject producing type- Parameters:
type
- ChartOfCharacteristicTypesObject producing type, can't benull
compatibilityMode
- actual compatibility mode of current configuration, cannot benull
- Returns:
ObjectType
corresponding to the ChartOfCharacteristicTypesObject producing type, nevernull
-
createChartOfCalculationTypesObjectXdtoObjectType
CreatesObjectType
corresponding to the ChartOfCalculationTypesObject producing type- Parameters:
type
- ChartOfCalculationTypesObject producing type, can't benull
- Returns:
ObjectType
corresponding to the ChartOfCalculationTypesObject producing type, nevernull
-
createTaskObjectXdtoObjectType
CreatesObjectType
corresponding to the TaskObject producing type- Parameters:
type
- TaskObject producing type, can't benull
- Returns:
ObjectType
corresponding to the TaskObject producing type, nevernull
-
createBusinessProcessObjectXdtoObjectType
CreatesObjectType
corresponding to the BusinessProcessObject producing type- Parameters:
type
- BusinessProcessObject producing type, can't benull
- Returns:
ObjectType
corresponding to the BusinessProcessObject producing type, nevernull
-
createExchangePlanObjectXdtoObjectType
CreatesObjectType
corresponding to the ExchangePlanObject producing type- Parameters:
type
- ExchangePlanObject producing type, can't benull
- Returns:
ObjectType
corresponding to the ExchangePlanObject producing type, nevernull
-
createInformationRegisterRecordXdtoObjectType
CreatesObjectType
corresponding to the InformationRegisterRecord producing type- Parameters:
type
- InformationRegisterRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the InformationRegisterRecord producing type, nevernull
-
createAccumulationRegisterRecordXdtoObjectType
CreatesObjectType
corresponding to the AccumulationRegisterRecord producing type- Parameters:
type
- AccumulationRegisterRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the AccumulationRegisterRecord producing type, nevernull
-
createAccountingRegisterRecordXdtoObjectType
CreatesObjectType
corresponding to the AccountingRegisterRecord producing type- Parameters:
type
- AccountingRegisterRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the AccountingRegisterRecord producing type, nevernull
-
createCalculationRegisterRecordXdtoObjectType
CreatesObjectType
corresponding to the CalculationRegisterRecord producing type- Parameters:
type
- CalculationRegisterRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the CalculationRegisterRecord producing type, nevernull
-
createRecalculationRecordXdtoObjectType
CreatesObjectType
corresponding to the RecalculationRecord producing type- Parameters:
type
- RecalculationRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the RecalculationRecord producing type, nevernull
-
createSequenceRecordXdtoObjectType
CreatesObjectType
corresponding to the SequenceRecord producing type- Parameters:
type
- SequenceRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the SequenceRecord producing type, nevernull
-
createExternalDataSourceTableRecordXdtoObjectType
CreatesObjectType
corresponding to the External data source TableRecord producing type- Parameters:
type
- External data source TableRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the External data source TableRecord producing type, nevernull
-
createExternalDataSourceCubeRecordXdtoObjectType
CreatesObjectType
corresponding to the External data source CubeRecord producing type- Parameters:
type
- External data source CubeRecord producing type, can't benull
- Returns:
ObjectType
corresponding to the External data source CubeRecord producing type, nevernull
-
createRecordSetXdtoObjectType
CreatesObjectType
corresponding to the RecordSet producing type- Parameters:
type
- RecordSet producing type, can't benull
- Returns:
ObjectType
corresponding to the RecordSet producing type, nevernull
-
createInformationRegisterRecordKeyXdtoObjectType
CreatesObjectType
corresponding to the InformationRegisterRecordKey producing type- Parameters:
type
- InformationRegisterRecordKey producing type, can't benull
- Returns:
ObjectType
corresponding to the InformationRegisterRecordKey producing type, nevernull
-
createRegisterRecordKeyXdtoObjectType
CreatesObjectType
corresponding to the RegisterRecordKey producing type- Parameters:
type
- RegisterRecordKey producing type, can't benull
- Returns:
ObjectType
corresponding to the RegisterRecordKey producing type, nevernull
-
createXdtoObjectType
CreatesObjectType
corresponding to the producing type. Name of the creating element equals to the type name, also creates properties inObjectType
with the same name as in producing type. Skips properties with name "LineNumber"- Parameters:
type
- producing type, can't benull
- Returns:
ObjectType
corresponding to the producing type, nevernull
-
createPropertyByPropertyType
-
isXdtoValueType
-
fillDependencies
Creates dependencies of thePackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"- Parameters:
xdtoPackage
-Package
for filling import section, can't benull
-