public abstract class LinkDataSource extends Object
Defines the LinkDataSource class that contains information about a linked file or an asset.
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 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 identifier of the data source in the PSD link resource.
|
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.public final UUID getUniqueId()
Gets the global identifier of the data source in the PSD link resource.
PsdImageException
- You cannot access the UniqueId property.
Value:
The link unique identifier of the data source in the Adobe® Photoshop® LnkE / Lnk2 resource.public final void setUniqueId(UUID uuid)
Gets the global identifier of the data source in the PSD link resource.
PsdImageException
- You cannot access the UniqueId property.
Value:
The link unique identifier of the data source in the Adobe® Photoshop® LnkE / Lnk2 resource.public final int getVersion()
Gets the version of the data source in the PSD LnkE / Lnk2 resource.
PsdImageException
- You cannot access the Version property.
Value:
The LiFE / LiFD link data source version number.public final String getOriginalFileName()
Gets the original file name of the data source in the Adobe® Photoshop® global link resource.
PsdImageException
- You cannot access the OriginalFileName property.
Value:
The original file name in the PSD format LnkE / Lnk2 resource.public final void setOriginalFileName(String value)
Gets the original file name of the data source in the Adobe® Photoshop® global link resource.
PsdImageException
- You cannot access the OriginalFileName property.
Value:
The original file name in the PSD format LnkE / Lnk2 resource.public final String getFileType()
Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.
PsdImageException
- You cannot access the FileType property.
Value:
The type of the embedded or external linked file.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.
PsdImageException
- You cannot access the FileType property.
Value:
The type of the embedded or external linked file.public final String getFileCreator()
Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.
PsdImageException
- You cannot access the FileCreator property.
Value:
The file creator that PSD LiFE / LiFD data source contains.public final void setFileCreator(String value)
Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.
PsdImageException
- You cannot access the FileCreator property.
Value:
The file creator that PSD LiFE / LiFD data source contains.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.
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.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.
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.public final double getAssetModTime()
Gets or sets the asset modified time, for Adobe® Photoshop® СС Libraries assets.
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.public final void setAssetModTime(double value)
Gets or sets the asset modified time, for Adobe® Photoshop® СС Libraries assets.
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.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.
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
.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.
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
.public final boolean isLibraryLink()
Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® СС Library item.
PsdImageException
- You cannot access the IsLibraryLink property.
Value:
true
if this instance is a Adobe® Photoshop® СС library link; otherwise, false
.public final void setLibraryLink(boolean value)
Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® СС Library item.
PsdImageException
- You cannot access the IsLibraryLink property.
Value:
true
if this instance is a Adobe® Photoshop® СС library link; otherwise, false
.public final long getLength()
Gets the link data source length in bytes.
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
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.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
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.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
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.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
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.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
.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
.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.