org.carrot2.filter.trc.carrot.filter.cluster
Class ClusterWrapper

java.lang.Object
  extended by org.carrot2.filter.trc.carrot.filter.cluster.ClusterWrapper

public class ClusterWrapper
extends Object

Wrapper for clustering results (collection of clusters) to produce Carrot-XML


Field Summary
(package private)  Cluster[] clusters
           
(package private)  Element root
           
 
Constructor Summary
ClusterWrapper(Cluster[] clusters)
          Construct a wrapper for a set of clusters
ClusterWrapper(Cluster[] clusters, Element root)
          Construct a wrapper for a set of clusters under given element
 
Method Summary
 Element asElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clusters

Cluster[] clusters

root

Element root
Constructor Detail

ClusterWrapper

public ClusterWrapper(Cluster[] clusters)
Construct a wrapper for a set of clusters

Parameters:
clusters -

ClusterWrapper

public ClusterWrapper(Cluster[] clusters,
                      Element root)
Construct a wrapper for a set of clusters under given element

Parameters:
clusters - set of clusters
root - DOM4J element under which cluster elements will be exported
Method Detail

asElement

public Element asElement()


Copyright (c) Dawid Weiss, Stanislaw Osinski