Class DtPictureURL
java.lang.Object
com._1c.g5.v8.dt.platform.pictures.DtPictureURL
DtPicture URL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DtPictureURLcreateCommonPictureURL(String projectName, String pictureName, IPictureManifestQuery query) CreateDtPictureURLto CommonPicture object with specified properties.static DtPictureURLcreateMdPictureURL(String projectName, String featureName, IPictureManifestQuery query) CreateDtPictureURLto MdPicture objectstatic DtPictureURLcreateNamedEntryCommonPictureURL(String projectName, String pictureName, String entryName) CreateDtPictureURLof CommonPicture object to entry name.static DtPictureURLcreateStandardPictureURL(String projectName, String pictureName, IPictureManifestQuery query) CreateDtPictureURLto StandardPicture objectGets the name of embedded entry.Gets the name of target pictureGets the type of target pictureGets the name of target projectgetQuery()CreatePictureManifestQueryfrom the current DtPicture propertiesgetURL()Creates a URL from the current DtPicture properties
-
Constructor Details
-
DtPictureURL
CreateDtPictureURLfrom specified URL- Parameters:
url- the source URL to parseDtPictureURL, cannot benull- 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) CreateDtPictureURLto CommonPicture object with specified properties.- Parameters:
projectName- the name of target project, cannot benullpictureName- the name of target common picture, cannot benullquery- theIPictureManifestQueryfor get picture properies, cannot benull- Returns:
- new instance of
DtPictureURLto CommonPicture specified object, nevernull
-
createNamedEntryCommonPictureURL
public static DtPictureURL createNamedEntryCommonPictureURL(String projectName, String pictureName, String entryName) CreateDtPictureURLof CommonPicture object to entry name. In this case all properties fromIPictureManifestQueryhas no effect.- Parameters:
projectName- the name of target project, cannot benullpictureName- the name of target common picture, cannot benullentryName- name of embedded entry, cannot benull- Returns:
- new instance of
DtPictureURLto embedded entry of CommonPicture specified object, nevernull
-
createStandardPictureURL
public static DtPictureURL createStandardPictureURL(String projectName, String pictureName, IPictureManifestQuery query) CreateDtPictureURLto StandardPicture object- Parameters:
projectName- the name of target project, cannot benullpictureName- the name of target common picture, cannot benullquery- theIPictureManifestQueryfor get picture properies, cannot benull- Returns:
- new instance of
DtPictureURLto StandardPicture specified object, nevernull
-
createMdPictureURL
public static DtPictureURL createMdPictureURL(String projectName, String featureName, IPictureManifestQuery query) CreateDtPictureURLto MdPicture object- Parameters:
projectName- the name of target project, cannot benullfeatureName- the feature name of target md picture, cannot benullquery- theIPictureManifestQueryfor get picture properies, cannot benull- Returns:
- new instance of
DtPictureURLto StandardPicture specified object, nevernull
-
getURL
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
CreatePictureManifestQueryfrom the current DtPicture properties- Returns:
- instance of
PictureManifestQuery, nevernull
-
getProjectName
Gets the name of target project- Returns:
- name of target project, cannot be
null
-
getPictureName
Gets the name of target picture- Returns:
- name of target picture, cannot be
null
-
getPictureType
Gets the type of target picture- Returns:
- type of target picture, cannot be
null
-
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
-