org.hibernate.search.engine.spi
Class DepthValidator

java.lang.Object
  extended by org.hibernate.search.engine.spi.DepthValidator

public class DepthValidator
extends Object

Used to check the constraints of depth when using IndexedEmbedded or ContainedIn annotations.

Author:
Davide D'Alto

Constructor Summary
DepthValidator(int maxDepth)
           
 
Method Summary
 int getDepth()
           
 void increaseDepth()
           
 boolean isMaxDepthInfinite()
           
 boolean isMaxDepthReached()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DepthValidator

public DepthValidator(int maxDepth)
Method Detail

getDepth

public int getDepth()

increaseDepth

public void increaseDepth()

isMaxDepthReached

public boolean isMaxDepthReached()

isMaxDepthInfinite

public boolean isMaxDepthInfinite()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved