com.jaspersoft.jasperserver.war.validation
Class QueryValidator

java.lang.Object
  extended by com.jaspersoft.jasperserver.war.validation.QueryValidator
All Implemented Interfaces:
org.springframework.validation.Validator

public class QueryValidator
extends java.lang.Object
implements org.springframework.validation.Validator

Version:
$Id: QueryValidator.java 10178 2007-09-20 13:57:21Z lucian $
Author:
Ionut Nedelcu (ionutned@users.sourceforge.net)

Constructor Summary
QueryValidator()
           
 
Method Summary
 RepositoryService getRepository()
           
 void setRepository(RepositoryService repository)
           
 boolean supports(java.lang.Class klass)
           
 void validate(java.lang.Object object, org.springframework.validation.Errors errors)
           
 void validateNameLabelDesc(QueryWrapper wrapper, org.springframework.validation.Errors errors)
           
 void validateQueryText(QueryWrapper wrapper, org.springframework.validation.Errors errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryValidator

public QueryValidator()
Method Detail

getRepository

public RepositoryService getRepository()

setRepository

public void setRepository(RepositoryService repository)

supports

public boolean supports(java.lang.Class klass)
Specified by:
supports in interface org.springframework.validation.Validator

validate

public void validate(java.lang.Object object,
                     org.springframework.validation.Errors errors)
Specified by:
validate in interface org.springframework.validation.Validator

validateNameLabelDesc

public void validateNameLabelDesc(QueryWrapper wrapper,
                                  org.springframework.validation.Errors errors)

validateQueryText

public void validateQueryText(QueryWrapper wrapper,
                              org.springframework.validation.Errors errors)


Copyright © 2007. All Rights Reserved.