Package org.dlese.dpc.suggest
Class SuggestionRecord
java.lang.Object
org.dlese.dpc.suggest.SuggestionRecord
- Direct Known Subclasses:
CommentRecord,ResourceRecord
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSuggestionRecord(org.dom4j.Document doc, SchemaHelper schemaHelper) Constructor for the SuggestionRecord object -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the value of the node specified by provided xpath.org.dom4j.DocumentgetDoc()Gets the doc attribute of the SuggestionRecord objectprotected DocMapGets the docMap attribute of the SuggestionRecord objectprotected voidAssign the provided value to the XML Node specified by xpath.
-
Field Details
-
doc
protected org.dom4j.Document docNOT YET DOCUMENTED -
docMap
NOT YET DOCUMENTED
-
-
Constructor Details
-
SuggestionRecord
Constructor for the SuggestionRecord object- Parameters:
doc- a dom4j.DocumentschemaHelper- a SchemaHelper for the doc's metadata format
-
-
Method Details
-
getDoc
public org.dom4j.Document getDoc()Gets the doc attribute of the SuggestionRecord object- Returns:
- The doc value
-
getDocMap
Gets the docMap attribute of the SuggestionRecord object- Returns:
- The docMap value
-
put
Assign the provided value to the XML Node specified by xpath.- Parameters:
xpath- NOT YET DOCUMENTEDvalue- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
get
Get the value of the node specified by provided xpath.- Parameters:
xpath- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-