Class TestMdObjectFactory
- java.lang.Object
-
- com._1c.g5.v8.dt.export.xml.exporter.md.TestMdObjectFactory
-
public class TestMdObjectFactory extends Object
Creates mdObjects and fills in valid information
-
-
Constructor Summary
Constructors Constructor Description TestMdObjectFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccountingRegister
createAccountingRegister(String name)
Creates AccountingRegister with namestatic AccumulationRegister
createAccumulationRegister(String name)
Creates AccumulationRegister with namestatic BusinessProcess
createBusinessProcess(String name)
Creates BusinessProcess with namestatic CalculationRegister
createCalculationRegister(String name)
Creates CalculationRegister with namestatic Catalog
createCatalog(String name)
Creates Catalog with namestatic ChartOfAccounts
createChartOfAccounts(String name)
Creates ChartOfAccounts with namestatic ChartOfCalculationTypes
createChartOfCalculationTypes(String name)
Creates ChartOfCalculationTypes with namestatic ChartOfCharacteristicTypes
createChartOfCharacteristicTypes(String name)
Creates ChartOfCharacteristicTypes with namestatic ChoiceParameter
createChoiceParameter()
Creates ChoiceParameter with namestatic ChoiceParameterLink
createChoiceParameterLink()
Creates ChoiceParameterLink with namestatic CommandGroup
createCommandGroup(String name)
Creates CommandGroup with namestatic CommonAttribute
createCommonAttribute(String name)
Creates CommonAttribute with namestatic CommonCommand
createCommonCommand(String name)
Creates CommonCommand with namestatic CommonForm
createCommonForm(String name, FormType type)
Creates CommonForm with name and FormTypestatic CommonModule
createCommonModule(String name)
Creates CommonModule with namestatic CommonPicture
createCommonPicture(String name)
Creates CommonPicture with namestatic CommonTemplate
createCommonTemplate(String name, TemplateType type)
Creates CommonTemplate with name and TemplateTypestatic Configuration
createConfiguration(String name)
Creates Configuration with namestatic Constant
createConstant(String name)
Creates Constant with namestatic Cube
createCube(String name)
Creates Cube with namestatic CubeDbViewDefs
createCubeDbViewDefs()
Creates CubeDbViewDefs with namestatic DataProcessor
createDataProcessor(String name)
Creates DataProcessor with namestatic DbNonObjectDef
createDbNonObjectDef()
Creates DbNonObjectDef with namestatic DbObjectDef
createDbObjectDef()
Creates DbObjectDef with namestatic DbViewFieldDef
createDbViewFieldDef()
Creates DbViewFieldDef with namestatic DbViewFieldRole
createDbViewFieldRole()
Creates DbViewFieldRole with namestatic DbViewTableDef
createDbViewTableDef()
Creates DbViewTableDef with namestatic DefinedType
createDefinedType(String name)
Creates DefinedType with namestatic Dimension
createDimension(String name)
Creates Dimension with namestatic DimensionTable
createDimensionTable(String name)
Creates DimensionTable with namestatic Document
createDocument(String name)
Creates Document with namestatic DocumentJournal
createDocumentJournal(String name)
Creates DocumentJournal with namestatic DocumentNumerator
createDocumentNumerator(String name)
Creates DocumentNumerator with namestatic Enum
createEnum(String name)
Creates Enum with namestatic EventSubscription
createEventSubscription(String name)
Creates EventSubscription with namestatic ExchangePlan
createExchangePlan(String name)
Creates ExchangePlan with namestatic ExternalDataSource
createExternalDataSource(String name)
Creates ExternalDataSource with namestatic Field
createField(String name)
Creates Field with namestatic FilterCriterion
createFilterCriterion(String name)
Creates FilterCriterion with namestatic Function
createFunction(String name)
Creates Function with namestatic FunctionalOption
createFunctionalOption(String name)
Creates FunctionalOption with namestatic FunctionalOptionsParameter
createFunctionalOptionsParameter(String name)
Creates FunctionalOptionsParameter with namestatic HTTPService
createHTTPService(String name)
Creates HTTPService with namestatic InformationRegister
createInformationRegister(String name)
Creates InformationRegister with namestatic Language
createLanguage(String name)
Creates Language with namestatic Module
createModule()
Creates Module with namestatic NumberValue
createNumberValue()
Creates NumberValuestatic Report
createReport(String name)
Creates Report with namestatic Role
createRole(String name)
Creates Role with namestatic ScheduledJob
createScheduledJob(String name)
Creates ScheduledJob with namestatic SessionParameter
createSessionParameter(String name, TypeDescription type)
Creates SessionParameter with name and TypeDescriptionstatic SettingsStorage
createSettingsStorage(String name)
Creates SettingsStorage with namestatic Style
createStyle(String name)
Creates Style with namestatic StyleItem
createStyleItem(String name)
Creates StyleItem with namestatic Subsystem
createSubsystem(String name)
Creates Subsystem with namestatic Table
createTable(String name)
Creates Table with namestatic Task
createTask(String name)
Creates Task with namestatic TypeDescription
createTypeDescriptionAllType()
Creates TypeDescription with namestatic TypeDescription
createTypeDescriptionBinaryQualifier()
Creates BinaryQualifier TypeDescriptionstatic TypeDescription
createTypeDescriptionDateQualifier()
Creates DateQualifier TypeDescriptionstatic TypeDescription
createTypeDescriptionNumberQualifier()
Creates NumberQualifier TypeDescriptionstatic TypeDescription
createTypeDescriptionStringQualifier()
Creates StringQualifier TypeDescriptionstatic TypeDescription
createTypeDescriptionTypeItem(String value)
Creates TypeItem TypeDescriptionstatic WebService
createWebService(String name)
Creates WebService with namestatic WSReference
createWSReference(String name)
Creates WSReference with namestatic XDTOPackage
createXDTOPackage(String name)
Creates XDTOPackage with namestatic BasicForm
setFormInfo(BasicForm form, String name)
Set comman form infostatic void
setNameSynonymComment(MdObject object, String name)
Set object values: name, synonym and comment
-
-
-
Method Detail
-
setNameSynonymComment
public static void setNameSynonymComment(MdObject object, String name)
Set object values: name, synonym and comment- Parameters:
object
-name
- object's name
-
setFormInfo
public static BasicForm setFormInfo(BasicForm form, String name)
Set comman form info- Parameters:
form
-name
- form's name- Returns:
- BasicForm filled in with name and Uuid
-
createSubsystem
public static Subsystem createSubsystem(String name)
Creates Subsystem with name- Parameters:
name
- object name- Returns:
- Subsystem filled in with valid data
-
createSettingsStorage
public static SettingsStorage createSettingsStorage(String name)
Creates SettingsStorage with name- Parameters:
name
- object name- Returns:
- SettingsStorage filled in with valid data
-
createReport
public static Report createReport(String name)
Creates Report with name- Parameters:
name
- object name- Returns:
- Report filled in with valid data
-
createInformationRegister
public static InformationRegister createInformationRegister(String name)
Creates InformationRegister with name- Parameters:
name
- object name- Returns:
- InformationRegister filled in with valid data
-
createRole
public static Role createRole(String name)
Creates Role with name- Parameters:
name
- object name- Returns:
- Role filled in with valid data
-
createLanguage
public static Language createLanguage(String name)
Creates Language with name- Parameters:
name
- object name- Returns:
- Language filled in with valid data
-
createStyleItem
public static StyleItem createStyleItem(String name)
Creates StyleItem with name- Parameters:
name
- object name- Returns:
- StyleItem filled in with valid data
-
createStyle
public static Style createStyle(String name)
Creates Style with name- Parameters:
name
- object name- Returns:
- Style filled in with valid data
-
createSessionParameter
public static SessionParameter createSessionParameter(String name, TypeDescription type)
Creates SessionParameter with name and TypeDescription- Parameters:
name
- object nametype
- TypeDescription value- Returns:
- SessionParameter filled in with valid data
-
createCommonTemplate
public static CommonTemplate createCommonTemplate(String name, TemplateType type)
Creates CommonTemplate with name and TemplateType- Parameters:
name
- object nametype
- TemplateType value- Returns:
- CommonTemplate filled in with valid data
-
createCommonForm
public static CommonForm createCommonForm(String name, FormType type)
Creates CommonForm with name and FormType- Parameters:
name
- object nametype
- FormType value- Returns:
- CommonForm filled in with valid data
-
createCommonPicture
public static CommonPicture createCommonPicture(String name)
Creates CommonPicture with name- Parameters:
name
- object name- Returns:
- CommonPicture filled in with valid data
-
createDocumentNumerator
public static DocumentNumerator createDocumentNumerator(String name)
Creates DocumentNumerator with name- Parameters:
name
- object name- Returns:
- DocumentNumerator filled in with valid data
-
createCommonAttribute
public static CommonAttribute createCommonAttribute(String name)
Creates CommonAttribute with name- Parameters:
name
- object name- Returns:
- CommonAttribute filled in with valid data
-
createConstant
public static Constant createConstant(String name)
Creates Constant with name- Parameters:
name
- object name- Returns:
- Constant filled in with valid data
-
createDataProcessor
public static DataProcessor createDataProcessor(String name)
Creates DataProcessor with name- Parameters:
name
- object name- Returns:
- DataProcessor filled in with valid data
-
createChartOfCharacteristicTypes
public static ChartOfCharacteristicTypes createChartOfCharacteristicTypes(String name)
Creates ChartOfCharacteristicTypes with name- Parameters:
name
- object name- Returns:
- ChartOfCharacteristicTypes filled in with valid data
-
createDocument
public static Document createDocument(String name)
Creates Document with name- Parameters:
name
- object name- Returns:
- Document filled in with valid data
-
createAccountingRegister
public static AccountingRegister createAccountingRegister(String name)
Creates AccountingRegister with name- Parameters:
name
- object name- Returns:
- AccountingRegister filled in with valid data
-
createAccumulationRegister
public static AccumulationRegister createAccumulationRegister(String name)
Creates AccumulationRegister with name- Parameters:
name
- object name- Returns:
- AccumulationRegister filled in with valid data
-
createConfiguration
public static Configuration createConfiguration(String name)
Creates Configuration with name- Parameters:
name
- object name- Returns:
- Configuration filled in with valid data
-
createBusinessProcess
public static BusinessProcess createBusinessProcess(String name)
Creates BusinessProcess with name- Parameters:
name
- object name- Returns:
- BusinessProcess filled in with valid data
-
createCalculationRegister
public static CalculationRegister createCalculationRegister(String name)
Creates CalculationRegister with name- Parameters:
name
- object name- Returns:
- CalculationRegister filled in with valid data
-
createChartOfAccounts
public static ChartOfAccounts createChartOfAccounts(String name)
Creates ChartOfAccounts with name- Parameters:
name
- object name- Returns:
- ChartOfAccounts filled in with valid data
-
createChartOfCalculationTypes
public static ChartOfCalculationTypes createChartOfCalculationTypes(String name)
Creates ChartOfCalculationTypes with name- Parameters:
name
- object name- Returns:
- ChartOfCalculationTypes filled in with valid data
-
createExchangePlan
public static ExchangePlan createExchangePlan(String name)
Creates ExchangePlan with name- Parameters:
name
- object name- Returns:
- ExchangePlan filled in with valid data
-
createFilterCriterion
public static FilterCriterion createFilterCriterion(String name)
Creates FilterCriterion with name- Parameters:
name
- object name- Returns:
- FilterCriterion filled in with valid data
-
createDefinedType
public static DefinedType createDefinedType(String name)
Creates DefinedType with name- Parameters:
name
- object name- Returns:
- DefinedType filled in with valid data
-
createDocumentJournal
public static DocumentJournal createDocumentJournal(String name)
Creates DocumentJournal with name- Parameters:
name
- object name- Returns:
- DocumentJournal filled in with valid data
-
createEnum
public static Enum createEnum(String name)
Creates Enum with name- Parameters:
name
- object name- Returns:
- Enum filled in with valid data
-
createEventSubscription
public static EventSubscription createEventSubscription(String name)
Creates EventSubscription with name- Parameters:
name
- object name- Returns:
- EventSubscription filled in with valid data
-
createFunctionalOption
public static FunctionalOption createFunctionalOption(String name)
Creates FunctionalOption with name- Parameters:
name
- object name- Returns:
- FunctionalOption filled in with valid data
-
createFunctionalOptionsParameter
public static FunctionalOptionsParameter createFunctionalOptionsParameter(String name)
Creates FunctionalOptionsParameter with name- Parameters:
name
- object name- Returns:
- FunctionalOptionsParameter filled in with valid data
-
createScheduledJob
public static ScheduledJob createScheduledJob(String name)
Creates ScheduledJob with name- Parameters:
name
- object name- Returns:
- ScheduledJob filled in with valid data
-
createXDTOPackage
public static XDTOPackage createXDTOPackage(String name)
Creates XDTOPackage with name- Parameters:
name
- object name- Returns:
- XDTOPackage filled in with valid data
-
createWSReference
public static WSReference createWSReference(String name)
Creates WSReference with name- Parameters:
name
- object name- Returns:
- WSReference filled in with valid data
-
createWebService
public static WebService createWebService(String name)
Creates WebService with name- Parameters:
name
- object name- Returns:
- WebService filled in with valid data
-
createHTTPService
public static HTTPService createHTTPService(String name)
Creates HTTPService with name- Parameters:
name
- object name- Returns:
- HTTPService filled in with valid data
-
createTask
public static Task createTask(String name)
Creates Task with name- Parameters:
name
- object name- Returns:
- Task filled in with valid data
-
createCatalog
public static Catalog createCatalog(String name)
Creates Catalog with name- Parameters:
name
- object name- Returns:
- Catalog filled in with valid data
-
createCommonModule
public static CommonModule createCommonModule(String name)
Creates CommonModule with name- Parameters:
name
- object name- Returns:
- CommonModule filled in with valid data
-
createCommandGroup
public static CommandGroup createCommandGroup(String name)
Creates CommandGroup with name- Parameters:
name
- object name- Returns:
- CommandGroup filled in with valid data
-
createCommonCommand
public static CommonCommand createCommonCommand(String name)
Creates CommonCommand with name- Parameters:
name
- object name- Returns:
- CommonCommand filled in with valid data
-
createExternalDataSource
public static ExternalDataSource createExternalDataSource(String name)
Creates ExternalDataSource with name- Parameters:
name
- object name- Returns:
- ExternalDataSource filled in with valid data
-
createDimensionTable
public static DimensionTable createDimensionTable(String name)
Creates DimensionTable with name- Parameters:
name
- object name- Returns:
- DimensionTable filled in with valid data
-
createFunction
public static Function createFunction(String name)
Creates Function with name- Parameters:
name
- object name- Returns:
- Function filled in with valid data
-
createTable
public static Table createTable(String name)
Creates Table with name- Parameters:
name
- object name- Returns:
- Table filled in with valid data
-
createCube
public static Cube createCube(String name)
Creates Cube with name- Parameters:
name
- object name- Returns:
- Cube filled in with valid data
-
createDimension
public static Dimension createDimension(String name)
Creates Dimension with name- Returns:
- Dimension filled in with valid data
-
createCubeDbViewDefs
public static CubeDbViewDefs createCubeDbViewDefs()
Creates CubeDbViewDefs with name- Returns:
- CubeDbViewDefs filled in with valid data
-
createModule
public static Module createModule()
Creates Module with name- Returns:
- Module filled in with valid data
-
createField
public static Field createField(String name)
Creates Field with name- Returns:
- Field filled in with valid data
-
createChoiceParameterLink
public static ChoiceParameterLink createChoiceParameterLink()
Creates ChoiceParameterLink with name- Returns:
- ChoiceParameterLink filled in with valid data
-
createChoiceParameter
public static ChoiceParameter createChoiceParameter()
Creates ChoiceParameter with name- Returns:
- ChoiceParameter filled in with valid data
-
createDbViewTableDef
public static DbViewTableDef createDbViewTableDef()
Creates DbViewTableDef with name- Returns:
- DbViewTableDef filled in with valid data
-
createDbObjectDef
public static DbObjectDef createDbObjectDef()
Creates DbObjectDef with name- Returns:
- DbObjectDef filled in with valid data
-
createDbNonObjectDef
public static DbNonObjectDef createDbNonObjectDef()
Creates DbNonObjectDef with name- Returns:
- DbNonObjectDef filled in with valid data
-
createDbViewFieldDef
public static DbViewFieldDef createDbViewFieldDef()
Creates DbViewFieldDef with name- Returns:
- DbViewFieldDef filled in with valid data
-
createDbViewFieldRole
public static DbViewFieldRole createDbViewFieldRole()
Creates DbViewFieldRole with name- Returns:
- DbViewFieldRole filled in with valid data
-
createTypeDescriptionAllType
public static TypeDescription createTypeDescriptionAllType()
Creates TypeDescription with name- Returns:
- TypeDescription filled in with valid data
-
createTypeDescriptionBinaryQualifier
public static TypeDescription createTypeDescriptionBinaryQualifier()
Creates BinaryQualifier TypeDescription- Returns:
- TypeDescription filled in with BinaryQualifier
-
createTypeDescriptionDateQualifier
public static TypeDescription createTypeDescriptionDateQualifier()
Creates DateQualifier TypeDescription- Returns:
- TypeDescription filled in with DateQualifier
-
createTypeDescriptionNumberQualifier
public static TypeDescription createTypeDescriptionNumberQualifier()
Creates NumberQualifier TypeDescription- Returns:
- TypeDescription filled in with NumberQualifier
-
createTypeDescriptionStringQualifier
public static TypeDescription createTypeDescriptionStringQualifier()
Creates StringQualifier TypeDescription- Returns:
- TypeDescription filled in with StringQualifier
-
createTypeDescriptionTypeItem
public static TypeDescription createTypeDescriptionTypeItem(String value)
Creates TypeItem TypeDescription- Parameters:
value
- TypeItem value- Returns:
- TypeDescription filled in with TypeItem
-
createNumberValue
public static NumberValue createNumberValue()
Creates NumberValue- Returns:
- NumberValue filled in with Integer.MIN_VALUE
-
-