Class AbstractConverter

    • 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
    • Constructor Detail

      • AbstractConverter

        public AbstractConverter()
    • 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 be null.
        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 be null.
        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 be null.
        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 be null.
        fieldSource - - field source to get standard attributes. Can't be null.
        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 be null.
        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 be null.
        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 be null.
        dataPartName - - data name. Can't be null.
        Returns:
        data with given name for given features.