org.apache.lenya.cms.metadata.dublincore
Class DublinCoreHelper
java.lang.Object
org.apache.lenya.cms.metadata.dublincore.DublinCoreHelper
public class DublinCoreHelper
- extends java.lang.Object
Helper class to access dublin core meta data.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DublinCoreHelper
public DublinCoreHelper()
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.