Class DtPictureURL

java.lang.Object
com._1c.g5.v8.dt.platform.pictures.DtPictureURL

public class DtPictureURL extends Object
DtPicture URL
  • Constructor Details

    • DtPictureURL

      public DtPictureURL(URL url) throws MalformedURLException
      Create DtPictureURL from specified URL
      Parameters:
      url - the source URL to parse DtPictureURL, cannot be null
      Throws:
      MalformedURLException - if url protocol is not dtpicture, or an parts is not found or the parsed URL fails to comply with the specific syntax of the associated protocol.
  • Method Details

    • createCommonPictureURL

      public static DtPictureURL createCommonPictureURL(String projectName, String pictureName, IPictureManifestQuery query)
      Create DtPictureURL to CommonPicture object with specified properties.
      Parameters:
      projectName - the name of target project, cannot be null
      pictureName - the name of target common picture, cannot be null
      query - the IPictureManifestQuery for get picture properies, cannot be null
      Returns:
      new instance of DtPictureURL to CommonPicture specified object, never null
    • createNamedEntryCommonPictureURL

      public static DtPictureURL createNamedEntryCommonPictureURL(String projectName, String pictureName, String entryName)
      Create DtPictureURL of CommonPicture object to entry name. In this case all properties from IPictureManifestQuery has no effect.
      Parameters:
      projectName - the name of target project, cannot be null
      pictureName - the name of target common picture, cannot be null
      entryName - name of embedded entry, cannot be null
      Returns:
      new instance of DtPictureURL to embedded entry of CommonPicture specified object, never null
    • createStandardPictureURL

      public static DtPictureURL createStandardPictureURL(String projectName, String pictureName, IPictureManifestQuery query)
      Create DtPictureURL to StandardPicture object
      Parameters:
      projectName - the name of target project, cannot be null
      pictureName - the name of target common picture, cannot be null
      query - the IPictureManifestQuery for get picture properies, cannot be null
      Returns:
      new instance of DtPictureURL to StandardPicture specified object, never null
    • createMdPictureURL

      public static DtPictureURL createMdPictureURL(String projectName, String featureName, IPictureManifestQuery query)
      Create DtPictureURL to MdPicture object
      Parameters:
      projectName - the name of target project, cannot be null
      featureName - the feature name of target md picture, cannot be null
      query - the IPictureManifestQuery for get picture properies, cannot be null
      Returns:
      new instance of DtPictureURL to StandardPicture specified object, never null
    • getURL

      public URL getURL() throws MalformedURLException
      Creates a URL from the current DtPicture properties
      Returns:
      URL represents a DtPicture, never null
      Throws:
      MalformedURLException - if the current DtPicture properties could not be parsed
    • getQuery

      public IPictureManifestQuery getQuery()
      Create PictureManifestQuery from the current DtPicture properties
      Returns:
      instance of PictureManifestQuery, never null
    • getProjectName

      public String getProjectName()
      Gets the name of target project
      Returns:
      name of target project, cannot be null
    • getPictureName

      public String getPictureName()
      Gets the name of target picture
      Returns:
      name of target picture, cannot be null
    • getPictureType

      public String getPictureType()
      Gets the type of target picture
      Returns:
      type of target picture, cannot be null
    • getEntryName

      public String getEntryName()
      Gets the name of embedded entry. If entry name is specified then others properties like dpi, direction, or UI theme are ignored.
      Returns:
      name of embedded entry, can be null