JSR303 hibernate-validator-5.1.0.zip 进行数据格式;数据校验
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2
文件 51835 2014-03-02 19:45 hibernate-validator-5.1.2changelog.txt
文件 446 2014-03-02 19:45 hibernate-validator-5.1.2copyright.txt
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2dist
文件 622634 2014-03-02 19:46 hibernate-validator-5.1.2disthibernate-validator-5.1.0.Final.jar
文件 64359 2014-03-02 19:50 hibernate-validator-5.1.2disthibernate-validator-annotation-processor-5.1.0.Final.jar
文件 32784 2014-03-02 19:48 hibernate-validator-5.1.2disthibernate-validator-cdi-5.1.0.Final.jar
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2distlib
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2distliboptional
文件 113371 2013-10-01 09:37 hibernate-validator-5.1.2distliboptionalhibernate-jpa-2.1-api-1.0.0.Final.jar
文件 570478 2013-02-11 11:00 hibernate-validator-5.1.2distliboptionaljoda-time-2.1.jar
文件 278273 2013-02-19 10:28 hibernate-validator-5.1.2distliboptionaljsoup-1.7.1.jar
文件 489884 2013-02-11 11:01 hibernate-validator-5.1.2distliboptionallog4j-1.2.17.jar
文件 30716 2013-08-01 12:52 hibernate-validator-5.1.2distliboptionalparanamer-2.5.5.jar
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2distlib
equired
文件 60282 2013-11-28 20:58 hibernate-validator-5.1.2distlib
equiredclassmate-1.0.0.jar
文件 117583 2012-12-14 15:18 hibernate-validator-5.1.2distlib
equiredjavax.el-2.2.4.jar
文件 38863 2012-12-14 15:18 hibernate-validator-5.1.2distlib
equiredjavax.el-api-2.2.4.jar
文件 57183 2013-04-18 14:35 hibernate-validator-5.1.2distlib
equiredjboss-logging-3.1.3.GA.jar
文件 63777 2013-04-10 20:29 hibernate-validator-5.1.2distlib
equiredvalidation-api-1.1.0.Final.jar
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docs
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docsapi
文件 76300 2014-03-02 19:53 hibernate-validator-5.1.2docsapiallclasses-frame.html
文件 68600 2014-03-02 19:53 hibernate-validator-5.1.2docsapiallclasses-noframe.html
文件 35764 2014-03-02 19:53 hibernate-validator-5.1.2docsapiconstant-values.html
文件 5927 2014-03-02 19:53 hibernate-validator-5.1.2docsapideprecated-list.html
文件 8799 2014-03-02 19:53 hibernate-validator-5.1.2docsapihelp-doc.html
文件 2745 2014-03-02 19:53 hibernate-validator-5.1.2docsapiindex.html
文件 1323987 2014-03-02 19:53 hibernate-validator-5.1.2docsapiindex-all.html
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docsapiorg
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docsapiorghibernate
............此处省略3168个文件信息
/*
* JBoss Home of Professional Open Source
* Copyright 2009 Red Hat Middleware LLC and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hibernate.validator.ap;
import java.util.List;
import java.util.Set;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.Element;
import javax.lang.model.element.ExecutableElement;
import javax.lang.model.element.TypeElement;
import javax.lang.model.element.VariableElement;
import javax.lang.model.util.ElementKindVisitor6;
import javax.tools.Diagnostic.Kind;
import org.hibernate.validator.ap.checks.ConstraintCheckError;
import org.hibernate.validator.ap.checks.ConstraintCheckFactory;
import org.hibernate.validator.ap.checks.ConstraintChecks;
import org.hibernate.validator.ap.util.AnnotationApiHelper;
import org.hibernate.validator.ap.util.Configuration;
import org.hibernate.validator.ap.util.ConstraintHelper;
import org.hibernate.validator.ap.util.MessagerAdapter;
/**
* An {@link javax.lang.model.element.ElementVisitor} that visits annotated elements (type declarations
* methods and fields) and applies different {@link org.hibernate.validator.ap.checks.ConstraintCheck}s to them.
* Each {@link ConstraintCheckError} occurred will be reported using the
* {@link javax.annotation.processing.Messager} API.
*
* @author Gunnar Morling
*/
final class ConstraintAnnotationVisitor extends ElementKindVisitor6> {
private final MessagerAdapter messager;
private final ConstraintCheckFactory constraintCheckFactory;
private final boolean verbose;
public ConstraintAnnotationVisitor(
ProcessingEnvironment processingEnvironment MessagerAdapter messager Configuration configuration) {
this.messager = messager;
this.verbose = configuration.isVerbose();
AnnotationApiHelper annotationApiHelper = new AnnotationApiHelper(
processingEnvironment.getElementUtils() processingEnvironment.getTypeUtils()
);
ConstraintHelper constraintHelper = new ConstraintHelper(
processingEnvironment.getTypeUtils() annotationApiHelper
);
constraintCheckFactory = new ConstraintCheckFactory(
processingEnvironment.getTypeUtils()
constraintHelper
annotationApiHelper
configuration.methodConstraintsSupported()
);
}
/**
*
* Checks whethe
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2
文件 51835 2014-03-02 19:45 hibernate-validator-5.1.2changelog.txt
文件 446 2014-03-02 19:45 hibernate-validator-5.1.2copyright.txt
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2dist
文件 622634 2014-03-02 19:46 hibernate-validator-5.1.2disthibernate-validator-5.1.0.Final.jar
文件 64359 2014-03-02 19:50 hibernate-validator-5.1.2disthibernate-validator-annotation-processor-5.1.0.Final.jar
文件 32784 2014-03-02 19:48 hibernate-validator-5.1.2disthibernate-validator-cdi-5.1.0.Final.jar
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2distlib
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2distliboptional
文件 113371 2013-10-01 09:37 hibernate-validator-5.1.2distliboptionalhibernate-jpa-2.1-api-1.0.0.Final.jar
文件 570478 2013-02-11 11:00 hibernate-validator-5.1.2distliboptionaljoda-time-2.1.jar
文件 278273 2013-02-19 10:28 hibernate-validator-5.1.2distliboptionaljsoup-1.7.1.jar
文件 489884 2013-02-11 11:01 hibernate-validator-5.1.2distliboptionallog4j-1.2.17.jar
文件 30716 2013-08-01 12:52 hibernate-validator-5.1.2distliboptionalparanamer-2.5.5.jar
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2distlib
equired
文件 60282 2013-11-28 20:58 hibernate-validator-5.1.2distlib
equiredclassmate-1.0.0.jar
文件 117583 2012-12-14 15:18 hibernate-validator-5.1.2distlib
equiredjavax.el-2.2.4.jar
文件 38863 2012-12-14 15:18 hibernate-validator-5.1.2distlib
equiredjavax.el-api-2.2.4.jar
文件 57183 2013-04-18 14:35 hibernate-validator-5.1.2distlib
equiredjboss-logging-3.1.3.GA.jar
文件 63777 2013-04-10 20:29 hibernate-validator-5.1.2distlib
equiredvalidation-api-1.1.0.Final.jar
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docs
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docsapi
文件 76300 2014-03-02 19:53 hibernate-validator-5.1.2docsapiallclasses-fr
文件 68600 2014-03-02 19:53 hibernate-validator-5.1.2docsapiallclasses-nofr
文件 35764 2014-03-02 19:53 hibernate-validator-5.1.2docsapiconstant-values.html
文件 5927 2014-03-02 19:53 hibernate-validator-5.1.2docsapideprecated-list.html
文件 8799 2014-03-02 19:53 hibernate-validator-5.1.2docsapihelp-doc.html
文件 2745 2014-03-02 19:53 hibernate-validator-5.1.2docsapiindex.html
文件 1323987 2014-03-02 19:53 hibernate-validator-5.1.2docsapiindex-all.html
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docsapiorg
目录 0 2018-04-20 15:40 hibernate-validator-5.1.2docsapiorghibernate
............此处省略3168个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)