org.ceryle.xnode
Class XNodeMetadataUtils

java.lang.Object
  extended by org.ceryle.xnode.XNodeMetadataUtils

public class XNodeMetadataUtils
extends Object

A class containing static methods used for obtaining XNode metadata. Each method returns a String, or null if the property is unavailable.

These include:

Note 1: The Collection and Node IDs, creation and modification dates are not included, as they are intrinsically handled by the XNode API itself.

Note 2: This uses a Dublin Core UK refinement DC.identifier.version.

Version:
$Id: XNodeMetadataUtils.java,v 3.9 2007-06-16 04:37:13 altheim Exp $
Author:
Murray Altheim

Field Summary
static String REFS_Id
          An identifier for document (bibliographic) reference information ("REFS.Id").
static String REFS_isMetadataRef
          A URI identifier for document (bibliographic) reference information ("http://purl.org/ceryle/xnode/isMetadataRef").
 
Constructor Summary
XNodeMetadataUtils()
           
 
Method Summary
static String getContributor(XNode xnode)
          Returns the DC.Contributor property of the provided XNode.
static String getCreator(XNode xnode)
          Returns the DC.Creator (author) property of the provided XNode.
static String getDescription(XNode xnode)
          Returns the DC.Description property of the provided XNode.
static String getFormat(XNode xnode)
          Returns the DC.Format (MIME or IMT) property of the provided XNode.
static String getIdentifier(XNode xnode)
          Returns the DC.Identifier (system ID, a URI/URL) property of the provided XNode.
static String getIsMetadataReference(XNode xnode)
          Returns the Ceryle metadata reference property of the provided XNode.
static String getReferences(XNode xnode)
          Returns the DCTERMS.references property of the provided XNode.
static String getRevision(XNode xnode)
          Returns the DC.Identifier.version (revision ID) property of the provided XNode.
static String getSource(XNode xnode)
          Returns the DC.Source (a URI/URL) property of the provided XNode.
static String getSubject(XNode xnode)
          Returns the DC.Subject property of the provided XNode.
static String getTitle(XNode xnode)
          Returns the DC.Title property of the provided XNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REFS_Id

public static final String REFS_Id
An identifier for document (bibliographic) reference information ("REFS.Id").

See Also:
Constant Field Values

REFS_isMetadataRef

public static final String REFS_isMetadataRef
A URI identifier for document (bibliographic) reference information ("http://purl.org/ceryle/xnode/isMetadataRef").

See Also:
Constant Field Values
Constructor Detail

XNodeMetadataUtils

public XNodeMetadataUtils()
Method Detail

getTitle

public static String getTitle(XNode xnode)
Returns the DC.Title property of the provided XNode.


getIdentifier

public static String getIdentifier(XNode xnode)
Returns the DC.Identifier (system ID, a URI/URL) property of the provided XNode.


getSource

public static String getSource(XNode xnode)
Returns the DC.Source (a URI/URL) property of the provided XNode.


getCreator

public static String getCreator(XNode xnode)
Returns the DC.Creator (author) property of the provided XNode.


getContributor

public static String getContributor(XNode xnode)
Returns the DC.Contributor property of the provided XNode.


getSubject

public static String getSubject(XNode xnode)
Returns the DC.Subject property of the provided XNode. This is a whitespace-separated list of URIs.


getDescription

public static String getDescription(XNode xnode)
Returns the DC.Description property of the provided XNode.


getFormat

public static String getFormat(XNode xnode)
Returns the DC.Format (MIME or IMT) property of the provided XNode.


getRevision

public static String getRevision(XNode xnode)
Returns the DC.Identifier.version (revision ID) property of the provided XNode.


getIsMetadataReference

public static String getIsMetadataReference(XNode xnode)
Returns the Ceryle metadata reference property of the provided XNode. This is a reference to an external document for which this XNode is a metadata record.

See Also:
REFS_isMetadataRef

getReferences

public static String getReferences(XNode xnode)
Returns the DCTERMS.references property of the provided XNode. This is a whitespace-separated list of URIs.

Note that the 's' on the end of the term indicates this as an active verb, not a plural noun.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.