Interface IInfobaseTemplate


  • public interface IInfobaseTemplate
    1C:Enterprise infobase template. Infobase templates may be used to create infobase with Configuration and data content optionally. Template file can be accessed with getLocation() and can be *.cf, *.cfu or *.dt file.

    Also contains information about applied solution name, vendor, version and UI representation tree path.

    Cliens may use IInfobaseTemplateProvider to get instances of infobase templates.

    See Also:
    IInfobaseTemplateProvider
    • Method Detail

      • getVendor

        String getVendor()
        Returns the vendor name of the applied solution. Equals to infobase Configuration vendor attribute.
        Returns:
        the vendor name of the applied solution, never null
      • getName

        String getName()
        Returns the name of the applied solution. Equals to infobase Configuration name attribute.
        Returns:
        the name of the applied solution, never null
      • getApplicationVersion

        String getApplicationVersion()
        Returns application version of the infobase template. Equals to infobase Configuration version attribute.
        Returns:
        application version of the infobase template, never null
      • getRuntimeVersion

        String getRuntimeVersion()
        Returns version mask of the 1C:Enterprise runtime, that was used to create template. May contain 1C:Enterprise runtime version with build or version mask.
        Returns:
        version mask of the 1C:Enterprise runtime, never null
      • getLabel

        String getLabel()
        Returns label of this template record in infobase template manifest file.
        Returns:
        label of this template record in infobase template manifest file, never null
      • getCatalogPath

        List<String> getCatalogPath()
        Returns the catalog path of this infobase template. Consist of tree path parts. May be used for UI representation of this template in tree structure.

        May be localized in current Locale, if template manifest contains catalog path localization for current Locale.

        Returns:
        the catalog path of this infobase template, never null
      • getLocation

        Path getLocation()
        Returns path to the infobase template file that may be used to create infobase with Configuration content. Extension of the returned file may be one of: *.cf, *.cfu or *.dt.
        Returns:
        path to the infobase template file, never null
      • getDefaultInfobaseLocation

        Path getDefaultInfobaseLocation()
        Returns default path to the infobase, created with this infobase. May be used to suggest this path to user, when creating infobase with this template.

        Can return null.

        Returns:
        default path to the infobase, created with this infobase or null if not defined