com.tle.core.metadata.scripting.types
Interface MetadataScriptType
Declaration: public interface MetadataScriptType

 

 

Methods Summary
abstract java.lang.String get(java.lang.String key)
    
Returns the first key found in any type grouping that matches.
abstract java.lang.String get(java.lang.String type, java.lang.String key)
    
Returns a specific key within a type grouping e.g LensID for XMP would be get("XMP", "LensID").
abstract MapScriptType getAllForType(java.lang.String type)
    
Returns all key values for a specific type e.g getAllForType("XMP") will return all the key/values for the type grouping XMP.
abstract java.util.List<java.lang.String> getTypesAvailable()
    
Returns a list of all type groupings e.g EXIF, XMP, File etc
abstract boolean isEmpty()
    
Returns true if there is no metadata available

 

 

 

 

get

 

public abstract java.lang.String get( java.lang.String key)

 

Returns the first key found in any type grouping that matches. If there are duplicate keys within groupings then get(String,String) should be used

 

Parameters:
key-
Returns:
The first value found for the key provided or null if key is not present

 

 

 

get

 

public abstract java.lang.String get( java.lang.String type,
java.lang.String key)

 

Returns a specific key within a type grouping e.g LensID for XMP would be get("XMP", "LensID"). This method should be used to get specific values when there are duplicate keys in the metadata

 

Parameters:
type-
key-
Returns:
A specific value for a type or null if either type or key is not present

 

 

 

getTypesAvailable

 

public abstract java.util.List<java.lang.String> getTypesAvailable( )

 

Returns a list of all type groupings e.g EXIF, XMP, File etc

 

Returns:
A list of available type groupings

 

 

 

getAllForType

 

public abstract MapScriptType getAllForType( java.lang.String type)

 

Returns all key values for a specific type e.g getAllForType("XMP") will return all the key/values for the type grouping XMP. If the type does not exist null will be returned

 

Parameters:
type-
Returns:
All key/values for a specific type grouping

 

 

 

isEmpty

 

public abstract boolean isEmpty( )

 

Returns true if there is no metadata available

 

Returns:
true if there is no metadata available