geronimo-validation-1.0-spec-1.1.orig/0000755000000000000000000000000011400543467014377 5ustar geronimo-validation-1.0-spec-1.1.orig/src/0000755000000000000000000000000011400543466015165 5ustar geronimo-validation-1.0-spec-1.1.orig/src/test/0000755000000000000000000000000011400543466016144 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/0000755000000000000000000000000011400543466016111 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/resources/0000755000000000000000000000000011400543466020123 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/java/0000755000000000000000000000000011400543466017032 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/0000755000000000000000000000000011400543466020143 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/0000755000000000000000000000000011400543466022275 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/GroupDefinitionException.java0000644000000000000000000000236611247535247030142 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public class GroupDefinitionException extends ValidationException { public GroupDefinitionException(String message) { super(message); } public GroupDefinitionException() { super(); } public GroupDefinitionException(String message, Throwable cause) { super(message, cause); } public GroupDefinitionException(Throwable cause) { super(cause); } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintViolationException.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintViolationException.ja0000644000000000000000000000275611265147604030516 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public class ConstraintViolationException extends ValidationException { private final Set> constraintViolations; public ConstraintViolationException(String message, Set> constraintViolations) { super(message); this.constraintViolations = constraintViolations; } public ConstraintViolationException(Set> constraintViolations) { super(); this.constraintViolations = constraintViolations; } public Set> getConstraintViolations() { return constraintViolations; } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ValidatorFactory.java0000644000000000000000000000222511265147604026421 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ValidatorFactory { Validator getValidator(); ValidatorContext usingContext(); MessageInterpolator getMessageInterpolator(); TraversableResolver getTraversableResolver(); ConstraintValidatorFactory getConstraintValidatorFactory(); public T unwrap(Class type); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/GroupSequence.java0000644000000000000000000000217211247535247025736 0ustar /* * 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 static java.lang.annotation.ElementType.TYPE; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; /** * @version $Rev$ $Date$ */ @Target({ TYPE }) @Retention(RUNTIME) public @interface GroupSequence { Class[] value(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/spi/0000755000000000000000000000000011400543466023070 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/spi/ConfigurationState.java0000644000000000000000000000260311247535247027553 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ConfigurationState { boolean isIgnoreXmlConfiguration(); MessageInterpolator getMessageInterpolator(); Set getMappingStreams(); ConstraintValidatorFactory getConstraintValidatorFactory(); TraversableResolver getTraversableResolver(); Map getProperties(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/spi/ValidationProvider.java0000644000000000000000000000231611247535247027551 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ValidationProvider> { T createSpecializedConfiguration(BootstrapState state); Configuration createGenericConfiguration(BootstrapState state); ValidatorFactory buildValidatorFactory(ConfigurationState configurationState); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/spi/BootstrapState.java0000644000000000000000000000210011247535247026711 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface BootstrapState { ValidationProviderResolver getValidationProviderResolver(); ValidationProviderResolver getDefaultValidationProviderResolver(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ValidationException.java0000644000000000000000000000233211247535247027120 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public class ValidationException extends RuntimeException { public ValidationException(String message) { super(message); } public ValidationException() { super(); } public ValidationException(String message, Throwable cause) { super(message, cause); } public ValidationException(Throwable cause) { super(cause); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/Constraint.java0000644000000000000000000000242711247535247025300 0ustar /* * 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.lang.annotation.Documented; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import java.lang.annotation.Annotation; /** * @version $Rev$ $Date$ */ @Documented @Target({ ANNOTATION_TYPE }) @Retention(RUNTIME) public @interface Constraint { public Class>[] validatedBy(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/Path.java0000644000000000000000000000203711247535247024045 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface Path extends Iterable { interface Node { String getName(); boolean isInIterable(); Integer getIndex(); Object getKey(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/OverridesAttribute.java0000644000000000000000000000265611247535247027006 0ustar /* * 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.lang.annotation.Annotation; import java.lang.annotation.Documented; import static java.lang.annotation.ElementType.METHOD; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; /** * @version $Rev$ $Date$ */ @Retention(RUNTIME) @Target({ METHOD }) public @interface OverridesAttribute { Class constraint(); String name(); int constraintIndex() default -1; @Documented @Target({ METHOD }) @Retention(RUNTIME) public @interface List { OverridesAttribute[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/groups/0000755000000000000000000000000011400543466023614 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/groups/Default.java0000644000000000000000000000157711247535247026064 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface Default { } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/bootstrap/0000755000000000000000000000000011400543466024312 5ustar ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/bootstrap/GenericBootstrap.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/bootstrap/GenericBootstrap.java0000644000000000000000000000212611265147604030433 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface GenericBootstrap { GenericBootstrap providerResolver(ValidationProviderResolver resolver); Configuration configure(); } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/bootstrap/ProviderSpecificBoots0000644000000000000000000000222611265147604030511 0ustar /* * 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.spi.ValidationProvider; import javax.validation.ValidationProviderResolver; public interface ProviderSpecificBootstrap> { public ProviderSpecificBootstrap providerResolver(ValidationProviderResolver resolver); public T configure(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintValidator.java0000644000000000000000000000206611265147604027141 0ustar /* * 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.lang.annotation.Annotation; /** * @version $Rev$ $Date$ */ public interface ConstraintValidator { void initialize(A constraintAnnotation); boolean isValid(T value, ConstraintValidatorContext context); } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintValidatorContext.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintValidatorContext.java0000644000000000000000000000371611265147604030511 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ConstraintValidatorContext { void disableDefaultConstraintViolation(); String getDefaultConstraintMessageTemplate(); ConstraintViolationBuilder buildConstraintViolationWithTemplate(String messageTemplate); interface ConstraintViolationBuilder { NodeBuilderDefinedContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); interface NodeBuilderDefinedContext { NodeBuilderCustomizableContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); } interface NodeBuilderCustomizableContext { NodeContextBuilder inIterable(); NodeBuilderCustomizableContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); } interface NodeContextBuilder { NodeBuilderDefinedContext atKey(Object key); NodeBuilderDefinedContext atIndex(Integer index); NodeBuilderCustomizableContext addNode(String name); ConstraintValidatorContext addConstraintViolation(); } } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/UnexpectedTypeException.java0000644000000000000000000000247011247535247027777 0ustar /* * 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; /** * @see javax.validation.ConstraintDeclarationException * * @version $Rev$ $Date$ */ public class UnexpectedTypeException extends ConstraintDeclarationException { public UnexpectedTypeException(String message) { super(message); } public UnexpectedTypeException() { super(); } public UnexpectedTypeException(String message, Throwable cause) { super(message, cause); } public UnexpectedTypeException(Throwable cause) { super(cause); } } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ValidationProviderResolver.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ValidationProviderResolver.java0000644000000000000000000000201511247535247030474 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ValidationProviderResolver { List> getValidationProviders(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/Configuration.java0000644000000000000000000000275311265147604025761 0ustar /* * 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.io.InputStream; /** * @version $Rev$ $Date$ */ public interface Configuration> { T ignoreXmlConfiguration(); T messageInterpolator(MessageInterpolator interpolator); T traversableResolver(TraversableResolver resolver); T constraintValidatorFactory(ConstraintValidatorFactory constraintValidatorFactory); T addMapping(InputStream stream); T addProperty(String name, String value); MessageInterpolator getDefaultMessageInterpolator(); TraversableResolver getDefaultTraversableResolver(); ConstraintValidatorFactory getDefaultConstraintValidatorFactory(); ValidatorFactory buildValidatorFactory(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/Valid.java0000644000000000000000000000245111247535247024210 0ustar /* * 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 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) public @interface Valid { } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/Validator.java0000644000000000000000000000260311247535247025075 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface Validator { Set> validate(T object, Class... groups); Set> validateProperty(T object, String propertyName, Class... groups); Set> validateValue(Class beanType, String propertyName, Object value, Class... groups); BeanDescriptor getConstraintsForClass(Class clazz); public T unwrap(Class type); } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintDeclarationException.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintDeclarationException.0000644000000000000000000000242411227665057030461 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public class ConstraintDeclarationException extends ValidationException { public ConstraintDeclarationException(String message) { super(message); } public ConstraintDeclarationException() { super(); } public ConstraintDeclarationException(String message, Throwable cause) { super(message, cause); } public ConstraintDeclarationException(Throwable cause) { super(cause); } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintDefinitionException.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintDefinitionException.j0000644000000000000000000000241711247535247030477 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public class ConstraintDefinitionException extends ValidationException { public ConstraintDefinitionException(String message) { super(message); } public ConstraintDefinitionException() { super(); } public ConstraintDefinitionException(String message, Throwable cause) { super(message, cause); } public ConstraintDefinitionException(Throwable cause) { super(cause); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ReportAsSingleViolation.java0000644000000000000000000000220211247535247027731 0ustar /* * 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 static java.lang.annotation.ElementType.ANNOTATION_TYPE; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; /** * @version $Rev$ $Date$ */ @Target({ ANNOTATION_TYPE }) @Retention(RUNTIME) public @interface ReportAsSingleViolation { } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/0000755000000000000000000000000011400543466024055 5ustar ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/PropertyDescriptor.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/PropertyDescriptor.jav0000644000000000000000000000173711247535247030461 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface PropertyDescriptor extends ElementDescriptor { boolean isCascaded(); String getPropertyName(); } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/ConstraintDescriptor.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/ConstraintDescriptor.j0000644000000000000000000000266611247535247030434 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ConstraintDescriptor { T getAnnotation(); Set> getGroups(); Set> getPayload(); List>> getConstraintValidatorClasses(); Map getAttributes(); Set> getComposingConstraints(); boolean isReportAsSingleViolation(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/Scope.java0000644000000000000000000000162311327350772025777 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public enum Scope { LOCAL_ELEMENT, HIERARCHY } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/ElementDescriptor.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/ElementDescriptor.java0000644000000000000000000000266211327350772030362 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ElementDescriptor { boolean hasConstraints(); Class getElementClass(); Set> getConstraintDescriptors(); ConstraintFinder findConstraints(); interface ConstraintFinder { ConstraintFinder unorderedAndMatchingGroups(Class... groups); ConstraintFinder lookingAt(Scope scope); ConstraintFinder declaredOn(ElementType... types); Set> getConstraintDescriptors(); boolean hasConstraints(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/metadata/BeanDescriptor.java0000644000000000000000000000213311247535247027632 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface BeanDescriptor extends ElementDescriptor { boolean isBeanConstrained(); PropertyDescriptor getConstraintsForProperty(String propertyName); Set getConstrainedProperties(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintViolation.java0000644000000000000000000000230211247535247027155 0ustar /* * 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 javax.validation.metadata.ConstraintDescriptor; /** * @version $Rev$ $Date$ */ public interface ConstraintViolation { String getMessage(); String getMessageTemplate(); T getRootBean(); Class getRootBeanClass(); Object getLeafBean(); Path getPropertyPath(); Object getInvalidValue(); ConstraintDescriptor getConstraintDescriptor(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/MessageInterpolator.java0000644000000000000000000000234611247535247027143 0ustar /* * 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.Locale; import javax.validation.metadata.ConstraintDescriptor; /** * @version $Rev$ $Date$ */ public interface MessageInterpolator { String interpolate(String messageTemplate, Context context); String interpolate(String messageTemplate, Context context, Locale locale); interface Context { ConstraintDescriptor getConstraintDescriptor(); Object getValidatedValue(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/Payload.java0000644000000000000000000000171311247535247024542 0ustar /* * 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; /** * Non-portable implementation specific way to provide metadata to constraints. * * @version $Rev$ $Date$ */ public interface Payload { } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/0000755000000000000000000000000011400543466024644 5ustar geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Future.java0000644000000000000000000000355711247535247027002 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Future { String message() default "{javax.validation.constraints.Future.message}"; Class[] groups() default {}; Class[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Future[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Past.java0000644000000000000000000000355111247535247026431 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Past { String message() default "{javax.validation.constraints.Past.message}"; Class[] groups() default {}; Class[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Past[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Pattern.java0000644000000000000000000000502311247535247027133 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Pattern { String regexp(); Flag[] flags() default {}; String message() default "{javax.validation.constraints.Pattern.message}"; Class[] groups() default {}; Class[] payload() default {}; public static enum Flag { UNIX_LINES(java.util.regex.Pattern.UNIX_LINES), CASE_INSENSITIVE(java.util.regex.Pattern.CASE_INSENSITIVE), COMMENTS(java.util.regex.Pattern.COMMENTS), MULTILINE(java.util.regex.Pattern.MULTILINE), DOTALL(java.util.regex.Pattern.DOTALL), UNICODE_CASE(java.util.regex.Pattern.UNICODE_CASE), CANON_EQ(java.util.regex.Pattern.CANON_EQ); private final int value; private Flag(int value) { this.value = value; } public int getValue() { return value; } } @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Pattern[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/NotNull.java0000644000000000000000000000356211247535247027117 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface NotNull { String message() default "{javax.validation.constraints.NotNull.message}"; Class[] groups() default {}; Class[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { NotNull[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Size.java0000644000000000000000000000365511247535247026441 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Size { String message() default "{javax.validation.constraints.Size.message}"; Class[] groups() default {}; Class[] payload() default {}; int min() default 0; int max() default Integer.MAX_VALUE; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Size[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Max.java0000644000000000000000000000357111247535247026251 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Max { String message() default "{javax.validation.constraints.Max.message}"; Class[] groups() default {}; Class[] payload() default {}; long value(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Max[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Min.java0000644000000000000000000000357111247535247026247 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Min { String message() default "{javax.validation.constraints.Min.message}"; Class[] groups() default {}; Class[] payload() default {}; long value(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Min[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/AssertTrue.java0000644000000000000000000000357211247535247027626 0ustar /* * 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.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.CONSTRUCTOR; import static java.lang.annotation.ElementType.PARAMETER; import java.lang.annotation.Retention; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface AssertTrue { String message() default "{javax.validation.constraints.AssertTrue.message}"; Class[] groups() default {}; Class[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { AssertTrue[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Null.java0000644000000000000000000000355111247535247026434 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Null { String message() default "{javax.validation.constraints.Null.message}"; Class[] groups() default {}; Class[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Null[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/DecimalMax.java0000644000000000000000000000362011247535247027523 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface DecimalMax { String message() default "{javax.validation.constraints.DecimalMax.message}"; Class[] groups() default {}; Class[] payload() default {}; String value(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { DecimalMax[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/DecimalMin.java0000644000000000000000000000362011247535247027521 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface DecimalMin { String message() default "{javax.validation.constraints.DecimalMin.message}"; Class[] groups() default {}; Class[] payload() default {}; String value(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { DecimalMin[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/Digits.java0000644000000000000000000000363011247535247026743 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface Digits { String message() default "{javax.validation.constraints.Digits.message}"; Class[] groups() default {}; Class[] payload() default {}; int integer(); int fraction(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { Digits[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/constraints/AssertFalse.java0000644000000000000000000000357611247535247027745 0ustar /* * 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 static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Target; import javax.validation.Constraint; import javax.validation.Payload; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) public @interface AssertFalse { String message() default "{javax.validation.constraints.AssertFalse.message}"; Class[] groups() default {}; Class[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER }) @Retention(RUNTIME) @Documented @interface List { AssertFalse[] value(); } } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ValidatorContext.java0000644000000000000000000000223511327347637026446 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ValidatorContext { ValidatorContext messageInterpolator(MessageInterpolator messageInterpolator); ValidatorContext traversableResolver(TraversableResolver traversableResolver); ValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory); Validator getValidator(); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/Validation.java0000644000000000000000000002304511350204263025227 0ustar /* * 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.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.ArrayList; import java.util.Collection; import java.util.Enumeration; import java.util.List; import java.util.Map; import java.util.WeakHashMap; import javax.validation.bootstrap.GenericBootstrap; import javax.validation.bootstrap.ProviderSpecificBootstrap; import javax.validation.spi.BootstrapState; import javax.validation.spi.ValidationProvider; import org.apache.geronimo.osgi.locator.ProviderLocator; /** * Note: From Section 4.4.5 Validation of the 1.0 PFD Spec - Validation * implementations may only provide the following three public static methods: * buildDefaultValidatorFactory(), byDefaultProvider(), byProvider() * * @version $Rev$ $Date$ */ public class Validation { public static ValidatorFactory buildDefaultValidatorFactory() { return byDefaultProvider().configure().buildValidatorFactory(); } public static GenericBootstrap byDefaultProvider() { return new GenericBootstrapImpl(); } public static , U extends ValidationProvider> ProviderSpecificBootstrap byProvider(Class providerType) { return new ProviderSpecificBootstrapImpl(providerType); } /* * (non-Javadoc) See Section 4.4.5 Validation - Must be private * * Geronimo implementation specific code. */ private static class ProviderSpecificBootstrapImpl, U extends ValidationProvider> implements ProviderSpecificBootstrap { private final Class providerClass; private ValidationProviderResolver vpResolver; /* * (non-Javadoc) * * @see javax.validation.bootstrap.ProviderSpecificBootstrap#ProviderSpecificBootstrap(Class) */ public ProviderSpecificBootstrapImpl(Class validationProviderClass) { providerClass = validationProviderClass; } /* * (non-Javadoc) * * @see javax.validation.bootstrap.ProviderSpecificBootstrap#providerResolver(javax.validation.ValidationProviderResolver) */ public ProviderSpecificBootstrap providerResolver(ValidationProviderResolver resolver) { vpResolver = resolver; return this; } /* * (non-Javadoc) * * @see javax.validation.bootstrap.ProviderSpecificBootstrap#configure() */ public T configure() { if (providerClass == null) throw new ValidationException("No resolver provided"); // create a default resolver if not supplied by providerResolver() GenericBootstrapImpl impl = new GenericBootstrapImpl(); if ( vpResolver == null ) vpResolver = impl.getDefaultValidationProviderResolver(); else impl.providerResolver(vpResolver); // check each provider discovered by the resolver for (ValidationProvider vProvider : vpResolver.getValidationProviders()) { if (providerClass.isAssignableFrom(vProvider.getClass())) { // Create a ValidationProvider from the above bootstrap impl // and configurationType return providerClass.cast(vProvider).createSpecializedConfiguration(impl); } } // throw a Spec required exception throw new ValidationException("No provider found for " + providerClass); } } /* * (non-Javadoc) See Section 4.4.5 Validation - Must be private * * Geronimo implementation specific code. */ private static class GenericBootstrapImpl implements GenericBootstrap, BootstrapState { private ValidationProviderResolver vpDefaultResolver; private ValidationProviderResolver vpResolver; /* * (non-Javadoc) * * @see javax.validation.bootstrap.GenericBootstrap#providerResolver(javax.validation.ValidationProviderResolver) */ public GenericBootstrap providerResolver(ValidationProviderResolver resolver) { vpResolver = resolver; return this; } /* * (non-Javadoc) * * @see javax.validation.spi.BootstrapState#getValidationProviderResolver() */ public ValidationProviderResolver getValidationProviderResolver() { return vpResolver; } /* * (non-Javadoc) * * @see javax.validation.spi.BootstrapState#getDefaultValidationProviderResolver() */ public ValidationProviderResolver getDefaultValidationProviderResolver() { if (vpDefaultResolver == null) vpDefaultResolver = new DefaultValidationProviderResolver(); return vpDefaultResolver; } /* * (non-Javadoc) * * @see javax.validation.bootstrap.GenericBootstrap#configure() */ public Configuration configure() { ValidationProviderResolver resolv = vpResolver; try { if (resolv == null) resolv = getDefaultValidationProviderResolver(); return resolv.getValidationProviders().get(0).createGenericConfiguration(this); } catch (Exception e) { throw new ValidationException("Could not create Configuration.", e); } } } /* * (non-Javadoc) See Section 4.4.5 Validation - Must be private * * Geronimo implementation specific code. */ private static class DefaultValidationProviderResolver implements ValidationProviderResolver { // cache of providers per class loader private volatile WeakHashMap>> providerCache = new WeakHashMap>>(); /* * (non-Javadoc) * * @see javax.validation.ValidationProviderResolver#getValidationProviders() */ public List> getValidationProviders() { List> providers; // get our class loader ClassLoader cl = PrivClassLoader.get(null); if (cl == null) cl = PrivClassLoader.get(DefaultValidationProviderResolver.class); // use any previously cached providers providers = providerCache.get(cl); if (providers == null) { // need to discover and load them for this class loader providers = new ArrayList>(); try { List serviceProviders = ProviderLocator.getServices(ValidationProvider.class.getName(), this.getClass(), cl); for (Object provider : serviceProviders) { // create an instance to return providers.add((ValidationProvider) provider); } } catch (ClassNotFoundException e) { throw new ValidationException("Failed to load provider", e); } catch (InstantiationException e) { throw new ValidationException("Failed to instantiate provider", e); } catch (IllegalAccessException e) { throw new ValidationException("Failed to access provider", e); } catch (ClassCastException e) { throw new ValidationException("Invalid provider definition", e); } catch (Exception e) { throw new ValidationException("Failed to instantiate provider", e); } // cache the discovered providers providerCache.put(cl, providers); } // caller must handle the case of no providers found return providers; } private static class PrivClassLoader implements PrivilegedAction { private final Class c; public static ClassLoader get(Class c) { final PrivClassLoader action = new PrivClassLoader(c); if (System.getSecurityManager() != null) return AccessController.doPrivileged(action); else return action.run(); } private PrivClassLoader(Class c) { this.c = c; } public ClassLoader run() { if (c != null) return c.getClassLoader(); else return Thread.currentThread().getContextClassLoader(); } } } } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootgeronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintValidatorFactory.javageronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/ConstraintValidatorFactory.java0000644000000000000000000000172311247535247030474 0ustar /* * 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; /** * @version $Rev$ $Date$ */ public interface ConstraintValidatorFactory { > T getInstance(Class key); } geronimo-validation-1.0-spec-1.1.orig/src/main/java/javax/validation/TraversableResolver.java0000644000000000000000000000246011265147604027141 0ustar /* * 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.lang.annotation.ElementType; /** * @version $Rev$ $Date$ */ public interface TraversableResolver { boolean isReachable(Object traversableObject, Path.Node traversableProperty, Class rootBeanType, Path pathToTraversableObject, ElementType elementType); boolean isCascadable(Object traversableObject, Path.Node traversableProperty, Class rootBeanType, Path pathToTraversableObject, ElementType elementType); } geronimo-validation-1.0-spec-1.1.orig/LICENSE0000644000000000000000000002613711261174172015413 0ustar Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed 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. geronimo-validation-1.0-spec-1.1.orig/NOTICE0000644000000000000000000000031511323633367015305 0ustar Apache Geronimo JSR-303 Bean Validation Spec API Copyright 2009, 2010 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). geronimo-validation-1.0-spec-1.1.orig/pom.xml0000644000000000000000000001025611364017000015704 0ustar 4.0.0 org.apache.geronimo.genesis genesis-java5-flava 2.0 org.apache.geronimo.specs geronimo-validation_1.0_spec 1.1 bundle Apache Geronimo JSR-303 Bean Validation Spec API Apache Geronimo implementation of the JSR-303 Bean Validation Spec API http://geronimo.apache.org/maven/${siteId}/${version} apache-website ${site.deploy.url}/maven/${siteId}/${version} specs/${artifactId} scm:svn:http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-validation_1.0_spec-1.1 scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-validation_1.0_spec-1.1 http://svn.apache.org/viewcvs.cgi/geronimo/specs/tags/geronimo-validation_1.0_spec-1.1 org.apache.geronimo.specs geronimo-osgi-locator 1.0 provided org.apache.maven.plugins maven-eclipse-plugin true org.apache.felix maven-bundle-plugin ${groupId}.${artifactId};singleton=true JSR-303 Bean Validation API Sun Microsystems, Inc. 1.0 javax.validation*;version=1.0 org.apache.geronimo.osgi.registry.api;resolution:=optional,* org.apache.geronimo.osgi.locator org.apache.geronimo.osgi.locator.Activator