Packages

 

com.aspose.psd.fileformats.psd.layers.layerresources.linkresources

Class LinkDataSource

  • java.lang.Object
    • com.aspose.psd.fileformats.psd.layers.layerresources.linkresources.LinkDataSource
  • Direct Known Subclasses:
    LiFdDataSource, LiFeDataSource


    public abstract class LinkDataSource
    extends Object

    Defines the LinkDataSource class that contains information about a linked file or an asset in the PSD file.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean getAssetLockedState()
      Gets or sets a value indicating whether the PSD asset is locked.
      double getAssetModTime()
      Gets or sets the asset modified time, for Adobe® Photoshop® СС Libraries assets.
      String getChildDocId()
      Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.
      int getCompId()
      Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
      String getFileCreator()
      Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.
      String getFileType()
      Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.
      long getLength()
      Gets the link data source length in bytes.
      int getOriginalCompId()
      Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected.
      String getOriginalFileName()
      Gets the original file name of the data source in the Adobe® Photoshop® global link resource.
      int getType()
      Gets the Adobe® Photoshop® global link data source type that can be one of the following or none: The embedded linked file liFD that corresponds to the PSD Lnk2Resource The external linked file liFE that corresponds to the PSD LnkeResource The linked file alias liFA
      UUID getUniqueId()
      Gets the global unique identifier of the data source in the PSD link resource.
      int getVersion()
      Gets the version of the data source in the PSD LnkE / Lnk2 resource.
      boolean hasFileOpenDescriptor()
      Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.
      boolean isLibraryLink()
      Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® СС Library item.
      void setAssetLockedState(boolean value)
      Gets or sets a value indicating whether the PSD asset is locked.
      void setAssetModTime(double value)
      Gets or sets the asset modified time, for Adobe® Photoshop® СС Libraries assets.
      void setChildDocId(String value)
      Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.
      void setCompId(int value)
      Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
      void setFileCreator(String value)
      Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.
      void setFileOpenDescriptor(boolean value)
      Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.
      void setFileType(String value)
      Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.
      void setLibraryLink(boolean value)
      Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® СС Library item.
      void setOriginalCompId(int value)
      Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected.
      void setOriginalFileName(String value)
      Gets the original file name of the data source in the Adobe® Photoshop® global link resource.
      void setUniqueId(UUID uuid)
      Gets the global unique identifier of the data source in the PSD link resource.
    • Method Detail

      • getType

        public final int getType()

        Gets the Adobe® Photoshop® global link data source type that can be one of the following or none: The embedded linked file liFD that corresponds to the PSD Lnk2Resource The external linked file liFE that corresponds to the PSD LnkeResource The linked file alias liFA

        Value: The PSD link data source type.
      • getUniqueId

        public final UUID getUniqueId()

        Gets the global unique identifier of the data source in the PSD link resource.

        Throws:
        PsdImageException - You cannot access the UniqueId property. Value: The link unique identifier of the data source in the Adobe® Photoshop® LnkE / Lnk2 resource.
      • setUniqueId

        public final void setUniqueId(UUID uuid)

        Gets the global unique identifier of the data source in the PSD link resource.

        Throws:
        PsdImageException - You cannot access the UniqueId property. Value: The link unique identifier of the data source in the Adobe® Photoshop® LnkE / Lnk2 resource.
      • getVersion

        public final int getVersion()

        Gets the version of the data source in the PSD LnkE / Lnk2 resource.

        Throws:
        PsdImageException - You cannot access the Version property. Value: The LiFE / LiFD link data source version number.
      • getOriginalFileName

        public final String getOriginalFileName()

        Gets the original file name of the data source in the Adobe® Photoshop® global link resource.

        Throws:
        PsdImageException - You cannot access the OriginalFileName property. Value: The original file name in the PSD format LnkE / Lnk2 resource.
      • setOriginalFileName

        public final void setOriginalFileName(String value)

        Gets the original file name of the data source in the Adobe® Photoshop® global link resource.

        Throws:
        PsdImageException - You cannot access the OriginalFileName property. Value: The original file name in the PSD format LnkE / Lnk2 resource.
      • getFileType

        public final String getFileType()

        Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.

        Throws:
        PsdImageException - You cannot access the FileType property. Value: The type of the embedded or external linked file.
      • setFileType

        public final void setFileType(String value)

        Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.

        Throws:
        PsdImageException - You cannot access the FileType property. Value: The type of the embedded or external linked file.
      • getFileCreator

        public final String getFileCreator()

        Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.

        Throws:
        PsdImageException - You cannot access the FileCreator property. Value: The file creator that PSD LiFE / LiFD data source contains.
      • setFileCreator

        public final void setFileCreator(String value)

        Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.

        Throws:
        PsdImageException - You cannot access the FileCreator property. Value: The file creator that PSD LiFE / LiFD data source contains.
      • getChildDocId

        public final String getChildDocId()

        Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.

        Throws:
        PsdImageException - You cannot access the ChildDocId property, it is available only for liFE or liFD data source with version 5 or greater. Value: The child document identifier in the liFE or liFD data source of the PSD Lnk2 / LnkE resource.
      • setChildDocId

        public final void setChildDocId(String value)

        Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.

        Throws:
        PsdImageException - You cannot access the ChildDocId property, it is available only for liFE or liFD data source with version 5 or greater. Value: The child document identifier in the liFE or liFD data source of the PSD Lnk2 / LnkE resource.
      • getAssetModTime

        public final double getAssetModTime()

        Gets or sets the asset modified time, for Adobe® Photoshop® СС Libraries assets.

        Throws:
        PsdImageException - You cannot access AssetModTime property, it is available only for liFE or liFE data source with version 6 or greater. Value: The asset modified time.
      • setAssetModTime

        public final void setAssetModTime(double value)

        Gets or sets the asset modified time, for Adobe® Photoshop® СС Libraries assets.

        Throws:
        PsdImageException - You cannot access AssetModTime property, it is available only for liFE or liFE data source with version 6 or greater. Value: The asset modified time.
      • getAssetLockedState

        public final boolean getAssetLockedState()

        Gets or sets a value indicating whether the PSD asset is locked. The asset locked state, for Adobe® Photoshop® СС Libraries assets.

        Throws:
        PsdImageException - You cannot access AssetLockedState property, it is available only for liFE or liFE data source with version 7. Value: true if the Adobe® Photoshop® asset is locked; otherwise, false.
      • setAssetLockedState

        public final void setAssetLockedState(boolean value)

        Gets or sets a value indicating whether the PSD asset is locked. The asset locked state, for Adobe® Photoshop® СС Libraries assets.

        Throws:
        PsdImageException - You cannot access AssetLockedState property, it is available only for liFE or liFE data source with version 7. Value: true if the Adobe® Photoshop® asset is locked; otherwise, false.
      • isLibraryLink

        public final boolean isLibraryLink()

        Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® СС Library item.

        Throws:
        PsdImageException - You cannot access the IsLibraryLink property. Value: true if this instance is a Adobe® Photoshop® СС library link; otherwise, false.
      • setLibraryLink

        public final void setLibraryLink(boolean value)

        Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® СС Library item.

        Throws:
        PsdImageException - You cannot access the IsLibraryLink property. Value: true if this instance is a Adobe® Photoshop® СС library link; otherwise, false.
      • getLength

        public final long getLength()

        Gets the link data source length in bytes.

      • getCompId

        public final int getCompId()

        Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected. Comps are compositions of a page layout which designers can create. Using layer comps, you can create, manage, and view multiple versions of a layout in a single Adobe® Photoshop® file. A layer comp is a snapshot of a state of the Layers panel. Layer comps save three types of layer options but this property gets the Layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

        Throws:
        PsdImageException - You cannot access the CompId property Value: The ID of the currently selected comp for the child document, which will be -1 if none are selected.
      • setCompId

        public final void setCompId(int value)

        Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected. Comps are compositions of a page layout which designers can create. Using layer comps, you can create, manage, and view multiple versions of a layout in a single Adobe® Photoshop® file. A layer comp is a snapshot of a state of the Layers panel. Layer comps save three types of layer options but this property gets the Layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

        Throws:
        PsdImageException - You cannot access the CompId property Value: The ID of the currently selected comp for the child document, which will be -1 if none are selected.
      • getOriginalCompId

        public final int getOriginalCompId()

        Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected. This property gets the original layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

        Throws:
        PsdImageException - You cannot access the OriginalCompId property Value: The original ID of the currently selected comp for the child document, which will be -1 if none are selected.
      • setOriginalCompId

        public final void setOriginalCompId(int value)

        Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected. This property gets the original layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

        Throws:
        PsdImageException - You cannot access the OriginalCompId property Value: The original ID of the currently selected comp for the child document, which will be -1 if none are selected.
      • hasFileOpenDescriptor

        public final boolean hasFileOpenDescriptor()

        Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.

        Value: true if this instance has file open descriptor; otherwise, false.
      • setFileOpenDescriptor

        public final void setFileOpenDescriptor(boolean value)

        Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.

        Value: true if this instance has file open descriptor; otherwise, false.