Aqualogic Interaction API  
 

IPTCustomFileAccessor.GetDocumentFields Method 

Return all extracted metadata fields associated with the file (except for the suggested card name, summary, and full text content, which use the specialized methods shown above). The keys of the returned IXPDictionary should be the non-null String names of metadata fields. The values' types depend on the types of the properties whose values will eventually be derived from the metadata field: PT_PROPTYPE_STRING: any Object with a valid toString() method, but usually String is the best choice PT_PROPTYPE_LONG: can be any Integer type (although long will be cast to int), any floating-point type (also cast to int), or any String containing an int parsable by Integer.parseInt() PT_PROPTYPE_DOUBLE: can be any floating-point type within 32-bit Float range, any integer type (castable to float), or any String containing a value parsable by Float.parseFloat() PT_PROPTYPE_DATE: must be XPDateTime, no other type allowed. This method is called from IPTAccessor.GetFields(). This method may throw an exception if a summary could not be suggested, but other Get.. methods may still be called. If the file is completely unparsable, then throw an exception in AttachToFile to prevent this method from being called, or throw separate exceptions in the other methods.

IXPDictionary GetDocumentFields();

Return Value

IXPDictionary consisting of a mapping from field name (a String) to non-null field value of one of the types listed above(which may be String, Integer, Double, or XPDateTime).

See Also

IPTCustomFileAccessor Interface | com.plumtree.server Namespace