|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.publication.DublinCoreProxy
public class DublinCoreProxy
A proxy to the dublin core meta implementation so that meta data is only read from file when it is actually requested.
Field Summary |
---|
Constructor Summary | |
---|---|
DublinCoreProxy(Document aDocument)
Creates a new instance of Dublin Core |
Method Summary | |
---|---|
void |
addValue(java.lang.String key,
java.lang.String value)
Adds a value for a certain key. |
void |
addValues(java.lang.String key,
java.lang.String[] values)
Add all values for a certain key. |
java.lang.String |
getCreator()
Get the creator |
java.lang.String |
getDateCreated()
Get the date of creation |
java.lang.String |
getDateIssued()
Get the date of issue |
java.lang.String |
getDescription()
Get the description |
java.lang.String |
getFirstValue(java.lang.String key)
Returns the first value for a certain key. |
java.lang.String |
getIdentifier()
Get the identifier |
java.lang.String |
getIsReferencedBy()
Get isReferencedBy |
java.lang.String |
getPublisher()
Get the publisher |
java.lang.String |
getRights()
Get the rights |
java.lang.String |
getSubject()
Get the subject. |
java.lang.String |
getTitle()
Get the title |
java.lang.String[] |
getValues(java.lang.String key)
Returns the values for a certain key. |
protected DublinCoreImpl |
instance()
Instanciate a dublin core implementation object |
void |
removeAllValues(java.lang.String key)
Removes all values for a certain key. |
void |
removeValue(java.lang.String key,
java.lang.String value)
Removes a specific value for a certain key. |
void |
replaceBy(DublinCore other)
Replace the contents of the current dublin core by the contents of other. |
void |
save()
Save the meta data. |
void |
setCreator(java.lang.String creator)
Set the DC creator |
void |
setDateCreated(java.lang.String dateCreated)
Set the date of creation |
void |
setDateIssued(java.lang.String dateIssued)
Set the date of issue |
void |
setDescription(java.lang.String description)
Set the DC Description |
void |
setIdentifier(java.lang.String identifier)
Set the DC Identifier |
void |
setIsReferencedBy(java.lang.String isReferencedBy)
Set isReferencedBy |
void |
setPublisher(java.lang.String publisher)
Set the publisher |
void |
setRights(java.lang.String rights)
Set the DC Rights |
void |
setSubject(java.lang.String subject)
Set the DC Subject |
void |
setTitle(java.lang.String title)
Set the DC title |
void |
setValue(java.lang.String key,
java.lang.String value)
Sets the value for a certain key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DublinCoreProxy(Document aDocument)
aDocument
- the document for which the Dublin Core instance is created.Method Detail |
---|
protected DublinCoreImpl instance() throws DocumentException
DocumentException
- when an error occurs.public java.lang.String getCreator() throws DocumentException
DublinCore
getCreator
in interface DublinCore
DocumentException
- if an error occursDublinCore.getCreator()
public java.lang.String getDateCreated() throws DocumentException
DublinCore
getDateCreated
in interface DublinCore
DocumentException
- if an error occursDublinCore.getDateCreated()
public java.lang.String getDateIssued() throws DocumentException
DublinCore
getDateIssued
in interface DublinCore
DocumentException
- if an error occursDublinCore.getDateIssued()
public java.lang.String getDescription() throws DocumentException
DublinCore
getDescription
in interface DublinCore
DocumentException
- if an error occursDublinCore.getDescription()
public java.lang.String getIdentifier() throws DocumentException
DublinCore
getIdentifier
in interface DublinCore
DocumentException
- if an error occursDublinCore.getIdentifier()
public java.lang.String getPublisher() throws DocumentException
DublinCore
getPublisher
in interface DublinCore
DocumentException
- if an error occursDublinCore.getPublisher()
public java.lang.String getRights() throws DocumentException
DublinCore
getRights
in interface DublinCore
DocumentException
- if an error occursDublinCore.getRights()
public java.lang.String getIsReferencedBy() throws DocumentException
DublinCore
getIsReferencedBy
in interface DublinCore
DocumentException
- if an error occursDublinCore.getIsReferencedBy()
public java.lang.String getSubject() throws DocumentException
DublinCore
getSubject
in interface DublinCore
DocumentException
- if an error occursDublinCore.getSubject()
public java.lang.String getTitle() throws DocumentException
DublinCore
getTitle
in interface DublinCore
DocumentException
- if an error occursDublinCore.getTitle()
public void setCreator(java.lang.String creator) throws DocumentException
DublinCore
setCreator
in interface DublinCore
creator
- the Creator
DocumentException
- if an error occursDublinCore.setCreator(java.lang.String)
public void setDateCreated(java.lang.String dateCreated) throws DocumentException
DublinCore
setDateCreated
in interface DublinCore
dateCreated
- the date of creation
DocumentException
- if an error occursDublinCore.setDateCreated(java.lang.String)
public void setDateIssued(java.lang.String dateIssued) throws DocumentException
DublinCore
setDateIssued
in interface DublinCore
dateIssued
- the date of issue
DocumentException
- if an error occursDublinCore.setDateIssued(java.lang.String)
public void setDescription(java.lang.String description) throws DocumentException
DublinCore
setDescription
in interface DublinCore
description
- the description
DocumentException
- if an error occursDublinCore.setDescription(java.lang.String)
public void setIdentifier(java.lang.String identifier) throws DocumentException
DublinCore
setIdentifier
in interface DublinCore
identifier
- the identifier
DocumentException
- if an error occursDublinCore.setIdentifier(java.lang.String)
public void setPublisher(java.lang.String publisher) throws DocumentException
DublinCore
setPublisher
in interface DublinCore
publisher
- the publisher
DocumentException
- if an error occursDublinCore.setPublisher(java.lang.String)
public void setRights(java.lang.String rights) throws DocumentException
DublinCore
setRights
in interface DublinCore
rights
- the rights
DocumentException
- if an error occursDublinCore.setRights(java.lang.String)
public void setIsReferencedBy(java.lang.String isReferencedBy) throws DocumentException
DublinCore
setIsReferencedBy
in interface DublinCore
isReferencedBy
- isReferencedBy
DocumentException
- if an error occursDublinCore.setIsReferencedBy(java.lang.String)
public void setSubject(java.lang.String subject) throws DocumentException
DublinCore
setSubject
in interface DublinCore
subject
- the subject
DocumentException
- if an error occursDublinCore.setSubject(java.lang.String)
public void setTitle(java.lang.String title) throws DocumentException
DublinCore
setTitle
in interface DublinCore
title
- the title
DocumentException
- if an error occursDublinCore.setTitle(java.lang.String)
public void save() throws DocumentException
DublinCore
save
in interface DublinCore
DocumentException
- if the meta data could not be made persistent.DublinCore.save()
public java.lang.String[] getValues(java.lang.String key) throws DocumentException
DublinCore
getValues
in interface DublinCore
key
- The key.
DocumentException
- when something went wrong.DublinCore.getValues(java.lang.String)
public java.lang.String getFirstValue(java.lang.String key) throws DocumentException
DublinCore
getFirstValue
in interface DublinCore
key
- The key.
null
if no value is set for this key.
DocumentException
- if an error occurs.DublinCore.getFirstValue(java.lang.String)
public void addValue(java.lang.String key, java.lang.String value) throws DocumentException
DublinCore
addValue
in interface DublinCore
key
- The key.value
- The value to add.
DocumentException
- when something went wrong.DublinCore.addValue(java.lang.String, java.lang.String)
public void removeValue(java.lang.String key, java.lang.String value) throws DocumentException
DublinCore
removeValue
in interface DublinCore
key
- The key.value
- The value to remove.
DocumentException
- when something went wrong.DublinCore.removeValue(java.lang.String, java.lang.String)
public void removeAllValues(java.lang.String key) throws DocumentException
DublinCore
removeAllValues
in interface DublinCore
key
- The key.
DocumentException
- when something went wrong.DublinCore.removeAllValues(java.lang.String)
public void replaceBy(DublinCore other) throws DocumentException
DublinCore
replaceBy
in interface DublinCore
other
- The other dublin core object.
DocumentException
- if an error occurs.DublinCore.replaceBy(org.apache.lenya.cms.publication.DublinCore)
public void addValues(java.lang.String key, java.lang.String[] values) throws DocumentException
DublinCore
addValues
in interface DublinCore
key
- The keyvalues
- The value to add
DocumentException
- if something went wrongDublinCore.addValues(java.lang.String, java.lang.String[])
public void setValue(java.lang.String key, java.lang.String value) throws DocumentException
DublinCore
setValue
in interface DublinCore
key
- The key.value
- The value to set.
DocumentException
- when something went wrong.DublinCore.setValue(java.lang.String, java.lang.String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |