<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.6.0_11) on Wed Jul 20 09:13:57 CDT 2011 --> | |
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<TITLE> | |
ValidatorImpl (OpenJPA Parent POM 2.1.1 API) | |
</TITLE> | |
<META NAME="date" CONTENT="2011-07-20"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
if (location.href.indexOf('is-external=true') == -1) { | |
parent.document.title="ValidatorImpl (OpenJPA Parent POM 2.1.1 API)"; | |
} | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<HR> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ValidatorImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidationUtils.html" title="class in org.apache.openjpa.persistence.validation"><B>PREV CLASS</B></A> | |
NEXT CLASS</FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../index.html?org/apache/openjpa/persistence/validation/ValidatorImpl.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ValidatorImpl.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.openjpa.persistence.validation</FONT> | |
<BR> | |
Class ValidatorImpl</H2> | |
<PRE> | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> | |
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html" title="class in org.apache.openjpa.validation">org.apache.openjpa.validation.AbstractValidator</A> | |
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.openjpa.persistence.validation.ValidatorImpl</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/openjpa/validation/Validator.html" title="interface in org.apache.openjpa.validation">Validator</A></DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <B>ValidatorImpl</B><DT>extends <A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html" title="class in org.apache.openjpa.validation">AbstractValidator</A></DL> | |
</PRE> | |
<P> | |
<HR> | |
<P> | |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#ValidatorImpl()">ValidatorImpl</A></B>()</CODE> | |
<BR> | |
Default constructor.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#ValidatorImpl(org.apache.openjpa.lib.conf.Configuration)">ValidatorImpl</A></B>(<A HREF="../../../../../org/apache/openjpa/lib/conf/Configuration.html" title="interface in org.apache.openjpa.lib.conf">Configuration</A> conf)</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#ValidatorImpl(javax.validation.ValidatorFactory, javax.persistence.ValidationMode)">ValidatorImpl</A></B>(<A HREF="http://java.sun.com/javaee/6/docs/api/javax/validation/ValidatorFactory.html?is-external=true" title="class or interface in javax.validation">ValidatorFactory</A> validatorFactory, | |
<A HREF="http://java.sun.com/javaee/6/docs/api/javax/persistence/ValidationMode.html?is-external=true" title="class or interface in javax.persistence">ValidationMode</A> mode)</CODE> | |
<BR> | |
Type-specific constructor | |
Returns an Exception if a Validator could not be created.</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#addValidationGroup(java.lang.Integer, java.lang.Class...)">addValidationGroup</A></B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> event, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>... validationGroup)</CODE> | |
<BR> | |
Add a validation group for a specified event.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#addValidationGroup(java.lang.String, java.lang.Class...)">addValidationGroup</A></B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> validationGroupName, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>... vgs)</CODE> | |
<BR> | |
Add a validation group for the specific property.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#addValidationGroup(java.lang.String, java.lang.String)">addValidationGroup</A></B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> validationGroupName, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> group)</CODE> | |
<BR> | |
Add the validation group(s) for the specified event.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/javaee/6/docs/api/javax/validation/metadata/BeanDescriptor.html?is-external=true" title="class or interface in javax.validation.metadata">BeanDescriptor</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#getConstraintsForClass(java.lang.Class)">getConstraintsForClass</A></B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</CODE> | |
<BR> | |
Returns the validation constraints for the specified class</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>[]</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#getValidationGroup(java.lang.Integer)">getValidationGroup</A></B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> event)</CODE> | |
<BR> | |
Return the validation groups to be validated for a specified event</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#isValidating(java.lang.Integer)">isValidating</A></B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> event)</CODE> | |
<BR> | |
Returns whether the Validator is validating for the | |
specified event.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> | |
<TR ALIGN="right" VALIGN=""> | |
<TD NOWRAP><FONT SIZE="-1"> | |
<CODE><T> <A HREF="../../../../../org/apache/openjpa/validation/ValidationException.html" title="class in org.apache.openjpa.validation">ValidationException</A></CODE></FONT></TD> | |
</TR> | |
</TABLE> | |
</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#validate(T, int)">validate</A></B>(T arg0, | |
int event)</CODE> | |
<BR> | |
Validates a given instance</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> | |
<TR ALIGN="right" VALIGN=""> | |
<TD NOWRAP><FONT SIZE="-1"> | |
<CODE><T> <A HREF="../../../../../org/apache/openjpa/validation/ValidationException.html" title="class in org.apache.openjpa.validation">ValidationException</A></CODE></FONT></TD> | |
</TR> | |
</TABLE> | |
</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#validateProperty(T, java.lang.String, int)">validateProperty</A></B>(T arg0, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> property, | |
int event)</CODE> | |
<BR> | |
Validates a property of a given instance</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> | |
<TR ALIGN="right" VALIGN=""> | |
<TD NOWRAP><FONT SIZE="-1"> | |
<CODE><T> <A HREF="../../../../../org/apache/openjpa/validation/ValidationException.html" title="class in org.apache.openjpa.validation">ValidationException</A></CODE></FONT></TD> | |
</TR> | |
</TABLE> | |
</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#validateValue(java.lang.Class, java.lang.String, java.lang.Object, int)">validateValue</A></B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> arg0, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> arg1, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> arg2, | |
int event)</CODE> | |
<BR> | |
Validates a value based upon the constraints applied to a given class | |
attribute.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> | |
<TR ALIGN="right" VALIGN=""> | |
<TD NOWRAP><FONT SIZE="-1"> | |
<CODE><T> boolean</CODE></FONT></TD> | |
</TR> | |
</TABLE> | |
</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidatorImpl.html#validating(T, int)">validating</A></B>(T arg0, | |
int event)</CODE> | |
<BR> | |
Returns whether validation is active for the given event.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="ValidatorImpl()"><!-- --></A><H3> | |
ValidatorImpl</H3> | |
<PRE> | |
public <B>ValidatorImpl</B>()</PRE> | |
<DL> | |
<DD>Default constructor. Builds a default validator factory, if available | |
and creates the validator. | |
Returns an Exception if a Validator could not be created. | |
<P> | |
</DL> | |
<HR> | |
<A NAME="ValidatorImpl(org.apache.openjpa.lib.conf.Configuration)"><!-- --></A><H3> | |
ValidatorImpl</H3> | |
<PRE> | |
public <B>ValidatorImpl</B>(<A HREF="../../../../../org/apache/openjpa/lib/conf/Configuration.html" title="interface in org.apache.openjpa.lib.conf">Configuration</A> conf)</PRE> | |
<DL> | |
</DL> | |
<HR> | |
<A NAME="ValidatorImpl(javax.validation.ValidatorFactory, javax.persistence.ValidationMode)"><!-- --></A><H3> | |
ValidatorImpl</H3> | |
<PRE> | |
public <B>ValidatorImpl</B>(<A HREF="http://java.sun.com/javaee/6/docs/api/javax/validation/ValidatorFactory.html?is-external=true" title="class or interface in javax.validation">ValidatorFactory</A> validatorFactory, | |
<A HREF="http://java.sun.com/javaee/6/docs/api/javax/persistence/ValidationMode.html?is-external=true" title="class or interface in javax.persistence">ValidationMode</A> mode)</PRE> | |
<DL> | |
<DD>Type-specific constructor | |
Returns an Exception if a Validator could not be created. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>validatorFactory</CODE> - Instance of validator factory to use. Specify | |
null to use the default factory.<DD><CODE>mode</CODE> - ValdiationMode enum value</DL> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="addValidationGroup(java.lang.String, java.lang.Class...)"><!-- --></A><H3> | |
addValidationGroup</H3> | |
<PRE> | |
public void <B>addValidationGroup</B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> validationGroupName, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>... vgs)</PRE> | |
<DL> | |
<DD>Add a validation group for the specific property. The properties map | |
to a specific lifecycle event. To disable validation for a group, set | |
the validation group to null. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>validationGroupName</CODE> - <DD><CODE>vgs</CODE> - </DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addValidationGroup(java.lang.Integer, java.lang.Class...)"><!-- --></A><H3> | |
addValidationGroup</H3> | |
<PRE> | |
public void <B>addValidationGroup</B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> event, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>... validationGroup)</PRE> | |
<DL> | |
<DD>Add a validation group for a specified event. Event definitions | |
are defined in LifecycleEvent. To disable validation for a group, set | |
the validation group to null. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>event</CODE> - <DD><CODE>validationGroup</CODE> - </DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addValidationGroup(java.lang.String, java.lang.String)"><!-- --></A><H3> | |
addValidationGroup</H3> | |
<PRE> | |
public void <B>addValidationGroup</B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> validationGroupName, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> group)</PRE> | |
<DL> | |
<DD>Add the validation group(s) for the specified event. Event definitions | |
are defined in LifecycleEvent | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>event</CODE> - <DD><CODE>group</CODE> - </DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getValidationGroup(java.lang.Integer)"><!-- --></A><H3> | |
getValidationGroup</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>[] <B>getValidationGroup</B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> event)</PRE> | |
<DL> | |
<DD>Return the validation groups to be validated for a specified event | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>event</CODE> - Lifecycle event id | |
<DT><B>Returns:</B><DD>An array of validation groups</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isValidating(java.lang.Integer)"><!-- --></A><H3> | |
isValidating</H3> | |
<PRE> | |
public boolean <B>isValidating</B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A> event)</PRE> | |
<DL> | |
<DD>Returns whether the Validator is validating for the | |
specified event. Based on whether validation groups are specified for | |
the event. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>event</CODE> - the event to check for validation | |
<DT><B>Returns:</B><DD>returns true if validating for this particular event</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getConstraintsForClass(java.lang.Class)"><!-- --></A><H3> | |
getConstraintsForClass</H3> | |
<PRE> | |
public <A HREF="http://java.sun.com/javaee/6/docs/api/javax/validation/metadata/BeanDescriptor.html?is-external=true" title="class or interface in javax.validation.metadata">BeanDescriptor</A> <B>getConstraintsForClass</B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</PRE> | |
<DL> | |
<DD>Returns the validation constraints for the specified class | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>cls</CODE> - Class for which constraints to return | |
<DT><B>Returns:</B><DD>The validation bean descriptor</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="validate(java.lang.Object,int)"><!-- --></A><A NAME="validate(T, int)"><!-- --></A><H3> | |
validate</H3> | |
<PRE> | |
public <T> <A HREF="../../../../../org/apache/openjpa/validation/ValidationException.html" title="class in org.apache.openjpa.validation">ValidationException</A> <B>validate</B>(T arg0, | |
int event)</PRE> | |
<DL> | |
<DD>Validates a given instance | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html#validate(T, int)">validate</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html" title="interface in org.apache.openjpa.validation">Validator</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html#validate(T, int)">validate</A></CODE> in class <CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html" title="class in org.apache.openjpa.validation">AbstractValidator</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - The instance to validate<DT><B>Parameters:</B><DD><CODE>arg0</CODE> - The class, of type T to validate<DD><CODE>event</CODE> - The event id | |
<DT><B>Returns:</B><DD>ValidationException if the validator produces one or more | |
constraint violations.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="validateProperty(java.lang.Object,java.lang.String,int)"><!-- --></A><A NAME="validateProperty(T, java.lang.String, int)"><!-- --></A><H3> | |
validateProperty</H3> | |
<PRE> | |
public <T> <A HREF="../../../../../org/apache/openjpa/validation/ValidationException.html" title="class in org.apache.openjpa.validation">ValidationException</A> <B>validateProperty</B>(T arg0, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> property, | |
int event)</PRE> | |
<DL> | |
<DD>Validates a property of a given instance | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html#validateProperty(T, java.lang.String, int)">validateProperty</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html" title="interface in org.apache.openjpa.validation">Validator</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html#validateProperty(T, java.lang.String, int)">validateProperty</A></CODE> in class <CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html" title="class in org.apache.openjpa.validation">AbstractValidator</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - The instance to validate<DT><B>Parameters:</B><DD><CODE>arg0</CODE> - The property to validate<DD><CODE>property</CODE> - The property to validate<DD><CODE>event</CODE> - The event id | |
<DT><B>Returns:</B><DD>ValidationException if the validator produces one or more | |
constraint violations.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="validateValue(java.lang.Class, java.lang.String, java.lang.Object, int)"><!-- --></A><H3> | |
validateValue</H3> | |
<PRE> | |
public <T> <A HREF="../../../../../org/apache/openjpa/validation/ValidationException.html" title="class in org.apache.openjpa.validation">ValidationException</A> <B>validateValue</B>(<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> arg0, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> arg1, | |
<A HREF="http://java.sun.com/j2se/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> arg2, | |
int event)</PRE> | |
<DL> | |
<DD>Validates a value based upon the constraints applied to a given class | |
attribute. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html#validateValue(java.lang.Class, java.lang.String, java.lang.Object, int)">validateValue</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html" title="interface in org.apache.openjpa.validation">Validator</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html#validateValue(java.lang.Class, java.lang.String, java.lang.Object, int)">validateValue</A></CODE> in class <CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html" title="class in org.apache.openjpa.validation">AbstractValidator</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - The instance type to base validation upon<DT><B>Parameters:</B><DD><CODE>arg0</CODE> - The class of type T to validate<DD><CODE>arg1</CODE> - The property to validate<DD><CODE>arg2</CODE> - The property value to validate<DD><CODE>event</CODE> - The event id | |
<DT><B>Returns:</B><DD>ValidationException if the validator produces one or more | |
constraint violations.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="validating(java.lang.Object,int)"><!-- --></A><A NAME="validating(T, int)"><!-- --></A><H3> | |
validating</H3> | |
<PRE> | |
public <T> boolean <B>validating</B>(T arg0, | |
int event)</PRE> | |
<DL> | |
<DD>Returns whether validation is active for the given event. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html#validating(T, int)">validating</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/openjpa/validation/Validator.html" title="interface in org.apache.openjpa.validation">Validator</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html#validating(T, int)">validating</A></CODE> in class <CODE><A HREF="../../../../../org/apache/openjpa/validation/AbstractValidator.html" title="class in org.apache.openjpa.validation">AbstractValidator</A></CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Type Parameters:</B><DD><CODE>T</CODE> - <DT><B>Parameters:</B><DD><CODE>arg0</CODE> - Type being validated<DD><CODE>event</CODE> - event type | |
<DT><B>Returns:</B><DD>true if validation is active for the specified event</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ValidatorImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../org/apache/openjpa/persistence/validation/ValidationUtils.html" title="class in org.apache.openjpa.persistence.validation"><B>PREV CLASS</B></A> | |
NEXT CLASS</FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../index.html?org/apache/openjpa/persistence/validation/ValidatorImpl.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="ValidatorImpl.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
Copyright © 2006-2011 <a href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved. | |
</BODY> | |
</HTML> |