info.aduna.clustermap
Interface Classification

All Known Implementing Classes:
DefaultClassification, QueryResult

public interface Classification

A Classification defines a named set of objects. A Classification can be part of a hierarchy of Classifications.


Method Summary
 boolean contains(Object object)
          Returns whether this Classification contains the specified Object.
 Collection<? extends Classification> getChildren()
          Returns the child Classifications, if any.
 String getName()
          Returns the symbolic name of this Classification.
 Collection<?> getObjects()
          Returns the set of objects classified by this Classification.
 Classification getParent()
          Returns the parent Classification, if any.
 int getSize()
          Returns the number of objects classified by this Classification.
 

Method Detail

getName

String getName()
Returns the symbolic name of this Classification.


getObjects

Collection<?> getObjects()
Returns the set of objects classified by this Classification.


getSize

int getSize()
Returns the number of objects classified by this Classification.


getParent

Classification getParent()
Returns the parent Classification, if any.


getChildren

Collection<? extends Classification> getChildren()
Returns the child Classifications, if any.


contains

boolean contains(Object object)
Returns whether this Classification contains the specified Object. For fast containment checking this method is preferred over retrieving the entire Collection of objects and performing the test on that Collection.



Copyright © 1997-2008 Aduna. All Rights Reserved.