|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.plink.RdfSerializer
public class RdfSerializer
Receives metadata events from a org.ceryle.plink.MetaProcessor to build an output tree. For more extensive documentation see the plink home page.
| Field Summary | |
|---|---|
protected Element |
description
Document element for the current metadata block in the generated XML document. |
protected Hashtable |
descriptions
Hashtable for description objects. |
protected Document |
doc
XML Document used as the generated container of harvested metadata. |
protected String |
documentSystemId
A String containing the system identifier (filename) of the Document. |
protected String |
documentTitle
A String containing the contents of the <title> Element of the Document. |
static String |
PFX_dcmes
A String containing the attribute namespace prefix value for DCMES (default "dc"). |
static String |
PFX_rdf
A String containing the attribute namespace prefix value for RDF (default 'rdf'). |
static String |
XMLNS_rdf
A String containing the XML Namespace URI for the Resource Description Framework (RDF). |
| Constructor Summary | |
|---|---|
RdfSerializer(Services services,
String systemId)
Default Constructor. |
|
| Method Summary | |
|---|---|
void |
about(String uri)
Receives a metadata 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()
This generates the Document by adding necessary document element attributes, and populates it from the enumeration of the Hashtable registry of generated Elements (with no significance to the order). |
protected void |
indent(Element elt,
int level)
Appends a new line following the Element elt. |
void |
meta(String name,
String value,
String schema)
Receives a metadata event as a name value pair about the object referred to by "uriReference". |
protected void |
newline(Element elt)
Appends a new line following the Element elt. |
void |
schema(String prefix,
String uri)
Receives a metadata event indicating the awareness of a new namespace schema whose prefix String is prefix and URI reference uri. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XMLNS_rdf
public static String PFX_rdf
public static String PFX_dcmes
protected Document doc
protected Element description
protected String documentTitle
protected String documentSystemId
protected Hashtable descriptions
| Constructor Detail |
|---|
public RdfSerializer(Services services,
String systemId)
throws ProcessException
ProcessException| Method Detail |
|---|
public Document getHarvestDocument()
getHarvestDocument in interface MetaHandlerpublic void about(String uri)
about in interface MetaHandler
public void schema(String prefix,
String uri)
schema in interface MetaHandler
public void meta(String name,
String value,
String schema)
meta in interface MetaHandlerprotected void newline(Element elt)
protected void indent(Element elt,
int level)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||