facets.util.treecode
Class TreeCodeType<T extends TreeCoded>

java.lang.Object
  extended by facets.util.treecode.TreeCodeType<T>
All Implemented Interfaces:
Titled

public abstract class TreeCodeType<T extends TreeCoded>
extends java.lang.Object
implements Titled

Creates TreeCodeds of the type of its name.


Field Summary
 java.lang.String name
           
 
Constructor Summary
TreeCodeType(java.lang.String name)
           
 
Method Summary
abstract  T newCoded(DataNode code, TreeCodeTypes types, TreeCodeContext context)
           
 java.lang.String title()
          Return human-readable identifying text.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
Constructor Detail

TreeCodeType

public TreeCodeType(java.lang.String name)
Method Detail

newCoded

public abstract T newCoded(DataNode code,
                           TreeCodeTypes types,
                           TreeCodeContext context)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

title

public java.lang.String title()
Description copied from interface: Titled
Return human-readable identifying text.

Specified by:
title in interface Titled
Returns:
non-null, non-empty string with no structural whitespace