Specifications
With the default prefix map the query expression can use any of the prefixes that occur in the
backing file. While this is certainly not according to the book, the conventions for the use of
prefixes are often stable enough to allow this sort of convenience trick.
Adding/accessing mappings in a Map object
Adds the specified prefix to URI mapping to the map,
replacing the previous mapping for this prefix if any.
put( prefix: String, namespaceURI:
String )
Returns the URI mapped to the specified prefix or null if
there is no mapping for the prefix.
get( prefix: String ) : String
Dataset class
The Dataset class is a base class that offers a number of functions common to all types of metadata
datasets. There is a separate inheriting class for each metadata data model supported by the
scripting API: XML data model, JDF data model, XMP data model, and Opaque data model.
Instances of the Dataset class (or rather of its inheriting classes) can be obtained with the
Job.createDataset(), Job.getDataset() and Job.getEmbeddedDataset() functions in the flow element
module.
See also external metadata and embedded metadata.
Getting dataset attributes
For an external dataset, returns the absolute file path (including filename
and extension) for the backing file for this dataset. This is used
getPath( ) : String
predominantly for placing the backing file in the correct location while
creating a new dataset. However it might conceivably be used to bypass
the data model access mechanisms and provide direct access to the
backing file.
For an embedded dataset, returns the absolute path to the file that
embeds the metadata (rather than the metadata packet as a separate
entity).
Returns true if the backing file exists, can be read, and conforms to the
syntax and semantics of the dataset’s underlying data model. Otherwise
returns false.
hasValidData( ) :
Boolean
Returns the name of the data model for the dataset ("XML", "JDF", "XMP"
or "Opaque"). In effect this determines the actual class of this instance.
getModel( ) : String
Returns true if this data set corresponds to embedded metadata, i.e. if
it has been returned by the Job.getEmbeddedDataset() function. Otherwise
returns false.
Returns true if this data set supports updating its corresponding
embedded metadata (only embedded metadata can be updated).
Otherwise returns false.
isWritable( ) :
Boolean
477
Enfocus Switch 10