| java.lang.Object org.apache.xmlgraphics.xmp.XMPSchemaAdapter
All known Subclasses: org.apache.xmlgraphics.xmp.schemas.pdf.PDFAAdapter, org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter, org.apache.xmlgraphics.xmp.schemas.DublinCoreAdapter, org.apache.xmlgraphics.xmp.schemas.pdf.AdobePDFAdapter,
XMPSchemaAdapter | public class XMPSchemaAdapter (Code) | | Base class for schema-specific adapters that provide user-friendly access to XMP values.
|
meta | protected Metadata meta(Code) | | the Metadata object this schema instance operates on
|
XMPSchemaAdapter | public XMPSchemaAdapter(Metadata meta, XMPSchema schema)(Code) | | Main constructor.
Parameters: meta - the Metadata object to wrao Parameters: schema - the XMP schema for which this adapter was written |
addDateToSeq | protected void addDateToSeq(String propName, Date value)(Code) | | Adds a date value to an ordered array.
Parameters: propName - the property name Parameters: value - the date value |
addStringToBag | protected void addStringToBag(String propName, String value)(Code) | | Adds a String value to an unordered array.
Parameters: propName - the property name Parameters: value - the String value |
addStringToSeq | protected void addStringToSeq(String propName, String value)(Code) | | Adds a String value to an ordered array.
Parameters: propName - the property name Parameters: value - the String value |
formatISO8601Date | public static String formatISO8601Date(Date dt)(Code) | | Formats a Date using ISO 8601 format in the default time zone.
Parameters: dt - the date the formatted date |
getDateValue | protected Date getDateValue(String propName)(Code) | | Returns a date value.
Parameters: propName - the property name the date value or null if the value is not set |
getLangAlt | protected String getLangAlt(String lang, String propName)(Code) | | Returns a language-dependent value. If the value in the requested language is not available
the value for the default language is returned.
Parameters: lang - the language ("x-default" for the default language) Parameters: propName - the property name the requested value |
getObjectArray | protected Object[] getObjectArray(String propName)(Code) | | Returns an object array representation of the property's values.
Parameters: propName - the property name the object array or null if the property isn't set |
getQName | protected QName getQName(String propName)(Code) | | Returns the QName for a given property
Parameters: propName - the property name the resulting QName |
getSchema | public XMPSchema getSchema()(Code) | | the XMP schema associated with this adapter |
getStringArray | protected String[] getStringArray(String propName)(Code) | | Returns a String array representation of the property's values. Complex values to converted
to Strings using the toString() method.
Parameters: propName - the property name the String array or null if the property isn't set |
getValue | protected String getValue(String propName)(Code) | | Returns a simple value.
Parameters: propName - the property name the requested value or null if it isn't set |
parseISO8601Date | public static Date parseISO8601Date(String dt)(Code) | | Parses an ISO 8601 date and time value.
Parameters: dt - the date and time value as an ISO 8601 string the parsed date/time |
removeLangAlt | protected void removeLangAlt(String lang, String propName)(Code) | | Removes a language-dependent value from an alternative array.
Parameters: lang - the language ("x-default" for the default language) Parameters: propName - the property name |
setDateValue | protected void setDateValue(String propName, Date value)(Code) | | Set a date value.
Parameters: propName - the property name Parameters: value - the date value |
setLangAlt | protected void setLangAlt(String propName, String lang, String value)(Code) | | Sets a language-dependent value.
Parameters: propName - the property name Parameters: lang - the language ("x-default" or null for the default language) Parameters: value - the value |
setValue | protected void setValue(String propName, String value)(Code) | | Sets a simple value.
Parameters: propName - the property name Parameters: value - the value |
|
|