|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jempbox.xmp.XMPSchema
org.apache.jempbox.xmp.XMPSchemaBasic
public class XMPSchemaBasic
Define XMP properties that are common to all schemas.
Field Summary | |
---|---|
static java.lang.String |
NAMESPACE
The namespace of this schema. |
Fields inherited from class org.apache.jempbox.xmp.XMPSchema |
---|
NS_NAMESPACE, prefix, schema |
Constructor Summary | |
---|---|
XMPSchemaBasic(org.w3c.dom.Element element,
java.lang.String prefix)
Constructor from existing XML element. |
|
XMPSchemaBasic(XMPMetadata parent)
Construct a new blank PDF schema. |
Method Summary | |
---|---|
void |
addAdvisory(java.lang.String advisory)
Add an advisory to the list. |
void |
addIdentifier(java.lang.String id)
Add a new identifier for this resource. |
java.util.List<java.lang.String> |
getAdvisories()
Get the complete list of advisories. |
java.lang.String |
getBaseURL()
Get the base URL of the resource. |
java.util.Calendar |
getCreateDate()
Get the creation date of the resource. |
java.lang.String |
getCreatorTool()
Get the tool that created this resource, in the form of "vendor app version", ie "Adobe Acrobat Distiller 5.0". |
java.util.List<java.lang.String> |
getIdentifiers()
Get the complete list of identifiers. |
java.lang.String |
getLabel()
Get the short phrase that describes this resource. |
java.util.Calendar |
getMetadataDate()
Get the metadata change date for this resource. |
java.util.Calendar |
getModifyDate()
Get the date the resource was last modified. |
java.lang.String |
getNickname()
Get the short informal name for this resource. |
java.lang.Integer |
getRating()
Get a number that indicates the documents status. |
Thumbnail |
getThumbnail()
Get the default value for the thumbnail. |
Thumbnail |
getThumbnail(java.lang.String language)
Get the thumbnail in a specific language. |
java.util.List<java.lang.String> |
getThumbnailLanguages()
Get a list of all languages that a thumbnail exists for. |
java.lang.String |
getTitle()
Get the title for this resource. |
void |
removeAdvisory(java.lang.String advisory)
Remove an Advisory xpath expression. |
void |
removeIdentifier(java.lang.String id)
Remove an identifier to this resource. |
void |
setBaseURL(java.lang.String url)
The base URL of the resource, for relative URLs in the document. |
void |
setCreateDate(java.util.Calendar date)
Set the creation date of the resource. |
void |
setCreatorTool(java.lang.String creator)
The creator tool for the resource. |
void |
setLabel(java.lang.String label)
Set a short phrase that identifies this resource. |
void |
setMetadataDate(java.util.Calendar date)
Set the date that any metadata was updated. |
void |
setModifyDate(java.util.Calendar date)
Set the date that the resource was last modified. |
void |
setNickname(java.lang.String nickname)
Set a short informal name for the resource. |
void |
setRating(java.lang.Integer rating)
Set the document status. |
void |
setThumbnail(java.lang.String language,
Thumbnail thumbnail)
Set the thumbnail of this resource in a specific language. |
void |
setThumbnail(Thumbnail thumbnail)
Set the default value for the thumbnail. |
void |
setTitle(java.lang.String title)
Set a Title for this resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAMESPACE
Constructor Detail |
---|
public XMPSchemaBasic(XMPMetadata parent)
parent
- The parent metadata schema that this will be part of.public XMPSchemaBasic(org.w3c.dom.Element element, java.lang.String prefix)
element
- The existing element.prefix
- The schema prefix.Method Detail |
---|
public void removeAdvisory(java.lang.String advisory)
advisory
- An xpath expression specifying properties that
were edited outside of the authoring application.public void addAdvisory(java.lang.String advisory)
advisory
- The new advisory xpath expression.public java.util.List<java.lang.String> getAdvisories()
public void setBaseURL(java.lang.String url)
url
- The base URL.public java.lang.String getBaseURL()
public void setCreateDate(java.util.Calendar date)
date
- The creation date of the resource.public java.util.Calendar getCreateDate() throws java.io.IOException
java.io.IOException
- If there is an error while converting this property to
a date.public void setCreatorTool(java.lang.String creator)
creator
- The tool that was used to create the resource.public java.lang.String getCreatorTool()
public void removeIdentifier(java.lang.String id)
id
- An identifier to this resource.public void addIdentifier(java.lang.String id)
id
- A new identifier for this resource.public java.util.List<java.lang.String> getIdentifiers()
public void setLabel(java.lang.String label)
label
- A short description of this resource.public java.lang.String getLabel()
public void setTitle(java.lang.String title)
title
- A title denoting this resourcepublic java.lang.String getTitle()
public void setMetadataDate(java.util.Calendar date)
date
- The metadata change date for this resource.public java.util.Calendar getMetadataDate() throws java.io.IOException
java.io.IOException
- If there is an error while converting this property to
a date.public void setModifyDate(java.util.Calendar date)
date
- The modify date for this resource.public java.util.Calendar getModifyDate() throws java.io.IOException
java.io.IOException
- If there is an error while converting this property to
a date.public void setNickname(java.lang.String nickname)
nickname
- A short name of this resource.public java.lang.String getNickname()
public java.lang.Integer getRating()
public void setRating(java.lang.Integer rating)
rating
- A number indicating status relative to other documents.public void setThumbnail(Thumbnail thumbnail)
thumbnail
- The thumbnail of this resource.public Thumbnail getThumbnail()
public void setThumbnail(java.lang.String language, Thumbnail thumbnail)
language
- The language code.thumbnail
- The thumbnail in a specific language.public Thumbnail getThumbnail(java.lang.String language)
language
- The language code to get the description for.
public java.util.List<java.lang.String> getThumbnailLanguages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |