DLESE Tools
v1.6.0

org.dlese.dpc.suggest
Class SuggestionRecord

java.lang.Object
  extended by org.dlese.dpc.suggest.SuggestionRecord
Direct Known Subclasses:
CommentRecord, ResourceRecord

public abstract class SuggestionRecord
extends Object

Wrapper providing accessors for a suggestion record, which is represented as a Document of the framework determined by the SchemaHelper attribute.

Version:
$Id: SuggestionRecord.java,v 1.7 2009/03/20 23:34:00 jweather Exp $
Author:
Jonathan Ostwald

Field Summary
protected  Document doc
          NOT YET DOCUMENTED
protected  DocMap docMap
          NOT YET DOCUMENTED
 
Constructor Summary
SuggestionRecord(Document doc, SchemaHelper schemaHelper)
          Constructor for the SuggestionRecord object
 
Method Summary
protected  String get(String xpath)
          Get the value of the node specified by provided xpath.
 Document getDoc()
          Gets the doc attribute of the SuggestionRecord object
protected  DocMap getDocMap()
          Gets the docMap attribute of the SuggestionRecord object
protected  void put(String xpath, String value)
          Assign the provided value to the XML Node specified by xpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

protected Document doc
NOT YET DOCUMENTED


docMap

protected DocMap docMap
NOT YET DOCUMENTED

Constructor Detail

SuggestionRecord

public SuggestionRecord(Document doc,
                        SchemaHelper schemaHelper)
Constructor for the SuggestionRecord object

Parameters:
doc - a dom4j.Document
schemaHelper - a SchemaHelper for the doc's metadata format
Method Detail

getDoc

public Document getDoc()
Gets the doc attribute of the SuggestionRecord object

Returns:
The doc value

getDocMap

protected DocMap getDocMap()
Gets the docMap attribute of the SuggestionRecord object

Returns:
The docMap value

put

protected void put(String xpath,
                   String value)
            throws Exception
Assign the provided value to the XML Node specified by xpath.

Parameters:
xpath - NOT YET DOCUMENTED
value - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED

get

protected String get(String xpath)
Get the value of the node specified by provided xpath.

Parameters:
xpath - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0