fleXplorer.Facets
Class Facet<Type extends FacetsType>

java.lang.Object
  extended by fleXplorer.Facets.Facet<Type>
All Implemented Interfaces:
IFacet<Type>

public class Facet<Type extends FacetsType>
extends java.lang.Object
implements IFacet<Type>

Version:
1.1
Author:
Nikos Armenatzoglou

Constructor Summary
Facet()
          Constructs a Facet.
Facet(java.lang.String name)
          Constructs a Facet with specified name
Preconditions: Argument must not be null.
Facet(java.lang.String name, Taxonomy<Type> taxonomy, IndexType type)
          Constructs a Facet with specified name and Taxonomy.
 
Method Summary
 java.lang.String getFacetName()
          Returns the name of Facet.
 Taxonomy<?> getFacetTaxonomy()
          Returns Taxonomy of Facet.
 IndexType getIndexType()
          Returns the type of indexes of the Facet.
 void setFacetName(java.lang.String name)
          Define the name of Facet.
 void setFacetTaxonomy(Taxonomy<?> taxonomy)
          Defines the Taxonomy of Facet.
 void setIndexType(IndexType type)
          Define the type of indexes of the Facet.
 java.lang.String toString()
          Returns the string representation of facet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Facet

public Facet()
Constructs a Facet.
Preconditions: Always true
Postconditions: Constructs a Facet.


Facet

public Facet(java.lang.String name)
Constructs a Facet with specified name
Preconditions: Argument must not be null.
PostconditionsL: Constructs a Facet and defines as value of the private variable name the value of argument name.

Parameters:
name - the name of Facet.

Facet

public Facet(java.lang.String name,
             Taxonomy<Type> taxonomy,
             IndexType type)
Constructs a Facet with specified name and Taxonomy.
Preconditions: Arguments must not be null.
Postconditions: Constructs a Facet and defines and gives to private variables the values of arguments.

Parameters:
name - the name of Facet.
taxonomy - the Taxonomy of Facet.
Method Detail

setIndexType

public void setIndexType(IndexType type)
Define the type of indexes of the Facet.
Preconditions: Facet and argument must not be null.
Postconditions: Defines the type of the facet as the value of argument.

Specified by:
setIndexType in interface IFacet<Type extends FacetsType>
Parameters:
type - the type of indexes.

getIndexType

public IndexType getIndexType()
Returns the type of indexes of the Facet.
Preconditions: Always true.
Postconditions: Returns the value of private variable type.

Specified by:
getIndexType in interface IFacet<Type extends FacetsType>
Returns:
the type of the indexes of the Facet.

setFacetName

public void setFacetName(java.lang.String name)
Define the name of Facet.
Preconditions: Facet and argument must not be null.
Postconditions: Defines Facet's name as the value of argument.

Specified by:
setFacetName in interface IFacet<Type extends FacetsType>
Parameters:
name - Name of Facet.

getFacetName

public java.lang.String getFacetName()
Returns the name of Facet.
Preconditions: Always true.
Postconditions: Returns the value of private variable name.

Specified by:
getFacetName in interface IFacet<Type extends FacetsType>
Returns:
the name of Facet.

setFacetTaxonomy

public void setFacetTaxonomy(Taxonomy<?> taxonomy)
Defines the Taxonomy of Facet.
Preconditions: Facet, taxonomy of Facet and argument must not be null.
Postconditions: Defines Facet's taxonomy as the value of the argument.

Specified by:
setFacetTaxonomy in interface IFacet<Type extends FacetsType>
Parameters:
taxonomy - the new Taxonomy of Facet.

getFacetTaxonomy

public Taxonomy<?> getFacetTaxonomy()
Returns Taxonomy of Facet.
Preconditions: Facet must not be null.
Postconditions: Returns the value of private variable tx.

Specified by:
getFacetTaxonomy in interface IFacet<Type extends FacetsType>
Returns:
Taxonomy of Facet.

toString

public java.lang.String toString()
Returns the string representation of facet.

Overrides:
toString in class java.lang.Object