|
xmlgraphics-commons 1.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xmlgraphics.xmp.XMPSchemaAdapter
Base class for schema-specific adapters that provide user-friendly access to XMP values.
| Field Summary | |
protected Metadata |
meta
the Metadata object this schema instance operates on |
| Constructor Summary | |
XMPSchemaAdapter(Metadata meta,
XMPSchema schema)
Main constructor. |
|
| Method Summary | |
protected void |
addDateToSeq(java.lang.String propName,
java.util.Date value)
Adds a date value to an ordered array. |
protected void |
addStringToBag(java.lang.String propName,
java.lang.String value)
Adds a String value to an unordered array. |
protected void |
addStringToSeq(java.lang.String propName,
java.lang.String value)
Adds a String value to an ordered array. |
static java.lang.String |
formatISO8601Date(java.util.Date dt)
Formats a Date using ISO 8601 format in the default time zone. |
protected java.util.Date |
getDateValue(java.lang.String propName)
Returns a date value. |
protected java.lang.String |
getLangAlt(java.lang.String lang,
java.lang.String propName)
Returns a language-dependent value. |
protected java.lang.Object[] |
getObjectArray(java.lang.String propName)
Returns an object array representation of the property's values. |
protected QName |
getQName(java.lang.String propName)
Returns the QName for a given property |
XMPSchema |
getSchema()
|
protected java.lang.String[] |
getStringArray(java.lang.String propName)
Returns a String array representation of the property's values. |
protected java.lang.String |
getValue(java.lang.String propName)
Returns a simple value. |
static java.util.Date |
parseISO8601Date(java.lang.String dt)
Parses an ISO 8601 date and time value. |
protected void |
removeLangAlt(java.lang.String lang,
java.lang.String propName)
Removes a language-dependent value from an alternative array. |
protected void |
setDateValue(java.lang.String propName,
java.util.Date value)
Set a date value. |
protected void |
setLangAlt(java.lang.String propName,
java.lang.String lang,
java.lang.String value)
Sets a language-dependent value. |
protected void |
setValue(java.lang.String propName,
java.lang.String value)
Sets a simple value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Metadata meta
| Constructor Detail |
public XMPSchemaAdapter(Metadata meta,
XMPSchema schema)
meta - the Metadata object to wraoschema - the XMP schema for which this adapter was written| Method Detail |
public XMPSchema getSchema()
protected QName getQName(java.lang.String propName)
propName - the property name
protected void addStringToSeq(java.lang.String propName,
java.lang.String value)
propName - the property namevalue - the String value
protected void addStringToBag(java.lang.String propName,
java.lang.String value)
propName - the property namevalue - the String valuepublic static java.lang.String formatISO8601Date(java.util.Date dt)
dt - the date
public static java.util.Date parseISO8601Date(java.lang.String dt)
dt - the date and time value as an ISO 8601 string
protected void addDateToSeq(java.lang.String propName,
java.util.Date value)
propName - the property namevalue - the date value
protected void setDateValue(java.lang.String propName,
java.util.Date value)
propName - the property namevalue - the date valueprotected java.util.Date getDateValue(java.lang.String propName)
propName - the property name
protected void setLangAlt(java.lang.String propName,
java.lang.String lang,
java.lang.String value)
propName - the property namelang - the language ("x-default" or null for the default language)value - the value
protected void setValue(java.lang.String propName,
java.lang.String value)
propName - the property namevalue - the valueprotected java.lang.String getValue(java.lang.String propName)
propName - the property name
protected void removeLangAlt(java.lang.String lang,
java.lang.String propName)
lang - the language ("x-default" for the default language)propName - the property name
protected java.lang.String getLangAlt(java.lang.String lang,
java.lang.String propName)
lang - the language ("x-default" for the default language)propName - the property name
protected java.lang.Object[] getObjectArray(java.lang.String propName)
propName - the property name
protected java.lang.String[] getStringArray(java.lang.String propName)
propName - the property name
|
xmlgraphics-commons 1.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||