org.ceryle.plink
Interface MetaHandler

All Known Implementing Classes:
RdfSerializer

public interface MetaHandler

An interface for a processor receiving document metadata events from an org.ceryle.plink.MetaProcessor to build an output tree. For more extensive documentation see the plink home page.

Since:
JDK1.3
Version:
$Id: MetaHandler.java,v 3.3 2007-06-15 12:09:28 altheim Exp $
Author:
Murray Altheim

Method Summary
 void about(String uri)
          Receives an event indicating the beginning of a new metadata node, with the value of the uri reference indicating the resource to which this metadata is associated.
 Document getHarvestDocument()
          Returns the Document generated by the harvested metadata events.
 void meta(String name, String value, String schema)
          Receives a metadata event as a name/value pair about the current object.
 void schema(String prefix, String uri)
          Receives an event indicating the awareness of a new namespace schema whose prefix String is prefix and URI reference uri.
 

Method Detail

getHarvestDocument

Document getHarvestDocument()
Returns the Document generated by the harvested metadata events. The markup language is not specified except as some type of XML document. If never set, null is returned.

Returns:
an XML document

about

void about(String uri)
Receives an event indicating the beginning of a new metadata node, with the value of the uri reference indicating the resource to which this metadata is associated. The processor supporting this must keep track of previously-declared references to the same resource, so that all metadata associated with a specific resource is merged together.


schema

void schema(String prefix,
            String uri)
Receives an event indicating the awareness of a new namespace schema whose prefix String is prefix and URI reference uri.


meta

void meta(String name,
          String value,
          String schema)
Receives a metadata event as a name/value pair about the current object. The String schema is a prefix reference to an existing schema namespace. Validation of this should be done by the processor sending this event.



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