ImageGear for Java
ImGearMetadataLeaf Class Members
Fields  Methods 

The following tables list the members exposed by ImGearMetadataLeaf.

Public Constructors
 NameDescription
Public ConstructorImGearMetadataLeaf ConstructorOverloaded.   
Top
Public Fields
 NameDescription
Public FieldformatIdentifier of the File format to which the metadata belongs.

com.accusoft.imagegear.formats.ImGearMetadataFormats enumeration

It is possible for a metadata tree to contain subtrees defined in another metadata format. For example, JPEG metadata tree may contain subtrees containing EXIF or IPTC metadata.

com.accusoft.imagegear.formats.ImGearFormats.UNKNOWN means custom (unknown) format.

com.accusoft.imagegear.formats.ImGearMetadataFormats

(Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Public FieldnativeTypeSpecifies the type of data stored in a leaf, as it was stored in the image file or should be saved to the image file.

com.accusoft.imagegear.formats.ImGearNativeDataTypes or com.accusoft.imagegear.formats.dicom.ImGearDICOMValueRepresentations enumeration value, passed as System.Object.

When metadata is loaded from a file, all leaves have this field set to explicit values.

When the application creates a leaf, it can either specify an explicit NativeType value or use the default value com.accusoft.imagegear.formats.ImGearNativeDataTypes.UNKNOWN.

At the time of image saving, most file formats ignore this field and use the file format's standard types for metadata tags. Two file formats take NativeType field into account:

 
Public FieldtagRepresents identifier of metadata node for particular file format.

Integer value

Identifies what kind of data is stored in metadata node. Specific for particular file format.

Values for the tags are taken from tag list of file formats, represented in ImageGear for Java as ImGearFORMATTagIDs (where FORMAT is BMP, TIFF, etc.) enumerations.

(Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Top
Protected Fields
 NameDescription
Protected FieldnameReturns string name of tag. (Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Top
Public Methods
 NameDescription
Public MethodcloneCreates a new object that is a copy of the current instance.  
Public MethodcompareToCompares the current instance with another object of the same type. (Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Public MethodgetDataReturns reference to opaque data stored in leaf. Type of object returned by this method depends on value of nativeType field.

Represents (meta) data assigned to metadata node as Object. The following types of objects are allowed to be stored:

  • Number subclass
  • Enum subclass
  • String
  • ImGearArray or native array
  • ImGearRationalInt

Otherwise, an exception will be thrown.

 
Public MethodgetFormatNameGets the name of the type of the file format to which metadata belongs.

Any string name of format.

(Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Public MethodgetNameReturns returns string name of tag.

Returns tag name from the internal dictionary, or empty string if tag is unknown in ImageGear for Java.

(Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Public MethodgetParentGets reference to parent node.

ImGearMetadataNodeList class object.

Specifies reference to parent node in metadata tree. This method may return null. Accordingly, the instance is stand-alone (not attached), or otherwise, has special type like ImGearMetadataHead.

(Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Public MethodisIgnoredOnSaveGets a value indicating whether current node should be ignored during page/document saving or not.

Boolean value.

If this method returns true, data contained in ImGearMetadataLeaf is ignored during image saving and data from the medatada container (page or document) will be used instead.

 
Public Methodstatic (Shared in Visual Basic)isValidDataObjectIndicates whether the data type of an object is valid (supported by metadata leaf).  
Public MethodsetDataSets reference to opaque data stored in leaf. Type of object returned by this method depends on value of nativeType field.

Represents (meta) data assigned to metadata node as Object. The following types of objects are allowed to be stored:

  • Number subclass
  • Enum subclass
  • String
  • ImGearArray or native array
  • ImGearRationalInt

Otherwise, an exception will be thrown.

 
Public MethodsetNameSets returns string name of tag.

Returns tag name from the internal dictionary, or empty string if tag is unknown in ImageGear for Java.

(Inherited from com.accusoft.imagegear.core.ImGearMetadataNode)
Top
See Also

Reference

ImGearMetadataLeaf Class
com.accusoft.imagegear.core Package

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback