commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r825376 [2/2] - in /commons/sandbox/validator2/branches/alternative: ./ src/ src/assembly/ src/site/ validation-api/ validation-api/src/ validation-api/src/main/ validation-api/src/main/java/ validation-api/src/main/java/javax/ validation-a...
Date Thu, 15 Oct 2009 02:22:06 GMT
Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidationProviderResolver.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidationProviderResolver.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidationProviderResolver.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidationProviderResolver.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation;
+
+import java.util.List;
+
+import javax.validation.spi.ValidationProvider;
+
+/**
+ * Validation Provider Resolver.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ValidationProviderResolver {
+
+    List<ValidationProvider<?>> getValidationProviders();
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidationProviderResolver.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidationProviderResolver.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/Validator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/Validator.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/Validator.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/Validator.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation;
+
+import java.util.Set;
+
+import javax.validation.metadata.BeanDescriptor;
+
+/**
+ * Validator.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface Validator {
+
+    BeanDescriptor getConstraintsForClass(Class<?> type);
+
+    <T> T unwrap(Class<T> type);
+
+    <T> Set<ConstraintViolation<T>> validate(T object, Class<?>... groups);
+
+    <T> Set<ConstraintViolation<T>> validateProperty(T object, String name, Class<?>... groups);
+
+    <T> Set<ConstraintViolation<T>> validateValue(Class<T> beanType, String name, Object value, Class<?>... groups);
+
+}
+

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/Validator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/Validator.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorContext.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorContext.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorContext.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorContext.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation;
+
+/**
+ * ValidatorContext.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ValidatorContext {
+
+    ValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory);
+
+    Validator getValidator();
+
+    ValidatorContext messageInterpolator(MessageInterpolator messageInterpolator);
+
+    ValidatorContext traversableResolver(TraversableResolver traversableResolver);
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorContext.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorContext.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorFactory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorFactory.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorFactory.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorFactory.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation;
+
+/**
+ * Validator Factory.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ValidatorFactory {
+
+    ConstraintValidatorFactory getConstraintValidatorFactory();
+
+    MessageInterpolator getMessageInterpolator();
+
+    TraversableResolver getTraversableResolver();
+
+    Validator getValidator();
+
+    <T> T unwrap(Class<T> type);
+
+    ValidatorContext usingContext();
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/ValidatorFactory.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/GenericBootstrap.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/GenericBootstrap.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/GenericBootstrap.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/GenericBootstrap.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.bootstrap;
+
+import javax.validation.Configuration;
+import javax.validation.ValidationProviderResolver;
+
+/**
+ * Generic Bootstrap.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface GenericBootstrap {
+
+    Configuration<?> configure();
+
+    GenericBootstrap providerResolver(ValidationProviderResolver resolver);
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/GenericBootstrap.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/GenericBootstrap.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.bootstrap;
+
+import javax.validation.Configuration;
+import javax.validation.ValidationProviderResolver;
+
+/**
+ * Provider Specific Bootstrap.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ProviderSpecificBootstrap<T extends Configuration<T>> {
+
+    T configure();
+
+    ProviderSpecificBootstrap<T> providerResolver(ValidationProviderResolver resolver);
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertFalse.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertFalse.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertFalse.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertFalse.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Assert False Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface AssertFalse {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.AssertFalse.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    /**
+     * Assert False Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        AssertFalse[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertFalse.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertFalse.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertTrue.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertTrue.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertTrue.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertTrue.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Assert True Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface AssertTrue {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.AssertTrue.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    /**
+     * Assert True Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        AssertTrue[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertTrue.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/AssertTrue.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMax.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMax.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMax.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMax.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Decimal Max Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface DecimalMax {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.DecimalMax.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    String value();
+
+    /**
+     * Decimal Max Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        DecimalMax[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMax.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMax.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMin.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMin.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMin.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMin.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Decimal Min Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface DecimalMin {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.DecimalMin.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    String value();
+
+    /**
+     * Decimal Min Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        DecimalMin[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/DecimalMin.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Digits.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Digits.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Digits.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Digits.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Digits Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Digits {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Digits.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    int fraction();    
+
+    int integer();
+
+    /**
+     * Digits Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Digits[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Digits.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Digits.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Future.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Future.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Future.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Future.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Future Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Future {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Future.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    /**
+     * Future Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Future[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Future.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Future.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Max.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Max.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Max.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Max.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Max Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Max {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Max.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    long value();
+
+    /**
+     * Max Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Max[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Max.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Max.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Min.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Min.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Min.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Min.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Min Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Min {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Min.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    long value();
+
+    /**
+     * Min Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Min[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Min.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Min.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/NotNull.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/NotNull.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/NotNull.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/NotNull.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Not Null Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface NotNull {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.NotNull.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    /**
+     * Not Null Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        NotNull[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/NotNull.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/NotNull.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Null.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Null.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Null.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Null.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Null Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Null {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Null.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    /**
+     * Null Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Null[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Null.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Null.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Past.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Past.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Past.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Past.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Past Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Past {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Past.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    /**
+     * Past Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Past[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Past.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Past.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Pattern.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Pattern.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Pattern.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Pattern.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Pattern Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Pattern {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Pattern.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    Flag[] flags() default {};
+
+    String regexp();
+
+    /**
+     * Regular expression flag values.
+     */
+    public static enum Flag {
+
+        CANON_EQ(java.util.regex.Pattern.CANON_EQ),        
+        CASE_INSENSITIVE(java.util.regex.Pattern.CASE_INSENSITIVE),
+        COMMENTS(java.util.regex.Pattern.COMMENTS),
+        DOTALL(java.util.regex.Pattern.DOTALL),
+        MULTILINE(java.util.regex.Pattern.MULTILINE),
+        UNICODE_CASE(java.util.regex.Pattern.UNICODE_CASE),
+        UNIX_LINES(java.util.regex.Pattern.UNIX_LINES);
+
+        private final int value;
+
+        private Flag(int value) {
+            this.value = value;
+        }
+        public int getValue() {
+            return value;
+        }
+    }
+
+    /**
+     * Pattern Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Pattern[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Pattern.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Pattern.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Size.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Size.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Size.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Size.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.constraints;
+
+import java.lang.annotation.Documented;
+import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
+import static java.lang.annotation.ElementType.CONSTRUCTOR;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.validation.Constraint;
+import javax.validation.Payload;
+
+/**
+ * Size Constraint.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+@Constraint(validatedBy={})
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+public @interface Size {
+
+    Class<?>[] groups() default {};
+
+    String message() default "{javax.validation.constraints.Size.message}";
+
+    Class<? extends Payload>[] payload() default {};
+
+    int min() default 0;
+
+    int max() default Integer.MAX_VALUE;
+
+    /**
+     * Size Constraint List.
+     */
+    @Documented
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, METHOD, PARAMETER})
+    public @interface List {
+
+        Size[] value();
+
+    }
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Size.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/constraints/Size.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/groups/Default.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/groups/Default.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/groups/Default.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/groups/Default.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.groups;
+
+/**
+ * Default validation group.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface Default {
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/groups/Default.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/groups/Default.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.metadata;
+
+import java.util.Set;
+
+/**
+ * Bean Descriptor.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface BeanDescriptor extends ElementDescriptor {
+
+    Set<PropertyDescriptor> getConstrainedProperties();
+
+    PropertyDescriptor getConstraintsForProperty(String propertyName);
+
+    boolean isBeanConstrained();
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/BeanDescriptor.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ConstraintDescriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ConstraintDescriptor.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ConstraintDescriptor.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ConstraintDescriptor.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.metadata;
+
+import java.lang.annotation.Annotation;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import javax.validation.ConstraintValidator;
+import javax.validation.Payload;
+
+/**
+ * Constraint Descriptor.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ConstraintDescriptor<T extends Annotation> {
+
+    T getAnnotation();
+
+    Map<String, Object> getAttributes();
+
+    Set<ConstraintDescriptor<?>> getComposingConstraints();
+
+    List<Class<? extends ConstraintValidator<T, ?>>> getConstraintValidatorClasses();
+
+    Set<Class<?>> getGroups();
+
+    Set<Class<? extends Payload>> getPayload();
+
+    boolean isReportAsSingleViolation();
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ConstraintDescriptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ConstraintDescriptor.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ElementDescriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ElementDescriptor.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ElementDescriptor.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ElementDescriptor.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.metadata;
+
+import java.lang.annotation.ElementType;
+import java.util.Set;
+
+/**
+ * Element Descriptor.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ElementDescriptor {
+
+    ConstraintFinder findConstraints();
+
+    Set<ConstraintDescriptor<?>> getConstraintDescriptors();
+
+    Class<?> getElementClass();
+
+    boolean hasConstraints();
+
+    /**
+     * Constraint Finder.
+     */
+    interface ConstraintFinder {
+
+        ConstraintFinder declaredOn(ElementType... types);
+
+        Set<ConstraintDescriptor<?>> getConstraintDescriptors();
+
+        boolean hasConstraints();
+
+        ConstraintFinder lookingAt(Scope scope);
+
+        ConstraintFinder unorderedAndMatchingGroups(Class<?>... groups);
+
+    }
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ElementDescriptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/ElementDescriptor.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/PropertyDescriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/PropertyDescriptor.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/PropertyDescriptor.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/PropertyDescriptor.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.metadata;
+
+/**
+ * Property Descriptor.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface PropertyDescriptor extends ElementDescriptor {
+
+    String getPropertyName();
+
+    boolean isCascaded();
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/PropertyDescriptor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/PropertyDescriptor.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/Scope.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/Scope.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/Scope.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/Scope.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.metadata;
+
+/**
+ * Scope.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public enum Scope {
+
+    HIERARCHY,
+
+    LOCAL_ELEMENT
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/Scope.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/metadata/Scope.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/BootstrapState.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/BootstrapState.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/BootstrapState.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/BootstrapState.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.spi;
+
+import javax.validation.ValidationProviderResolver;
+
+/**
+ * Bootstrap State.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface BootstrapState {
+
+    ValidationProviderResolver getDefaultValidationProviderResolver();
+
+    ValidationProviderResolver getValidationProviderResolver();
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/BootstrapState.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/BootstrapState.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ConfigurationState.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ConfigurationState.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ConfigurationState.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ConfigurationState.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.spi;
+
+import java.io.InputStream;
+import java.util.Map;
+import java.util.Set;
+
+import javax.validation.ConstraintValidatorFactory;
+import javax.validation.MessageInterpolator;
+import javax.validation.TraversableResolver;
+
+/**
+ * Configuration State.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ConfigurationState {
+
+    ConstraintValidatorFactory getConstraintValidatorFactory();
+
+    Set<InputStream> getMappingStreams();
+
+    MessageInterpolator getMessageInterpolator();
+
+    Map<String, String> getProperties();
+
+    TraversableResolver getTraversableResolver();
+
+    boolean isIgnoreXmlConfiguration();
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ConfigurationState.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ConfigurationState.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ValidationProvider.java
URL: http://svn.apache.org/viewvc/commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ValidationProvider.java?rev=825376&view=auto
==============================================================================
--- commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ValidationProvider.java (added)
+++ commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ValidationProvider.java Thu Oct 15 02:22:04 2009
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.validation.spi;
+
+import javax.validation.Configuration;
+import javax.validation.ValidatorFactory;
+
+/**
+ * ValidationProvider.
+ *
+ * @version $Revision$ $Date$
+ * @since 1.0
+ */
+public interface ValidationProvider <T extends Configuration<T>> {
+
+    ValidatorFactory buildValidatorFactory(ConfigurationState state);
+
+    Configuration<?> createGenericConfiguration(BootstrapState state);
+
+    T createSpecializedConfiguration(BootstrapState state);
+
+}

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ValidationProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/sandbox/validator2/branches/alternative/validation-api/src/main/java/javax/validation/spi/ValidationProvider.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL



Mime
View raw message