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 ofICurrentConfigurationPackageProvider
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CURRENT_CONFIG_XDTO_SCHEME
URI
scheme for resourceCurrentConfigXdtoResource
-
Constructor Summary
Constructors Constructor Description CurrentConfigurationPackageProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCachedScope()
Clears cachingIScope
.protected Type
createAccountingRegisterRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the AccountingRegisterRecord producing typeprotected Type
createAccumulationRegisterRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the AccumulationRegisterRecord producing typeprotected Type
createBusinessProcessObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the BusinessProcessObject producing typeprotected Type
createCalculationRegisterRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the CalculationRegisterRecord producing typeprotected Type
createCatalogObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the CatalogObject producing typeprotected Type
createChartOfAccountsObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the ChartOfAccountsObject producing typeprotected Type
createChartOfCalculationTypesObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the ChartOfCalculationTypesObject producing typeprotected Type
createChartOfCharacteristicTypesObjectXdtoObjectType(Type type)
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
createDocumentObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the DocumentObject producing typeprotected Type
createExchangePlanObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the ExchangePlanObject producing typeprotected Type
createExternalDataSourceCubeRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the External data source CubeRecord producing typeprotected Type
createExternalDataSourceTableObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the External data source TableObject and DimensionTableObject producing typeprotected Type
createExternalDataSourceTableRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the External data source TableRecord producing typeprotected Type
createInformationRegisterRecordKeyXdtoObjectType(Type type)
CreatesObjectType
corresponding to the InformationRegisterRecordKey producing typeprotected Type
createInformationRegisterRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the InformationRegisterRecord producing typeprotected Property
createPropertyByPropertyType(Property property)
protected Type
createRecalculationRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the RecalculationRecord producing typeprotected Type
createRecordSetXdtoObjectType(Type type)
CreatesObjectType
corresponding to the RecordSet producing typeprotected Type
createRegisterRecordKeyXdtoObjectType(Type type)
CreatesObjectType
corresponding to the RegisterRecordKey producing typeprotected Type
createSequenceRecordXdtoObjectType(Type type)
CreatesObjectType
corresponding to the SequenceRecord producing typeprotected Type
createTaskObjectXdtoObjectType(Type type)
CreatesObjectType
corresponding to the TaskObject producing typeprotected Type
createXdtoObjectType(Type type)
CreatesObjectType
corresponding to the producing type.protected Type
createXdtoType(Type type)
void
deleteCurrentConfigPackage(String projectName)
Deletes file with content ofPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"protected boolean
existCurrentConfigPackage(CurrentConfigXdtoResource resource)
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 QName
getBaseRefType()
Package
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
loadCurrentConfigResource(CurrentConfigXdtoResource resource)
Loads resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"void
saveCurrentConfigResource(CurrentConfigXdtoResource resource)
Saves resource forPackage
with uri "http://v8.1c.ru/8.1/data/enterprise/current-config"
-
-
-
Field Detail
-
CURRENT_CONFIG_XDTO_SCHEME
public static final String CURRENT_CONFIG_XDTO_SCHEME
URI
scheme for resourceCurrentConfigXdtoResource
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBaseRefType
public static final QName 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
public Package getCurrentConfigPackage(org.eclipse.core.resources.IProject project)
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
public void loadCurrentConfigResource(CurrentConfigXdtoResource resource)
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
public void saveCurrentConfigResource(CurrentConfigXdtoResource resource)
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
public void deleteCurrentConfigPackage(String projectName)
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
protected 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"- 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
protected boolean existCurrentConfigPackage(CurrentConfigXdtoResource resource)
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
protected boolean hasXdtoType(String typeCategory)
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
protected Type createXdtoType(Type type)
- Parameters:
type
- producing configurationType
, can't benull
- Returns:
- created xdto element (
ValueType
orObjectType
), nevernull
-
getResourceLocation
protected File getResourceLocation(String projectName)
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
protected Type createCatalogObjectXdtoObjectType(Type type)
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
protected Type createExternalDataSourceTableObjectXdtoObjectType(Type type)
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
protected Type createDocumentObjectXdtoObjectType(Type type)
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
protected Type createChartOfAccountsObjectXdtoObjectType(Type type)
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)
CreatesObjectType
corresponding to the ChartOfCharacteristicTypesObject producing type- Parameters:
type
- ChartOfCharacteristicTypesObject producing type, can't benull
- Returns:
ObjectType
corresponding to the ChartOfCharacteristicTypesObject producing type, nevernull
-
createChartOfCalculationTypesObjectXdtoObjectType
protected Type createChartOfCalculationTypesObjectXdtoObjectType(Type type)
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
protected Type createTaskObjectXdtoObjectType(Type type)
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
protected Type createBusinessProcessObjectXdtoObjectType(Type type)
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
protected Type createExchangePlanObjectXdtoObjectType(Type type)
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
protected Type createInformationRegisterRecordXdtoObjectType(Type type)
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
protected Type createAccumulationRegisterRecordXdtoObjectType(Type type)
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
protected Type createAccountingRegisterRecordXdtoObjectType(Type type)
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
protected Type createCalculationRegisterRecordXdtoObjectType(Type type)
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
protected Type createRecalculationRecordXdtoObjectType(Type type)
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
protected Type createSequenceRecordXdtoObjectType(Type type)
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
protected Type createExternalDataSourceTableRecordXdtoObjectType(Type type)
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
protected Type createExternalDataSourceCubeRecordXdtoObjectType(Type type)
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
protected Type createRecordSetXdtoObjectType(Type type)
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
protected Type createInformationRegisterRecordKeyXdtoObjectType(Type type)
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
protected Type createRegisterRecordKeyXdtoObjectType(Type type)
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
protected Type createXdtoObjectType(Type type)
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
-
isXdtoValueType
protected boolean isXdtoValueType(String categoryName)
-
-