Package org.openpreservation.odf.xml
Interface Metadata
public interface Metadata
Interface for retrieving any useful metadata from an ODF package meta.xml
file.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Interface that handles basic user defined field information. -
Method Summary
Modifier and TypeMethodDescriptiongetStringValue
(String qualifiedName) Get the String value for the supplied qualified name.getStringValue
(String prefix, String localName) Look up the string value by prefix and local name.The qualified Name value Map of all of the qualifiedName:string pairs found in the metadata block.Get the user defined fields from the metadata blockReturn the office version of the Metadata data.
-
Method Details
-
getVersion
String getVersion()Return the office version of the Metadata data.- Returns:
- the office version of the Metadata data, or null if not present
-
getStringValueMap
The qualified Name value Map of all of the qualifiedName:string pairs found in the metadata block.- Returns:
- The name value Map, may be an empty Map but never null
-
getStringValue
Get the String value for the supplied qualified name.- Parameters:
qualifiedName
- The qualified name of the value to retrieve- Returns:
- The String value for the supplied qualified name or null if no key exists
-
getStringValue
Look up the string value by prefix and local name.- Parameters:
prefix
- The prefix of the value to retrieve, usuall "meta" or "dc".localName
- The local name of the value to retrieve.- Returns:
- The String value for the supplied prefix and local name or null if no key
-
getUserDefinedFields
List<Metadata.UserDefinedField> getUserDefinedFields()Get the user defined fields from the metadata block- Returns:
- a List of any user defined fields, which is empty if there are none.
-