com.guiseframework.component.rdf
Class RDFLiteralTreeNodeRepresentationStrategy

java.lang.Object
  extended by com.guiseframework.component.TreeControl.AbstractTreeNodeRepresentationStrategy<V>
      extended by com.guiseframework.component.rdf.AbstractRDFObjectTreeNodeRepresentationStrategy<com.globalmentor.rdf.RDFLiteral>
          extended by com.guiseframework.component.rdf.RDFLiteralTreeNodeRepresentationStrategy
All Implemented Interfaces:
TreeControl.TreeNodeRepresentationStrategy<com.globalmentor.rdf.RDFLiteral>

public class RDFLiteralTreeNodeRepresentationStrategy
extends AbstractRDFObjectTreeNodeRepresentationStrategy<com.globalmentor.rdf.RDFLiteral>

An tree node representation strategy representing an RDF literal.

Author:
Garret Wilson

Constructor Summary
RDFLiteralTreeNodeRepresentationStrategy()
          Default constructor with a default RDF XMLifier.
RDFLiteralTreeNodeRepresentationStrategy(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 com.globalmentor.rdf.RDFLiteral> treeNode, com.globalmentor.rdf.RDFLiteral value)
          Builds the label to be used for a tree node.
 
Methods inherited from class com.guiseframework.component.rdf.AbstractRDFObjectTreeNodeRepresentationStrategy
createComponent, createInfoModel, getXMLGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFLiteralTreeNodeRepresentationStrategy

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


RDFLiteralTreeNodeRepresentationStrategy

public RDFLiteralTreeNodeRepresentationStrategy(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 com.globalmentor.rdf.RDFLiteral> treeNode,
                                                 com.globalmentor.rdf.RDFLiteral value)
Builds the label to be used for a tree node. This version appends information about the literal.

Overrides:
buildLabelText in class AbstractRDFObjectTreeNodeRepresentationStrategy<com.globalmentor.rdf.RDFLiteral>
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.