org.apache.stanbol.entityhub.servicesapi.query
Class Constraint

java.lang.Object
  extended by org.apache.stanbol.entityhub.servicesapi.query.Constraint
Direct Known Subclasses:
RangeConstraint, SimilarityConstraint, TextConstraint, ValueConstraint

public abstract class Constraint
extends Object

Abstract base class for all types of Constraints.

Author:
Rupert Westenthaler

Nested Class Summary
static class Constraint.ConstraintType
          Defines the enumeration of available Constraints.
 
Constructor Summary
protected Constraint(Constraint.ConstraintType type)
           
 
Method Summary
 Constraint.ConstraintType getType()
          Getter for the type of the constraint.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Constraint

protected Constraint(Constraint.ConstraintType type)
Method Detail

getType

public final Constraint.ConstraintType getType()
Getter for the type of the constraint.

Returns:
The type of the constraint

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.