index
int64
0
0
repo_id
stringlengths
9
205
file_path
stringlengths
31
246
content
stringlengths
1
12.2M
__index_level_0__
int64
0
10k
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/Validator.java
/* * 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.executable.ExecutableValidator; import javax.validation.metadata.BeanDescriptor; import java.util.Set; /** * @version $Rev$ $Date$ */ public interface Validator { <T> Set<ConstraintViolation<T>> validate(T object, Class<?>... groups); <T> Set<ConstraintViolation<T>> validateProperty(T object, String propertyName, Class<?>... groups); <T> Set<ConstraintViolation<T>> validateValue(Class<T> beanType, String propertyName, Object value, Class<?>... groups); BeanDescriptor getConstraintsForClass(Class<?> clazz); <T> T unwrap(Class<T> type); /** @since 1.1 */ ExecutableValidator forExecutables(); }
500
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/OverridesAttribute.java
/* * 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 java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @version $Rev$ $Date$ */ @Retention(RUNTIME) @Target({ METHOD }) @Documented @Repeatable(OverridesAttribute.List.class) public @interface OverridesAttribute { Class<? extends Annotation> constraint(); String name() default ""; int constraintIndex() default -1; @Documented @Target({ METHOD }) @Retention(RUNTIME) @interface List { OverridesAttribute[] value(); } }
501
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/Configuration.java
/* * 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; import javax.validation.valueextraction.ValueExtractor; /** * @version $Rev$ $Date$ */ public interface Configuration<T extends Configuration<T>> { 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(); /** @since 1.1 */ T parameterNameProvider(ParameterNameProvider parameterNameProvider); /** @since 1.1 */ ParameterNameProvider getDefaultParameterNameProvider(); /** @since 1.1 */ BootstrapConfiguration getBootstrapConfiguration(); /** @since 2.0 */ T clockProvider(ClockProvider clockProvider); /** @since 2.0 */ T addValueExtractor(ValueExtractor<?> extractor); /** @since 2.0 */ ClockProvider getDefaultClockProvider(); }
502
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/NoProviderFoundException.java
/* * 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; /** * @since 2.0 */ @SuppressWarnings("serial") public class NoProviderFoundException extends ValidationException { public NoProviderFoundException(String message) { super(message); } public NoProviderFoundException() { super(); } public NoProviderFoundException(String message, Throwable cause) { super(message, cause); } public NoProviderFoundException(Throwable cause) { super(cause); } }
503
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ReportAsSingleViolation.java
/* * 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.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; /** * @version $Rev$ $Date$ */ @Target({ ANNOTATION_TYPE }) @Retention(RUNTIME) @Documented public @interface ReportAsSingleViolation { }
504
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ValidatorContext.java
/* * 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.valueextraction.ValueExtractor; /** * @version $Rev$ $Date$ */ public interface ValidatorContext { ValidatorContext messageInterpolator(MessageInterpolator messageInterpolator); ValidatorContext traversableResolver(TraversableResolver traversableResolver); ValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory); Validator getValidator(); /** @since 1.1 */ ValidatorContext parameterNameProvider(ParameterNameProvider parameterNameProvider); /** @since 2.0 */ ValidatorContext clockProvider(ClockProvider clockProvider); /** @since 2.0 */ ValidatorContext addValueExtractor(ValueExtractor<?> extractor); }
505
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/Valid.java
/* * 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.Retention; import java.lang.annotation.Target; import java.lang.annotation.Documented; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented public @interface Valid { }
506
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintValidator.java
/* * 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<A extends Annotation, T> { default void initialize(A constraintAnnotation) { } boolean isValid(T value, ConstraintValidatorContext context); }
507
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/MessageInterpolator.java
/* * 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; import java.util.Locale; /** * @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(); /** @since 1.1 */ <T> T unwrap(Class<T> type); } }
508
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/BootstrapConfiguration.java
/* * 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.executable.ExecutableType; import java.util.Map; import java.util.Set; /** @since 1.1 */ public interface BootstrapConfiguration { String getDefaultProviderClassName(); String getConstraintValidatorFactoryClassName(); String getMessageInterpolatorClassName(); String getTraversableResolverClassName(); String getParameterNameProviderClassName(); Set<String> getConstraintMappingResourcePaths(); boolean isExecutableValidationEnabled(); Set<ExecutableType> getDefaultValidatedExecutableTypes(); Map<String, String> getProperties(); /** @since 2.0 */ String getClockProviderClassName(); /** @since 2.0 */ Set<String> getValueExtractorClassNames(); }
509
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ParameterNameProvider.java
/* * 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.reflect.Constructor; import java.lang.reflect.Method; import java.util.List; /** @since 1.1 */ public interface ParameterNameProvider { List<String> getParameterNames(Constructor<?> constructor); List<String> getParameterNames(Method method); }
510
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ClockProvider.java
/* * 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.time.Clock; /** * @since 2.0 */ public interface ClockProvider { Clock getClock(); }
511
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/Constraint.java
/* * 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 java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Meta annotation to declare a constraint annotation. * * Every custom constraint annotation meta-annotated with this very annotation must implement the following fields: * <ul> * <li>{@code String message()} - the message to be used if this constraint is violated.</li> * <li>{@code Class<?>[] groups() default {};} - the validation group. See {@link GroupSequence}. * If a constraint gets applied without any specific group then {@link javax.validation.groups.Default} is assumed. * </li> * <li>{@code Class<? extends Payload>[] payload() default {};} - Custom {@link Payload} for the contstraint.</li> * </ul> * * @see javax.validation.constraints Built in Constraints * * @version $Rev$ $Date$ */ @Documented @Target({ ANNOTATION_TYPE }) @Retention(RUNTIME) public @interface Constraint { /** * @return the {@link ConstraintValidator} which gets used when this constraint is applied * to fields, methods (getters), types or parameter. */ Class<? extends ConstraintValidator<?,?>>[] validatedBy(); }
512
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintViolation.java
/* * 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<T> { String getMessage(); String getMessageTemplate(); T getRootBean(); Class<T> getRootBeanClass(); Object getLeafBean(); Path getPropertyPath(); Object getInvalidValue(); ConstraintDescriptor<?> getConstraintDescriptor(); // @since 1.1 Object[] getExecutableParameters(); Object getExecutableReturnValue(); <U> U unwrap(Class<U> type); }
513
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/GroupSequence.java
/* * 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.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; /** * @version $Rev$ $Date$ */ @Target({ TYPE }) @Retention(RUNTIME) @Documented public @interface GroupSequence { Class<?>[] value(); }
514
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/TraversableResolver.java
/* * 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); }
515
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ValidationProviderResolver.java
/* * 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.spi.ValidationProvider; import java.util.List; /** * @version $Rev$ $Date$ */ public interface ValidationProviderResolver { List<ValidationProvider<?>> getValidationProviders(); }
516
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/GroupDefinitionException.java
/* * 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$ */ @SuppressWarnings("serial") 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); } }
517
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/ConstraintDefinitionException.java
/* * 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$ */ @SuppressWarnings("serial") 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); } }
518
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/UnexpectedTypeException.java
/* * 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$ */ @SuppressWarnings("serial") 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); } }
519
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/Path.java
/* * 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; /** * @version $Rev$ $Date$ */ public interface Path extends Iterable<Path.Node> { /** @since 2.0 */ @Override String toString(); interface Node { String getName(); boolean isInIterable(); Integer getIndex(); Object getKey(); /** @since 1.1 */ ElementKind getKind(); /** @since 1.1 */ <T extends Node> T as(Class<T> nodeType); /** @since 2.0 */ @Override String toString(); } /** @since 1.1 */ interface MethodNode extends Node { List<Class<?>> getParameterTypes(); } /** @since 1.1 */ interface ConstructorNode extends Node { List<Class<?>> getParameterTypes(); } /** @since 1.1 */ interface ReturnValueNode extends Node { } /** @since 1.1 */ interface ParameterNode extends Node { int getParameterIndex(); } /** @since 1.1 */ interface CrossParameterNode extends Node { } /** @since 1.1 */ interface BeanNode extends Node { /** @since 2.0 */ Class<?> getContainerClass(); /** @since 2.0 */ Integer getTypeArgumentIndex(); } /** @since 1.1 */ interface PropertyNode extends Node { /** @since 2.0 */ Class<?> getContainerClass(); /** @since 2.0 */ Integer getTypeArgumentIndex(); } /** @since 2.0 */ interface ContainerElementNode extends Node { Class<?> getContainerClass(); Integer getTypeArgumentIndex(); } }
520
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/executable/ExecutableType.java
/* * 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.executable; /** @since 1.1 */ public enum ExecutableType { IMPLICIT, NONE, CONSTRUCTORS, NON_GETTER_METHODS, GETTER_METHODS, ALL }
521
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/executable/ValidateOnExecution.java
/* * 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.executable; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.CONSTRUCTOR; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PACKAGE; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; /** @since 1.1 */ @Target({ CONSTRUCTOR, METHOD, TYPE, PACKAGE }) @Retention(RUNTIME) @Documented public @interface ValidateOnExecution { ExecutableType[] type() default { ExecutableType.IMPLICIT }; }
522
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/executable/ExecutableValidator.java
/* * 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.executable; import javax.validation.ConstraintViolation; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.Set; /** @since 1.1 */ public interface ExecutableValidator { <T> Set<ConstraintViolation<T>> validateParameters(T object, Method method, Object[] parameterValues, Class<?>... groups); <T> Set<ConstraintViolation<T>> validateReturnValue(T object, Method method, Object returnValue, Class<?>... groups); <T> Set<ConstraintViolation<T>> validateConstructorParameters(Constructor<? extends T> constructor, Object[] parameterValues, Class<?>... groups); <T> Set<ConstraintViolation<T>> validateConstructorReturnValue(Constructor<? extends T> constructor, T createdObject, Class<?>... groups); }
523
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/bootstrap/GenericBootstrap.java
/* * 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(); }
524
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/bootstrap/ProviderSpecificBootstrap.java
/* * 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; public interface ProviderSpecificBootstrap<T extends Configuration<T>> { ProviderSpecificBootstrap<T> providerResolver(ValidationProviderResolver resolver); T configure(); }
525
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/valueextraction/ExtractedValue.java
/* * 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.valueextraction; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @since 2.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE_USE) @Documented public @interface ExtractedValue { Class<?> type() default void.class; }
526
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/valueextraction/Unwrapping.java
/* * 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.valueextraction; import javax.validation.Payload; /** * @since 2.0 */ public interface Unwrapping { interface Unwrap extends Payload { } interface Skip extends Payload { } }
527
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/valueextraction/ValueExtractor.java
/* * 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.valueextraction; /** * @since 2.0 */ public interface ValueExtractor<T> { void extractValues(T originalValue, ValueReceiver receiver); interface ValueReceiver { void value(String nodeName, Object object); void iterableValue(String nodeName, Object object); void indexedValue(String nodeName, int i, Object object); void keyedValue(String nodeName, Object key, Object object); } }
528
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/valueextraction/ValueExtractorDefinitionException.java
/* * 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.valueextraction; import javax.validation.ValidationException; /** * @since 2.0 */ @SuppressWarnings("serial") public class ValueExtractorDefinitionException extends ValidationException { public ValueExtractorDefinitionException() { super(); } public ValueExtractorDefinitionException(String message, Throwable cause) { super(message, cause); } public ValueExtractorDefinitionException(String message) { super(message); } public ValueExtractorDefinitionException(Throwable cause) { super(cause); } }
529
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/valueextraction/UnwrapByDefault.java
/* * 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.valueextraction; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @since 2.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented public @interface UnwrapByDefault { }
530
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/valueextraction/ValueExtractorDeclarationException.java
/* * 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.valueextraction; import javax.validation.ValidationException; /** * @since 2.0 */ @SuppressWarnings("serial") public class ValueExtractorDeclarationException extends ValidationException { public ValueExtractorDeclarationException() { super(); } public ValueExtractorDeclarationException(String message, Throwable cause) { super(message, cause); } public ValueExtractorDeclarationException(String message) { super(message); } public ValueExtractorDeclarationException(Throwable cause) { super(cause); } }
531
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Future.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * <p> * Verify that the annotated value of the annotated element is in the future or {@code null}. * </p> * <p> * Supports: * <ul> * <li>{@code java.util.Date}</li> * <li>{@code java.util.Calendar}</li> * <li>{@code java.time.Instant}</li> * <li>{@code java.time.LocalDate}</li> * <li>{@code java.time.LocalDateTime}</li> * <li>{@code java.time.LocalTime}</li> * <li>{@code java.time.MonthDay}</li> * <li>{@code java.time.OffsetDateTime}</li> * <li>{@code java.time.OffsetTime}</li> * <li>{@code java.time.Year}</li> * <li>{@code java.time.YearMonth}</li> * <li>{@code java.time.ZonedDateTime}</li> * <li>{@code java.time.chrono.HijrahDate}</li> * <li>{@code java.time.chrono.JapaneseDate}</li> * <li>{@code java.time.chrono.MinguoDate}</li> * <li>{@code java.time.chrono.ThaiBuddhistDate}</li> * </ul> * </p> * * Other types might be supported in a non-portable manner. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Future.List.class) public @interface Future { String message() default "{javax.validation.constraints.Future.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Future[] value(); } }
532
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Size.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Verify that size of the annotated element is higher or equals the min value * and lower or equals the max value or whether the annotated element is {@code null}. * For Strings we will check the length, for Collections and arrays the size. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Size.List.class) public @interface Size { String message() default "{javax.validation.constraints.Size.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; int min() default 0; int max() default Integer.MAX_VALUE; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Size[] value(); } }
533
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/NotBlank.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(NotBlank.List.class) public @interface NotBlank { String message() default "{javax.validation.constraints.NotBlank.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { NotBlank[] value(); } }
534
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Digits.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Specify the number of maximal allowed digits for the fraction part and the digit size. * This annotation can be applied to * <ul> * <li>BigDecimal</li> * <li>BigInteger</li> * <li>String</li> * <li><byte and Byte/li> * <li><short and Short/li> * <li><int and Integer /li> * <li><long and Long/li> * </ul> * * Float and double are not portably supported due to rounding issues. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Digits.List.class) public @interface Digits { String message() default "{javax.validation.constraints.Digits.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; /** * @return the maximum allowed digit size */ int integer(); /** * @return the maximum allowed number of fraction digits. */ int fraction(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Digits[] value(); } }
535
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/AssertTrue.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Verify that the annotated element is either * {@code true}, {@code Boolean.TRUE} or {@code null}. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(AssertTrue.List.class) public @interface AssertTrue { String message() default "{javax.validation.constraints.AssertTrue.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { AssertTrue[] value(); } }
536
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Past.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * <p> * Verify that the annotated value of the annotated element is in the past or {@code null}. * </p> * <p> * Supports: * <ul> * <li>{@code java.util.Date}</li> * <li>{@code java.util.Calendar}</li> * <li>{@code java.time.Instant}</li> * <li>{@code java.time.LocalDate}</li> * <li>{@code java.time.LocalDateTime}</li> * <li>{@code java.time.LocalTime}</li> * <li>{@code java.time.MonthDay}</li> * <li>{@code java.time.OffsetDateTime}</li> * <li>{@code java.time.OffsetTime}</li> * <li>{@code java.time.Year}</li> * <li>{@code java.time.YearMonth}</li> * <li>{@code java.time.ZonedDateTime}</li> * <li>{@code java.time.chrono.HijrahDate}</li> * <li>{@code java.time.chrono.JapaneseDate}</li> * <li>{@code java.time.chrono.MinguoDate}</li> * <li>{@code java.time.chrono.ThaiBuddhistDate}</li> * </ul> * </p> * * Other types might be supported in a non-portable manner. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Past.List.class) public @interface Past { String message() default "{javax.validation.constraints.Past.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Past[] value(); } }
537
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Email.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Email.List.class) public @interface Email { String message() default "{javax.validation.constraints.Email.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; String regexp() default ".*"; Pattern.Flag[] flags() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Email[] value(); } }
538
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Pattern.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Constraint to verify that the validated field, parameter, etc matches the given regexp pattern. * The pattern format is as specified in {@link java.util.regex.Pattern}. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Pattern.List.class) public @interface Pattern { String regexp(); Flag[] flags() default {}; String message() default "{javax.validation.constraints.Pattern.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; 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; Flag(int value) { this.value = value; } public int getValue() { return value; } } @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Pattern[] value(); } }
539
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Null.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Constraint to verify that the validated field, parameter, etc is {@code null}. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Null.List.class) public @interface Null { String message() default "{javax.validation.constraints.Null.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Null[] value(); } }
540
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/FutureOrPresent.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * <p> * Verify that the value of the annotated element is in the future, present or {@code null}. * </p> * <p> * Supports: * <ul> * <li>{@code java.util.Date}</li> * <li>{@code java.util.Calendar}</li> * <li>{@code java.time.Instant}</li> * <li>{@code java.time.LocalDate}</li> * <li>{@code java.time.LocalDateTime}</li> * <li>{@code java.time.LocalTime}</li> * <li>{@code java.time.MonthDay}</li> * <li>{@code java.time.OffsetDateTime}</li> * <li>{@code java.time.OffsetTime}</li> * <li>{@code java.time.Year}</li> * <li>{@code java.time.YearMonth}</li> * <li>{@code java.time.ZonedDateTime}</li> * <li>{@code java.time.chrono.HijrahDate}</li> * <li>{@code java.time.chrono.JapaneseDate}</li> * <li>{@code java.time.chrono.MinguoDate}</li> * <li>{@code java.time.chrono.ThaiBuddhistDate}</li> * </ul> * </p> * * Other types might be supported in a non-portable manner. * * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(FutureOrPresent.List.class) public @interface FutureOrPresent { String message() default "{javax.validation.constraints.FutureOrPresent.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { FutureOrPresent[] value(); } }
541
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/PositiveOrZero.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(PositiveOrZero.List.class) public @interface PositiveOrZero { String message() default "{javax.validation.constraints.PositiveOrZero.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { PositiveOrZero[] value(); } }
542
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/NotEmpty.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(NotEmpty.List.class) public @interface NotEmpty { String message() default "{javax.validation.constraints.NotEmpty.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { NotEmpty[] value(); } }
543
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Max.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Verify that the annotated element has a number which is * lower or equal than the given value or is {@code null}. * * Note that float and double are not portably supported due to * possible rounding error problems. * * {@link DecimalMax} accepts a String whereas {@Max} accepts a long. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Max.List.class) public @interface Max { String message() default "{javax.validation.constraints.Max.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; long value(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Max[] value(); } }
544
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Min.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Verify that the annotated element has a number which is * higher or equal than the given value or is {@code null}. * * Note that float and double are not portably supported due to * possible rounding error problems. * * {@link DecimalMax} accepts a String whereas {@Max} accepts a long. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Min.List.class) public @interface Min { String message() default "{javax.validation.constraints.Min.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; long value(); @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Min[] value(); } }
545
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/PastOrPresent.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * <p> * Verify that the value of the annotated element is in the past, present or {@code null}. * </p> * <p> * Supports: * <ul> * <li>{@code java.util.Date}</li> * <li>{@code java.util.Calendar}</li> * <li>{@code java.time.Instant}</li> * <li>{@code java.time.LocalDate}</li> * <li>{@code java.time.LocalDateTime}</li> * <li>{@code java.time.LocalTime}</li> * <li>{@code java.time.MonthDay}</li> * <li>{@code java.time.OffsetDateTime}</li> * <li>{@code java.time.OffsetTime}</li> * <li>{@code java.time.Year}</li> * <li>{@code java.time.YearMonth}</li> * <li>{@code java.time.ZonedDateTime}</li> * <li>{@code java.time.chrono.HijrahDate}</li> * <li>{@code java.time.chrono.JapaneseDate}</li> * <li>{@code java.time.chrono.MinguoDate}</li> * <li>{@code java.time.chrono.ThaiBuddhistDate}</li> * </ul> * </p> * * Other types might be supported in a non-portable manner. * * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(PastOrPresent.List.class) public @interface PastOrPresent { String message() default "{javax.validation.constraints.PastOrPresent.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { PastOrPresent[] value(); } }
546
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/NegativeOrZero.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(NegativeOrZero.List.class) public @interface NegativeOrZero { String message() default "{javax.validation.constraints.NegativeOrZero.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { NegativeOrZero[] value(); } }
547
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/DecimalMin.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Verify that the annotated element has a number which is * higher or equal than the given value or is {@code null}. * * Note that float and double are not portably supported due to * possible rounding error problems. * * {@link DecimalMax} accepts a String whereas {@Max} accepts a long. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(DecimalMin.List.class) public @interface DecimalMin { String message() default "{javax.validation.constraints.DecimalMin.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; String value(); /** @since 1.1 */ boolean inclusive() default true; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { DecimalMin[] value(); } }
548
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Negative.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Negative.List.class) public @interface Negative { String message() default "{javax.validation.constraints.Negative.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Negative[] value(); } }
549
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/AssertFalse.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Verify that the annotated element is either * {@code false}, {@code Boolean.FALSE} or {@code null}. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE}) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(AssertFalse.List.class) public @interface AssertFalse { String message() default "{javax.validation.constraints.AssertFalse.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { AssertFalse[] value(); } }
550
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/NotNull.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Constraint to verify that the validated field, parameter, etc is not {@code null}. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(NotNull.List.class) public @interface NotNull { String message() default "{javax.validation.constraints.NotNull.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { NotNull[] value(); } }
551
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/Positive.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * @since 2.0 */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(Positive.List.class) public @interface Positive { String message() default "{javax.validation.constraints.Positive.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { Positive[] value(); } }
552
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraints/DecimalMax.java
/* * 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 javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Verify that the annotated element has a number which is * lower or equal than the given value or is {@code null}. * * Note that float and double are not portably supported due to * possible rounding error problems. * * {@link DecimalMax} accepts a String whereas {@Max} accepts a long. * * @version $Rev$ $Date$ */ @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Constraint(validatedBy = {}) @Repeatable(DecimalMax.List.class) public @interface DecimalMax { String message() default "{javax.validation.constraints.DecimalMax.message}"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; String value(); /** @since 1.1 */ boolean inclusive() default true; @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { DecimalMax[] value(); } }
553
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraintvalidation/ValidationTarget.java
/* * 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.constraintvalidation; /** @since 1.1 */ public enum ValidationTarget { ANNOTATED_ELEMENT, PARAMETERS }
554
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/constraintvalidation/SupportedValidationTarget.java
/* * 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.constraintvalidation; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** @since 1.1 */ @Target(TYPE) @Retention(RUNTIME) @Documented public @interface SupportedValidationTarget { ValidationTarget[] value(); }
555
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/groups/Default.java
/* * 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; /** * The Validation group which is assumed if no other one is explicitly specified. * * @version $Rev$ $Date$ */ public interface Default { }
556
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/groups/ConvertGroup.java
/* * 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; import java.lang.annotation.Documented; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.Target; 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 static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** @since 1.1 */ @Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @Repeatable(ConvertGroup.List.class) public @interface ConvertGroup { Class<?> from() default Default.class; Class<?> to(); @Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented @interface List { ConvertGroup[] value(); } }
557
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/spi/ConfigurationState.java
/* * 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.ClockProvider; import javax.validation.ConstraintValidatorFactory; import javax.validation.MessageInterpolator; import javax.validation.ParameterNameProvider; import javax.validation.TraversableResolver; import javax.validation.valueextraction.ValueExtractor; import java.io.InputStream; import java.util.Map; import java.util.Set; /** * @version $Rev$ $Date$ */ public interface ConfigurationState { boolean isIgnoreXmlConfiguration(); MessageInterpolator getMessageInterpolator(); Set<InputStream> getMappingStreams(); ConstraintValidatorFactory getConstraintValidatorFactory(); TraversableResolver getTraversableResolver(); Map<String, String> getProperties(); /** @since 1.1 */ ParameterNameProvider getParameterNameProvider(); /** @since 2.0 */ Set<ValueExtractor<?>> getValueExtractors(); /** @since 2.0 */ ClockProvider getClockProvider(); }
558
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/spi/ValidationProvider.java
/* * 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 extends Configuration<T>> { T createSpecializedConfiguration(BootstrapState state); Configuration<?> createGenericConfiguration(BootstrapState state); ValidatorFactory buildValidatorFactory(ConfigurationState configurationState); }
559
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/spi/BootstrapState.java
/* * 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(); }
560
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ContainerDescriptor.java
/* * 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; /** * @since 2.0 */ public interface ContainerDescriptor { Set<ContainerElementTypeDescriptor> getConstrainedContainerElementTypes(); }
561
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ParameterDescriptor.java
/* * 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; /** @since 1.1 */ public interface ParameterDescriptor extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor { int getIndex(); String getName(); }
562
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ConstructorDescriptor.java
/* * 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; /** @since 1.1 */ public interface ConstructorDescriptor extends ExecutableDescriptor { }
563
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ExecutableDescriptor.java
/* * 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.List; /** @since 1.1 */ public interface ExecutableDescriptor extends ElementDescriptor { String getName(); List<ParameterDescriptor> getParameterDescriptors(); CrossParameterDescriptor getCrossParameterDescriptor(); ReturnValueDescriptor getReturnValueDescriptor(); boolean hasConstrainedParameters(); boolean hasConstrainedReturnValue(); }
564
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/CascadableDescriptor.java
/* * 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; /** @since 1.1 */ public interface CascadableDescriptor { boolean isCascaded(); Set<GroupConversionDescriptor> getGroupConversions(); }
565
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ElementDescriptor.java
/* * 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<ConstraintDescriptor<?>> getConstraintDescriptors(); ConstraintFinder findConstraints(); interface ConstraintFinder { ConstraintFinder unorderedAndMatchingGroups(Class<?>... groups); ConstraintFinder lookingAt(Scope scope); ConstraintFinder declaredOn(ElementType... types); Set<ConstraintDescriptor<?>> getConstraintDescriptors(); boolean hasConstraints(); } }
566
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/BeanDescriptor.java
/* * 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<PropertyDescriptor> getConstrainedProperties(); // @since 1.1 MethodDescriptor getConstraintsForMethod(String methodName, Class<?>... parameterTypes); Set<MethodDescriptor> getConstrainedMethods(MethodType methodType, MethodType... methodTypes); ConstructorDescriptor getConstraintsForConstructor(Class<?>... parameterTypes); Set<ConstructorDescriptor> getConstrainedConstructors(); }
567
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/MethodType.java
/* * 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; /** @since 1.1 */ public enum MethodType { GETTER, NON_GETTER }
568
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ValidateUnwrappedValue.java
/* * 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; /** * @since 2.0 */ public enum ValidateUnwrappedValue { DEFAULT, UNWRAP, SKIP; }
569
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/MethodDescriptor.java
/* * 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; /** @since 1.1 */ public interface MethodDescriptor extends ExecutableDescriptor { }
570
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ContainerElementTypeDescriptor.java
/* * 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; /** * @since 2.0 */ public interface ContainerElementTypeDescriptor extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor { Class<?> getContainerClass(); Integer getTypeArgumentIndex(); }
571
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/GroupConversionDescriptor.java
/* * 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; /** @since 1.1 */ public interface GroupConversionDescriptor { Class<?> getFrom(); Class<?> getTo(); }
572
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/PropertyDescriptor.java
/* * 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, CascadableDescriptor, ContainerDescriptor { String getPropertyName(); }
573
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ConstraintDescriptor.java
/* * 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 javax.validation.ConstraintTarget; import javax.validation.ConstraintValidator; import javax.validation.Payload; import java.lang.annotation.Annotation; import java.util.List; import java.util.Map; import java.util.Set; /** * @version $Rev$ $Date$ */ public interface ConstraintDescriptor<T extends Annotation> { T getAnnotation(); Set<Class<?>> getGroups(); Set<Class<? extends Payload>> getPayload(); List<Class<? extends ConstraintValidator<T, ?>>> getConstraintValidatorClasses(); Map<String, Object> getAttributes(); Set<ConstraintDescriptor<?>> getComposingConstraints(); boolean isReportAsSingleViolation(); /** @since 1.1 */ String getMessageTemplate(); /** @since 1.1 */ ConstraintTarget getValidationAppliesTo(); /** @since 2.0 */ ValidateUnwrappedValue getValueUnwrapping(); /** @since 2.0 */ <U> U unwrap(Class<U> type); }
574
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/Scope.java
/* * 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 }
575
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/ReturnValueDescriptor.java
/* * 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; /** @since 1.1 */ public interface ReturnValueDescriptor extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor { }
576
0
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation
Create_ds/geronimo-specs/geronimo-validation_2.0_spec/src/main/java/javax/validation/metadata/CrossParameterDescriptor.java
/* * 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; /** @since 1.1 */ public interface CrossParameterDescriptor extends ElementDescriptor { }
577
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/XMLConstants.java
/* ** ** 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.xml; public class XMLConstants { public static final java.lang.String DEFAULT_NS_PREFIX = ""; public static final java.lang.String XML_NS_PREFIX = "xml"; public static final java.lang.String XML_NS_URI = "http://www.w3.org/XML/1998/namespace"; public static final java.lang.String XMLNS_ATTRIBUTE = "xmlns"; public static final java.lang.String XMLNS_ATTRIBUTE_NS_URI = "http://www.w3.org/2000/xmlns/"; }
578
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLReporter.java
/* ** ** 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.xml.stream; public interface XMLReporter { void report(String message, String errorType, Object relatedInformation, Location location) throws XMLStreamException; }
579
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/FactoryConfigurationError.java
/* ** ** 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.xml.stream; import java.io.Serializable; public class FactoryConfigurationError extends Error implements Serializable { Exception nested; public FactoryConfigurationError() { } public FactoryConfigurationError(Exception e) { nested = e; } public FactoryConfigurationError(Exception e, String msg) { super(msg); nested = e; } public FactoryConfigurationError(java.lang.String msg) { super(msg); } public FactoryConfigurationError(String msg, Exception e) { super(msg); nested = e; } public Exception getException() { return nested; } public String getMessage() { String msg = super.getMessage(); if (msg != null) return msg; if (nested != null) { msg = nested.getMessage(); if (msg == null) msg = nested.getClass().toString(); } return msg; } }
580
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/FactoryLocator.java
/* ** ** 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.xml.stream; import java.io.InputStream; import java.io.File; import java.io.FileInputStream; import java.util.Properties; import java.io.BufferedReader; import java.io.InputStreamReader; import org.apache.geronimo.osgi.locator.ProviderLocator; /* * Here is the beef on the finding the Factory Class * * 1. Use the javax.xml.stream.XMLInputFactory system property. 2. Use the * properties file "lib/stax.properties" in the JRE directory. This * configuration file is in standard java.util.Properties format and contains * the fully qualified name of the implementation class with the key being the * system property defined above. 3. Use the Services API (as detailed in the * JAR specification), if available, to determine the classname. The Services * API will look for a classname in the file * META-INF/services/javax.xml.stream.XMLInputFactory in jars available to the * runtime. Platform default XMLInputFactory instance. * * If the user provided a classloader we'll use that...if not, we'll assume the * classloader of this class. */ class FactoryLocator { static Object locate(String factoryId) throws FactoryConfigurationError { return locate(factoryId, null); } static Object locate(String factoryId, String altClassName) throws FactoryConfigurationError { return locate(factoryId, altClassName, Thread.currentThread().getContextClassLoader()); } static Object locate(String factoryId, String altClassName, ClassLoader classLoader) throws FactoryConfigurationError { // NOTE: The stax spec uses the following lookup order, which is the reverse from what is specified // most of the APIs: // 1. Use the javax.xml.stream.XMLInputFactory system property. // 2. Use the properties file lib/xml.stream.properties in the JRE directory. This configuration // file is in standard java.util.Properties format and contains the fully qualified name of the // implementation class with the key being the system property defined in step 1. // 3. Use the Services API (as detailed in the JAR specification), if available, to determine the // classname. The Services API looks for a classname in the file META-INF/services/ // javax.xml.stream.XMLInputFactory in jars available to the runtime. // 4. Platform default XMLInputFactory instance. // Use the system property first try { String systemProp = System.getProperty(factoryId); if (systemProp != null) { return newInstance(systemProp, classLoader); } } catch (SecurityException se) { } try { // NOTE: The StAX spec gives this property file name as xml.stream.properties, but the javadoc and the maintenance release // state this is stax.properties. String factoryClassName = ProviderLocator.lookupByJREPropertyFile("lib" + File.separator + "stax.properties", factoryId); if (factoryClassName != null) { return newInstance(factoryClassName, classLoader); } } catch (Exception ex) { } try { // check the META-INF/services definitions, and return it if // we find something. Object service = ProviderLocator.getService(factoryId, FactoryLocator.class, classLoader); if (service != null) { return service; } } catch (Exception ex) { } if (altClassName == null) { throw new FactoryConfigurationError("Unable to locate factory for " + factoryId + ".", null); } return newInstance(altClassName, classLoader); } private static Object newInstance(String className, ClassLoader classLoader) throws FactoryConfigurationError { try { return ProviderLocator.loadClass(className, FactoryLocator.class, classLoader).newInstance(); } catch (ClassNotFoundException x) { throw new FactoryConfigurationError("Requested factory " + className + " cannot be located. Classloader =" + classLoader.toString(), x); } catch (Exception x) { throw new FactoryConfigurationError("Requested factory " + className + " could not be instantiated: " + x, x); } } }
581
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLEventFactory.java
/* ** ** 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.xml.stream; import java.util.Iterator; import javax.xml.namespace.NamespaceContext; import javax.xml.stream.events.ProcessingInstruction; import javax.xml.namespace.QName; import javax.xml.stream.events.Characters; import javax.xml.stream.events.Comment; import javax.xml.stream.events.DTD; import javax.xml.stream.events.EndElement; import javax.xml.stream.events.EntityDeclaration; import javax.xml.stream.events.Namespace; import javax.xml.stream.events.Attribute; import javax.xml.stream.events.EndDocument; import javax.xml.stream.events.EntityReference; import javax.xml.stream.events.StartDocument; import javax.xml.stream.events.StartElement; public abstract class XMLEventFactory { protected XMLEventFactory() { } public static XMLEventFactory newInstance() throws FactoryConfigurationError { return (XMLEventFactory)FactoryLocator.locate("javax.xml.stream.XMLEventFactory", "com.ctc.wstx.stax.WstxEventFactory"); } public static XMLEventFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError { return (XMLEventFactory)FactoryLocator.locate(factoryId, "com.ctc.wstx.stax.WstxEventFactory", classLoader); } public abstract void setLocation(Location location); public abstract Attribute createAttribute(QName name, String value); public abstract Attribute createAttribute(String localName, String value); public abstract Attribute createAttribute(String prefix, String namespaceURI, String localName, String value); public abstract Namespace createNamespace(String namespaceUri); public abstract Namespace createNamespace(String prefix, String namespaceUri); public abstract StartElement createStartElement(QName name, Iterator attributes, Iterator namespaces); public abstract StartElement createStartElement(String prefix, String namespaceUri, String localName); public abstract StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces); public abstract StartElement createStartElement(String prefix, String namespaceUri, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context); public abstract EndElement createEndElement(QName name, Iterator namespaces); public abstract EndElement createEndElement(String prefix, String namespaceUri, String localName); public abstract EndElement createEndElement(String prefix, String namespaceUri, String localName, Iterator namespaces); public abstract Characters createCharacters(String content); public abstract Characters createCData(String content); public abstract Characters createSpace(String content); public abstract Characters createIgnorableSpace(String content); public abstract StartDocument createStartDocument(); public abstract StartDocument createStartDocument(String encoding); public abstract StartDocument createStartDocument(String encoding, String version); public abstract StartDocument createStartDocument(String encoding, String version, boolean standalone); public abstract EndDocument createEndDocument(); public abstract EntityReference createEntityReference(String name, EntityDeclaration declaration); public abstract Comment createComment(String text); public abstract ProcessingInstruction createProcessingInstruction( String target, String data); public abstract DTD createDTD(String dtd); }
582
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLEventReader.java
/* ** ** 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.xml.stream; import java.util.Iterator; import javax.xml.stream.events.XMLEvent; public interface XMLEventReader extends Iterator { public void close() throws XMLStreamException; public String getElementText() throws XMLStreamException; public Object getProperty(java.lang.String name) throws IllegalArgumentException; public boolean hasNext(); public XMLEvent nextEvent() throws XMLStreamException; public XMLEvent nextTag() throws XMLStreamException; public XMLEvent peek() throws XMLStreamException; }
583
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLEventWriter.java
/* ** ** 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.xml.stream; import javax.xml.namespace.NamespaceContext; import javax.xml.stream.events.XMLEvent; import javax.xml.stream.util.XMLEventConsumer; public interface XMLEventWriter extends XMLEventConsumer { public void add(XMLEvent event) throws XMLStreamException; public void add(XMLEventReader reader) throws XMLStreamException; public void close() throws XMLStreamException; public void flush() throws XMLStreamException; public NamespaceContext getNamespaceContext(); public String getPrefix(String uri) throws XMLStreamException; public void setDefaultNamespace(String uri) throws XMLStreamException; public void setNamespaceContext(NamespaceContext context) throws XMLStreamException; public void setPrefix(String prefix, String uri) throws XMLStreamException; }
584
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/StreamFilter.java
/* ** ** 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.xml.stream; public interface StreamFilter { public boolean accept(XMLStreamReader reader); }
585
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLStreamConstants.java
/* ** ** 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.xml.stream; public interface XMLStreamConstants { public static final int ATTRIBUTE = 10; public static final int CDATA = 12; public static final int CHARACTERS = 4; public static final int COMMENT = 5; public static final int DTD = 11; public static final int END_DOCUMENT = 8; public static final int END_ELEMENT = 2; public static final int ENTITY_DECLARATION = 15; public static final int ENTITY_REFERENCE = 9; public static final int NAMESPACE = 13; public static final int NOTATION_DECLARATION = 14; public static final int PROCESSING_INSTRUCTION = 3; public static final int SPACE = 6; public static final int START_DOCUMENT = 7; public static final int START_ELEMENT = 1; }
586
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLOutputFactory.java
/* ** ** 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.xml.stream; public abstract class XMLOutputFactory { public static final String IS_REPAIRING_NAMESPACES = "javax.xml.stream.isRepairingNamespaces"; protected XMLOutputFactory() { } public static XMLOutputFactory newInstance() throws FactoryConfigurationError { return (XMLOutputFactory) FactoryLocator.locate("javax.xml.stream.XMLOutputFactory", "com.ctc.wstx.stax.WstxOutputFactory"); } public static XMLInputFactory newInstance(String factoryId, java.lang.ClassLoader classLoader) throws FactoryConfigurationError { return (XMLInputFactory) FactoryLocator.locate(factoryId, "com.ctc.wstx.stax.WstxOutputFactory", classLoader); } public abstract XMLStreamWriter createXMLStreamWriter(java.io.Writer stream) throws XMLStreamException; public abstract XMLStreamWriter createXMLStreamWriter( java.io.OutputStream stream) throws XMLStreamException; public abstract XMLStreamWriter createXMLStreamWriter( java.io.OutputStream stream, String encoding) throws XMLStreamException; public abstract XMLStreamWriter createXMLStreamWriter( javax.xml.transform.Result result) throws XMLStreamException; public abstract XMLEventWriter createXMLEventWriter( javax.xml.transform.Result result) throws XMLStreamException; public abstract XMLEventWriter createXMLEventWriter( java.io.OutputStream stream) throws XMLStreamException; public abstract XMLEventWriter createXMLEventWriter( java.io.OutputStream stream, String encoding) throws XMLStreamException; public abstract XMLEventWriter createXMLEventWriter(java.io.Writer stream) throws XMLStreamException; public abstract void setProperty(String name, Object value) throws IllegalArgumentException; public abstract Object getProperty(String name) throws IllegalArgumentException; public abstract boolean isPropertySupported(String name); }
587
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLResolver.java
/* ** ** 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.xml.stream; public interface XMLResolver { public Object resolveEntity(String publicID, String systemID, String baseURI, String namespace) throws XMLStreamException; }
588
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLStreamWriter.java
/* ** ** 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.xml.stream; import javax.xml.namespace.NamespaceContext; public interface XMLStreamWriter { public void close() throws XMLStreamException; public void flush() throws XMLStreamException; public NamespaceContext getNamespaceContext(); public String getPrefix(String uri) throws XMLStreamException; public Object getProperty(String name) throws IllegalArgumentException; public void setDefaultNamespace(String uri) throws XMLStreamException; public void setNamespaceContext(NamespaceContext context) throws XMLStreamException; public void setPrefix(String prefix, String uri) throws XMLStreamException; public void writeAttribute(String localName, String value) throws XMLStreamException; public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException; public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException; public void writeCData(String data) throws XMLStreamException; public void writeCharacters(char[] text, int start, int len) throws XMLStreamException; public void writeCharacters(String text) throws XMLStreamException; public void writeComment(String data) throws XMLStreamException; public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException; public void writeDTD(String dtd) throws XMLStreamException; public void writeEmptyElement(String localName) throws XMLStreamException; public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException; public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException; public void writeEndDocument() throws XMLStreamException; public void writeEndElement() throws XMLStreamException; public void writeEntityRef(String name) throws XMLStreamException; public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException; public void writeProcessingInstruction(String target) throws XMLStreamException; public void writeProcessingInstruction(String target, String data) throws XMLStreamException; public void writeStartDocument() throws XMLStreamException; public void writeStartDocument(String version) throws XMLStreamException; public void writeStartDocument(String encoding, String version) throws XMLStreamException; public void writeStartElement(String localName) throws XMLStreamException; public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException; public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException; }
589
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLInputFactory.java
/* ** ** 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.xml.stream; import javax.xml.stream.util.XMLEventAllocator; public abstract class XMLInputFactory { public static final java.lang.String ALLOCATOR = "javax.xml.stream.allocator"; public static final java.lang.String IS_COALESCING = "javax.xml.stream.isCoalescing"; public static final java.lang.String IS_NAMESPACE_AWARE = "javax.xml.stream.isNamespaceAware"; public static final java.lang.String IS_REPLACING_ENTITY_REFERENCES = "javax.xml.stream.isReplacingEntityReferences"; public static final java.lang.String IS_SUPPORTING_EXTERNAL_ENTITIES = "javax.xml.stream.isSupportingExternalEntities"; public static final java.lang.String IS_VALIDATING = "javax.xml.stream.isValidating"; public static final java.lang.String REPORTER = "javax.xml.stream.reporter"; public static final java.lang.String RESOLVER = "javax.xml.stream.resolver"; public static final java.lang.String SUPPORT_DTD = "javax.xml.stream.supportDTD"; protected XMLInputFactory() { } public static XMLInputFactory newInstance() throws FactoryConfigurationError { // We'll assume the XMLInputFactory from the RI as a backup. return (XMLInputFactory)FactoryLocator.locate("javax.xml.stream.XMLInputFactory", "com.ctc.wstx.stax.WstxInputFactory"); } public static XMLInputFactory newInstance(java.lang.String factoryId, java.lang.ClassLoader classLoader) throws FactoryConfigurationError { // We'll assume the XMLInputFactory from the RI as a backup. return (XMLInputFactory)FactoryLocator.locate(factoryId, "com.ctc.wstx.stax.WstxInputFactory", classLoader); } public abstract XMLStreamReader createXMLStreamReader(java.io.Reader reader) throws XMLStreamException; public abstract XMLStreamReader createXMLStreamReader( javax.xml.transform.Source source) throws XMLStreamException; public abstract XMLStreamReader createXMLStreamReader( java.io.InputStream stream) throws XMLStreamException; public abstract XMLStreamReader createXMLStreamReader( java.io.InputStream stream, java.lang.String encoding) throws XMLStreamException; public abstract XMLStreamReader createXMLStreamReader( java.lang.String systemId, java.io.InputStream stream) throws XMLStreamException; public abstract XMLStreamReader createXMLStreamReader( java.lang.String systemId, java.io.Reader reader) throws XMLStreamException; public abstract XMLEventReader createXMLEventReader(java.io.Reader reader) throws XMLStreamException; public abstract XMLEventReader createXMLEventReader( java.lang.String systemId, java.io.Reader reader) throws XMLStreamException; public abstract XMLEventReader createXMLEventReader(XMLStreamReader reader) throws XMLStreamException; public abstract XMLEventReader createXMLEventReader( javax.xml.transform.Source source) throws XMLStreamException; public abstract XMLEventReader createXMLEventReader( java.io.InputStream stream) throws XMLStreamException; public abstract XMLEventReader createXMLEventReader( java.io.InputStream stream, java.lang.String encoding) throws XMLStreamException; public abstract XMLEventReader createXMLEventReader( java.lang.String systemId, java.io.InputStream stream) throws XMLStreamException; public abstract XMLStreamReader createFilteredReader( XMLStreamReader reader, StreamFilter filter) throws XMLStreamException; public abstract XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter) throws XMLStreamException; public abstract XMLResolver getXMLResolver(); public abstract void setXMLResolver(XMLResolver resolver); public abstract XMLReporter getXMLReporter(); public abstract void setXMLReporter(XMLReporter reporter); public abstract void setProperty(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentException; public abstract java.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException; public abstract boolean isPropertySupported(java.lang.String name); public abstract void setEventAllocator(XMLEventAllocator allocator); public abstract XMLEventAllocator getEventAllocator(); }
590
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLStreamReader.java
/* ** ** 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.xml.stream; import javax.xml.namespace.NamespaceContext; import javax.xml.namespace.QName; public interface XMLStreamReader extends XMLStreamConstants { public void close() throws XMLStreamException; public int getAttributeCount(); public String getAttributeLocalName(int index); public QName getAttributeName(int index); public String getAttributeNamespace(int index); public String getAttributePrefix(int index); public String getAttributeType(int index); public String getAttributeValue(int index); public String getAttributeValue(String namespaceURI, String localName); public String getCharacterEncodingScheme(); public String getElementText() throws XMLStreamException; public String getEncoding(); public int getEventType(); public String getLocalName(); public Location getLocation(); public QName getName(); public NamespaceContext getNamespaceContext(); public int getNamespaceCount(); public String getNamespacePrefix(int index); public String getNamespaceURI(); public String getNamespaceURI(int index); public String getNamespaceURI(String prefix); public String getPIData(); public String getPITarget(); public String getPrefix(); public java.lang.Object getProperty(String name) throws IllegalArgumentException; public String getText(); public char[] getTextCharacters(); public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException; public int getTextLength(); public int getTextStart(); public String getVersion(); public boolean hasName(); public boolean hasNext() throws XMLStreamException; public boolean hasText(); public boolean isAttributeSpecified(int index); public boolean isCharacters(); public boolean isEndElement(); public boolean isStandalone(); public boolean isStartElement(); public boolean isWhiteSpace(); public int next() throws XMLStreamException; public int nextTag() throws XMLStreamException ; public void require(int type, String namespaceURI, String localName) throws XMLStreamException ; public boolean standaloneSet(); }
591
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/Location.java
/* ** ** 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.xml.stream; public interface Location { public int getCharacterOffset(); public int getColumnNumber(); public int getLineNumber(); public String getPublicId(); public String getSystemId(); }
592
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/XMLStreamException.java
/* ** ** 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.xml.stream; public class XMLStreamException extends Exception { protected Throwable nested; protected Location location; public XMLStreamException() { } public XMLStreamException(java.lang.String msg) { super(msg); } public XMLStreamException(java.lang.Throwable th) { this.nested = th; } public XMLStreamException(java.lang.String msg, java.lang.Throwable th) { super(msg); this.nested = th; } public XMLStreamException(java.lang.String msg, Location location, java.lang.Throwable th) { super("ParseError at [row,col]:[" + location.getLineNumber() + "," + location.getColumnNumber() + "]\n" + "Message: " + msg); this.location = location; this.nested = th; } public XMLStreamException(java.lang.String msg, Location location) { super("ParseError at [row,col]:[" + location.getLineNumber() + "," + location.getColumnNumber() + "]\n" + "Message: " + msg); this.location = location; } public java.lang.Throwable getNestedException() { return nested; } public Location getLocation() { return location; } }
593
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/EventFilter.java
/* ** ** 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.xml.stream; import javax.xml.stream.events.XMLEvent; public interface EventFilter { public boolean accept(XMLEvent event); }
594
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/util/StreamReaderDelegate.java
/* ** ** 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.xml.stream.util; import javax.xml.namespace.NamespaceContext; import javax.xml.namespace.QName; import javax.xml.stream.Location; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; public class StreamReaderDelegate implements XMLStreamReader { XMLStreamReader reader; public StreamReaderDelegate() { } public StreamReaderDelegate(XMLStreamReader reader) { this.reader = reader; } public void setParent(XMLStreamReader reader) { this.reader = reader; } public XMLStreamReader getParent() { return reader; } public int next() throws XMLStreamException { return reader.next(); } public int nextTag() throws XMLStreamException { return reader.nextTag(); } public String getElementText() throws XMLStreamException { return reader.getElementText(); } public void require(int type, String namespaceURI, String localName) throws XMLStreamException { reader.require(type, namespaceURI, localName); } public boolean hasNext() throws XMLStreamException { return reader.hasNext(); } public void close() throws XMLStreamException { reader.close(); } public String getNamespaceURI(String prefix) { return reader.getNamespaceURI(prefix); } public NamespaceContext getNamespaceContext() { return reader.getNamespaceContext(); } public boolean isStartElement() { return reader.isStartElement(); } public boolean isEndElement() { return reader.isEndElement(); } public boolean isCharacters() { return reader.isCharacters(); } public boolean isWhiteSpace() { return reader.isWhiteSpace(); } public String getAttributeValue(String namespaceURI, String localName) { return reader.getAttributeValue(namespaceURI, localName); } public int getAttributeCount() { return reader.getAttributeCount(); } public QName getAttributeName(int index) { return reader.getAttributeName(index); } public String getAttributePrefix(int index) { return reader.getAttributePrefix(index); } public String getAttributeNamespace(int index) { return reader.getAttributeNamespace(index); } public String getAttributeLocalName(int index) { return reader.getAttributeLocalName(index); } public String getAttributeType(int index) { return reader.getAttributeType(index); } public String getAttributeValue(int index) { return reader.getAttributeValue(index); } public boolean isAttributeSpecified(int index) { return reader.isAttributeSpecified(index); } public int getNamespaceCount() { return reader.getNamespaceCount(); } public String getNamespacePrefix(int index) { return reader.getNamespacePrefix(index); } public String getNamespaceURI(int index) { return reader.getNamespaceURI(index); } public int getEventType() { return reader.getEventType(); } public String getText() { return reader.getText(); } public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException { return reader.getTextCharacters(sourceStart, target, targetStart, length); } public char[] getTextCharacters() { return reader.getTextCharacters(); } public int getTextStart() { return reader.getTextStart(); } public int getTextLength() { return reader.getTextLength(); } public String getEncoding() { return reader.getEncoding(); } public boolean hasText() { return reader.hasText(); } public Location getLocation() { return reader.getLocation(); } public QName getName() { return reader.getName(); } public String getLocalName() { return reader.getLocalName(); } public boolean hasName() { return reader.hasName(); } public String getNamespaceURI() { return reader.getNamespaceURI(); } public String getPrefix() { return reader.getPrefix(); } public String getVersion() { return reader.getVersion(); } public boolean isStandalone() { return reader.isStandalone(); } public boolean standaloneSet() { return reader.standaloneSet(); } public String getCharacterEncodingScheme() { return reader.getCharacterEncodingScheme(); } public String getPITarget() { return reader.getPITarget(); } public String getPIData() { return reader.getPIData(); } public Object getProperty(String name) throws IllegalArgumentException { return reader.getProperty(name); } }
595
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/util/XMLEventAllocator.java
/* ** ** 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.xml.stream.util; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.events.XMLEvent; public interface XMLEventAllocator { public XMLEvent allocate(XMLStreamReader reader) throws XMLStreamException; public void allocate(XMLStreamReader reader, XMLEventConsumer consumer) throws XMLStreamException; public XMLEventAllocator newInstance(); }
596
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/util/XMLEventConsumer.java
/* ** ** 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.xml.stream.util; import javax.xml.stream.XMLStreamException; import javax.xml.stream.events.XMLEvent; public interface XMLEventConsumer { public void add(XMLEvent event) throws XMLStreamException; }
597
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/util/EventReaderDelegate.java
/* ** ** 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.xml.stream.util; import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLStreamException; import javax.xml.stream.events.XMLEvent; public class EventReaderDelegate implements XMLEventReader { private XMLEventReader reader; public EventReaderDelegate() { } public EventReaderDelegate(XMLEventReader reader) { this.reader = reader; } public void close() throws XMLStreamException { reader.close(); } public String getElementText() throws XMLStreamException { return reader.getElementText(); } public XMLEventReader getParent() { return reader; } public Object getProperty(java.lang.String name) throws IllegalArgumentException { return reader.getProperty(name); } public boolean hasNext() { return reader.hasNext(); } public Object next() { return reader.next(); } public XMLEvent nextEvent() throws XMLStreamException { return reader.nextEvent(); } public XMLEvent nextTag() throws XMLStreamException { return reader.nextTag(); } public XMLEvent peek() throws XMLStreamException { return reader.peek(); } public void remove() { reader.remove(); } public void setParent(XMLEventReader reader) { this.reader = reader; } }
598
0
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream
Create_ds/geronimo-specs/geronimo-stax-api_1.0_spec/src/main/java/javax/xml/stream/events/DTD.java
/* ** ** 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.xml.stream.events; import java.util.List; public interface DTD extends XMLEvent { public String getDocumentTypeDeclaration(); public List getEntities(); public List getNotations(); public Object getProcessedDTD(); }
599