Class AbstractConverter
- java.lang.Object
-
- com._1c.g5.v8.dt.erd.core.dataconverter.extensions.AbstractConverter
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.core.IConverter<MdObject>
- Direct Known Subclasses:
AbstractConstantConverter
,AbstractRegisterConverter
,BusinessProcessConverter
,CatalogConverter
,ChartOfCalculationTypesConverter
,ChartOfCharacteristicTypesConverter
,CubeConverter
,DataProcessorConverter
,DimensionTableConverter
,DocumentConverter
,DocumentJournalConverter
,EnumConverter
,ExchangePlanConverter
,ExternalDataProcessorConverter
,ExternalReportConverter
,ReportConverter
,ScheduledJobConverter
,SettingsStorageConverter
,SubsystemConverter
,TableConverter
,TaskConverter
public abstract class AbstractConverter extends Object implements com._1c.g5.v8.dt.diagram.framework.core.IConverter<MdObject>
Base class for converters. Contains useful methods.
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
DEFAULT_PRIORITY
Default priority.protected static String
WRONG_MD_OBJECT_MESSAGE
Wrong MdObject type message.
-
Constructor Summary
Constructors Constructor Description AbstractConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com._1c.g5.v8.dt.diagram.framework.model.Data
getAttributesPart(Collection<? extends BasicFeature> basicFeatures, FieldSource fieldSource)
Returns data for given attributes.protected com._1c.g5.v8.dt.diagram.framework.model.Data
getDataPart(Collection<? extends BasicFeature> basicFeatures, String dataPartName)
Returns data with given name for given features.protected com._1c.g5.v8.dt.diagram.framework.model.Data
getFieldsPart(Collection<Field> fields)
Returns data for given fields.protected String
getMdObjectName(MdObject mdObject)
Returns mdObject's name.protected Collection<ErdDataPart>
getReferenceTypeStandardAttributes(FieldSource fieldSource)
Return standard attributes with reference type.protected com._1c.g5.v8.dt.diagram.framework.model.Data
getTabularSectionsPart(Collection<? extends DbObjectTabularSection> tabularSections)
Returns data for given tabular sections.protected List<String>
getTypesString(TypeDescription typeDescription)
Returns type description types as list of strings.
-
-
-
Field Detail
-
DEFAULT_PRIORITY
protected static final int DEFAULT_PRIORITY
Default priority.- See Also:
- Constant Field Values
-
WRONG_MD_OBJECT_MESSAGE
protected static final String WRONG_MD_OBJECT_MESSAGE
Wrong MdObject type message.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypesString
protected List<String> getTypesString(TypeDescription typeDescription)
Returns type description types as list of strings.- Parameters:
typeDescription
- - type description to get types. Can't benull
.- Returns:
- type description types as list of strings. Can't return
null
.
-
getMdObjectName
protected String getMdObjectName(MdObject mdObject)
Returns mdObject's name.- Parameters:
mdObject
- - mdObject to get name. Can't benull
.- Returns:
- mdObject's name. Can't return
null
.
-
getReferenceTypeStandardAttributes
protected Collection<ErdDataPart> getReferenceTypeStandardAttributes(FieldSource fieldSource)
Return standard attributes with reference type.- Parameters:
fieldSource
- - field source to get standard attributes from. Can't benull
.- Returns:
- standard attributes of reference type. Can't return
null
.
-
getAttributesPart
protected com._1c.g5.v8.dt.diagram.framework.model.Data getAttributesPart(Collection<? extends BasicFeature> basicFeatures, FieldSource fieldSource)
Returns data for given attributes. Adds standard attributes from given object to data.- Parameters:
basicFeatures
- - basic features to create data. Can't benull
.fieldSource
- - field source to get standard attributes. Can't benull
.- Returns:
- data for given attributes and field source. Can't return
null
.
-
getFieldsPart
protected com._1c.g5.v8.dt.diagram.framework.model.Data getFieldsPart(Collection<Field> fields)
Returns data for given fields.- Parameters:
fields
- - fields to create data. Cannot benull
.- Returns:
- data for given fields. Cannot return
null
.
-
getTabularSectionsPart
protected com._1c.g5.v8.dt.diagram.framework.model.Data getTabularSectionsPart(Collection<? extends DbObjectTabularSection> tabularSections)
Returns data for given tabular sections.- Parameters:
tabularSections
- - tabular sections to create data. Can't benull
.- Returns:
- data for given tabular sections. Can't return
null
.
-
getDataPart
protected com._1c.g5.v8.dt.diagram.framework.model.Data getDataPart(Collection<? extends BasicFeature> basicFeatures, String dataPartName)
Returns data with given name for given features.- Parameters:
basicFeatures
- - basic features to create data. Can't benull
.dataPartName
- - data name. Can't benull
.- Returns:
- data with given name for given features.
-
-