org.apache.lenya.cms.metadata.dublincore
Class DublinCoreHelper

java.lang.Object
  extended by org.apache.lenya.cms.metadata.dublincore.DublinCoreHelper

public class DublinCoreHelper
extends java.lang.Object

Helper class to access dublin core meta data.


Constructor Summary
DublinCoreHelper()
           
 
Method Summary
protected static MetaData getDublinCore(MetaDataOwner owner)
           
static java.lang.String getTitle(Document doc, boolean fallbackToUuid)
           
static java.lang.String getTitle(MetaDataOwner owner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DublinCoreHelper

public DublinCoreHelper()
Method Detail

getTitle

public static java.lang.String getTitle(MetaDataOwner owner)
                                 throws MetaDataException
Parameters:
owner - The owner.
Returns:
The dublin core title or null if the title is not set.
Throws:
MetaDataException - if the owner has no dublin core meta data.

getTitle

public static java.lang.String getTitle(Document doc,
                                        boolean fallbackToUuid)
                                 throws MetaDataException
Parameters:
doc - The document.
fallbackToUuid - If the dublin core title is null, the document's UUID is returned.
Returns:
The dublin core title.
Throws:
MetaDataException - if the document has no dublin core meta data.

getDublinCore

protected static MetaData getDublinCore(MetaDataOwner owner)
                                 throws MetaDataException
Throws:
MetaDataException


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.