com.guiseframework.model.rdf.maqro
Class AbstractGroupTreeNodeModel<V extends com.globalmentor.urf.maqro.Group>

java.lang.Object
  extended by com.guiseframework.model.rdf.maqro.AbstractInteractionTreeNodeModel<V>
      extended by com.guiseframework.model.rdf.maqro.AbstractGroupTreeNodeModel<V>
Type Parameters:
V - The type of value contained in the tree node.
Direct Known Subclasses:
GroupTreeNodeModel

public abstract class AbstractGroupTreeNodeModel<V extends com.globalmentor.urf.maqro.Group>
extends AbstractInteractionTreeNodeModel<V>

Abstract functionality for a tree node model that represents a group.

Author:
Garret Wilson

Constructor Summary
AbstractGroupTreeNodeModel(java.lang.Class<V> valueClass)
          Value class constructor with no initial value.
AbstractGroupTreeNodeModel(java.lang.Class<V> valueClass, com.globalmentor.urf.maqro.FollowupEvaluation followupEvaluation, V initialValue)
          Property and initial value constructor.
AbstractGroupTreeNodeModel(java.lang.Class<V> valueClass, V initialValue)
          Initial value constructor.
 
Method Summary
protected  AbstractRDFResourceTreeNodeModel createRDFResourceTreeNode(com.globalmentor.rdf.RDFResource rdfProperty, com.globalmentor.rdf.RDFResource rdfResource)
          Creates a child node to represent a property object resource and optional property.
protected  java.util.List<TreeNodeModel<?>> determineChildren()
          Dynamically determines children.
protected  boolean determineLeaf()
          Dynamically determines whether this node is a leaf.
 
Methods inherited from class com.guiseframework.model.rdf.maqro.AbstractInteractionTreeNodeModel
getFollowupEvaluation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGroupTreeNodeModel

public AbstractGroupTreeNodeModel(java.lang.Class<V> valueClass)
Value class constructor with no initial value.

Parameters:
valueClass - The class indicating the type of value held in the model.

AbstractGroupTreeNodeModel

public AbstractGroupTreeNodeModel(java.lang.Class<V> valueClass,
                                  V initialValue)
Initial value constructor.

Parameters:
valueClass - The class indicating the type of value held in the model.
initialValue - The initial value, which will not be validated.

AbstractGroupTreeNodeModel

public AbstractGroupTreeNodeModel(java.lang.Class<V> valueClass,
                                  com.globalmentor.urf.maqro.FollowupEvaluation followupEvaluation,
                                  V initialValue)
Property and initial value constructor.

Parameters:
valueClass - The class indicating the type of value held in the model.
followupEvaluation - The followup evaluation which considers this interaction a followup in this context, or null if there is no followup evaluation subject in this context.
initialValue - The initial value, which will not be validated.
Method Detail

determineLeaf

protected boolean determineLeaf()
Dynamically determines whether this node is a leaf. This version determines if there is one or more child interactions.

Returns:
Whether this node should be considered a leaf with no children.

determineChildren

protected java.util.List<TreeNodeModel<?>> determineChildren()
Dynamically determines children. This version includes child interactions.

Returns:
The dynamically loaded list of children.

createRDFResourceTreeNode

protected AbstractRDFResourceTreeNodeModel createRDFResourceTreeNode(com.globalmentor.rdf.RDFResource rdfProperty,
                                                                     com.globalmentor.rdf.RDFResource rdfResource)
Creates a child node to represent a property object resource and optional property. This version returns a GroupTreeNodeModel for a Group. This version returns a QuestionTreeNodeModel for a Question. All other resource types will result in a default RDF tree node model being returned.

Parameters:
rdfProperty - The property of which the object is a resource, or null if this object should not be considered the object of any property.
rdfResource - The resource to represent in the new node.
Returns:
A child node to represent the given property object resource.


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