DefaultQueryTerm
Date: 2013-02-16

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gcube.dir.master.queries
Class DefaultQueryTerm

    java.lang.Object
      org.gcube.dir.master.queries.QueryTerm
          org.gcube.dir.master.queries.DefaultQueryTerm

    public class DefaultQueryTerm

extends QueryTerm

A weighted `Query` term.

Author:
  Fabio Simeoni (University of Strathclyde)

Constructor Summary
`DefaultQueryTerm(java.lang.String name, float weight)` Creates an instance with a given name and weight.

Method Summary
`float` | `getWeight()` Returns the weight of the term.
`void` | `setWeight(float weight)` Sets the weight of the term.

Methods inherited from class org.gcube.dir.master.queries.QueryTerm
`getName, setName`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultQueryTerm

    public DefaultQueryTerm(java.lang.String name,
                            float weight)

  Creates an instance with a given name and weight.

  Parameters:
    `name` - the name.
    `weight` - the weight.

Method Detail

### getWeight

    public float getWeight()

  Returns the weight of the term.

  Returns:
    the weight.

### setWeight

    public void setWeight(float weight)

  Sets the weight of the term.

  Parameters:
    `weight` - the weight.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD