com.guiseframework.component.rdf.maqro
Class AbstractInteractionTreeNodeRepresentationStrategy<V extends com.globalmentor.urf.maqro.Interaction>

java.lang.Object
  extended by com.guiseframework.component.rdf.maqro.AbstractInteractionTreeNodeRepresentationStrategy<V>
Type Parameters:
V - The type of value the strategy is to represent.
Direct Known Subclasses:
InteractionTreeNodeRepresentationStrategy, QuestionTreeNodeRepresentationStrategy

public abstract class AbstractInteractionTreeNodeRepresentationStrategy<V extends com.globalmentor.urf.maqro.Interaction>
extends java.lang.Object

Abstract functionality for a tree node representation strategy representing a MAQRO interaction.

Author:
Garret Wilson

Constructor Summary
AbstractInteractionTreeNodeRepresentationStrategy()
          Default constructor with a default RDF XMLifier.
AbstractInteractionTreeNodeRepresentationStrategy(com.globalmentor.rdf.RDFXMLGenerator rdfXMLifier)
          RDF XMLifier constructor.
 
Method Summary
protected  java.lang.StringBuilder buildLabelText(java.lang.StringBuilder stringBuilder, TreeControl treeControl, TreeModel model, TreeNodeModel<? extends V> treeNode, V value)
          Builds the label to be used for a tree node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInteractionTreeNodeRepresentationStrategy

public AbstractInteractionTreeNodeRepresentationStrategy()
Default constructor with a default RDF XMLifier.


AbstractInteractionTreeNodeRepresentationStrategy

public AbstractInteractionTreeNodeRepresentationStrategy(com.globalmentor.rdf.RDFXMLGenerator rdfXMLifier)
RDF XMLifier constructor.

Parameters:
rdfXMLifier - The RDF XMLifier to use for creating labels.
Throws:
java.lang.NullPointerException - if the given RDF XMLifier is null.
Method Detail

buildLabelText

protected java.lang.StringBuilder buildLabelText(java.lang.StringBuilder stringBuilder,
                                                 TreeControl treeControl,
                                                 TreeModel model,
                                                 TreeNodeModel<? extends V> treeNode,
                                                 V value)
Builds the label to be used for a tree node. This version adds information on the interaction's subject followup evaluation, if any.

Type Parameters:
N - The type of value contained in the node.
Parameters:
stringBuilder - The string builder to hold the label text.
treeControl - The component containing the model.
model - The model containing the value.
treeNode - The node containing the value.
value - The value contained in the node.
Returns:
The string builder used to construct the label.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.