Package com._1c.g5.v8.dt.md.model
Class BasicMdObjectInitializer<M extends MdObject>
java.lang.Object
com._1c.g5.v8.dt.md.model.BasicMdObjectInitializer<M>
- All Implemented Interfaces:
IMdObjectInitializer<M>
- Direct Known Subclasses:
AbstractBasicDbObjectInitializer
,AccountingRegisterInitializer
,AccumulationRegisterInitializer
,CalculationRegisterInitializer
,ConstantInitializer
,CubeInitializer
,DataProcessorInitializer
,DefinedTypeInitializer
,DimensionTableInitializer
,DocumentJournalInitializer
,DocumentNumeratorInitializer
,EnumInitializer
,EventSubscriptionInitializer
,ExternalDataProcessorInitializer
,ExternalDataSourceInitializer
,ExternalReportInitializer
,FilterCriterionInitializer
,HttpServiceInitializer
,InformationRegisterInitializer
,ReportInitializer
,SequenceInitializer
,SettingsStorageInitializer
,SubsystemInitializer
,TableInitializer
,WebServiceInitializer
public abstract class BasicMdObjectInitializer<M extends MdObject>
extends Object
implements IMdObjectInitializer<M>
Basic
IMdObjectInitializer
implementation-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.md.model.IMdObjectInitializer
IMdObjectInitializer.IReferenceUpdater<T extends MdObject>
-
Field Summary
FieldsFields inherited from interface com._1c.g5.v8.dt.md.model.IMdObjectInitializer
INITIALIZERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.emf.ecore.EObject
createChildObject
(org.eclipse.emf.ecore.EClass childType, org.eclipse.emf.ecore.EObject context, Version version) Createscontext
child object of typechildType
protected org.eclipse.emf.ecore.EObject
createDefault
(org.eclipse.emf.ecore.EClass type) Creates object of typetype
.protected IEObjectProvider
getTypeProvider
(Version version) Returns type provider for given versionprotected <T extends AbstractMdType>
TinitTypesUUID
(T type) Generates UUIDs for produced typeprotected org.eclipse.emf.ecore.EObject
newCommand
(org.eclipse.emf.ecore.EClass commandType, org.eclipse.emf.ecore.EObject context, Version version) Creates new command ofcommandType
typeprotected org.eclipse.emf.ecore.EObject
newManagedForm
(org.eclipse.emf.ecore.EClass formType) Creates new managed form offormType
typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.v8.dt.md.model.IMdObjectInitializer
create
-
Field Details
-
mdTypeUtil
-
-
Constructor Details
-
BasicMdObjectInitializer
public BasicMdObjectInitializer()
-
-
Method Details
-
createChildObject
public org.eclipse.emf.ecore.EObject createChildObject(org.eclipse.emf.ecore.EClass childType, org.eclipse.emf.ecore.EObject context, Version version) Description copied from interface:IMdObjectInitializer
Createscontext
child object of typechildType
- Specified by:
createChildObject
in interfaceIMdObjectInitializer<M extends MdObject>
- Parameters:
childType
- the child object type (notnull
)context
- the parent object (notnull
)version
- the 1C:Enterprise runtime version (notnull
)- Returns:
- properly initialized metadata child object or
null
if there cannot be child object
-
initTypesUUID
Generates UUIDs for produced type -
getTypeProvider
Returns type provider for given version- Parameters:
version
- the version (notnull
)- Returns:
- the type provider appropriate for given version
-
createDefault
protected org.eclipse.emf.ecore.EObject createDefault(org.eclipse.emf.ecore.EClass type) Creates object of typetype
. This implementation also generates UUID if created object is instance ofMdObject
- Parameters:
type
- the object type to create- Returns:
- object of type
type
-
newManagedForm
protected org.eclipse.emf.ecore.EObject newManagedForm(org.eclipse.emf.ecore.EClass formType) Creates new managed form offormType
type- Parameters:
formType
- actual type of managed form (must be successor ofBasicForm
)- Returns:
- new managed form
formType
type
-
newCommand
protected org.eclipse.emf.ecore.EObject newCommand(org.eclipse.emf.ecore.EClass commandType, org.eclipse.emf.ecore.EObject context, Version version) Creates new command ofcommandType
type- Parameters:
commandType
- actual type of command (must be successor ofBasicCommand
)context
- the parent object (notnull
)version
- the 1C:Enterprise runtime version (notnull
)- Returns:
- new command
commandType
type
-