br.com.objectos.code.AnnotationValueInfoFake Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2014 Objectos, Fábrica de Software LTDA.
*
* 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 br.com.objectos.code;
/**
* @author [email protected] (Marcio Endo)
*/
class AnnotationValueInfoFake {
public static final AnnotationValueInfo GROUPS = builder()
.name("groups")
.arrayType()
.build();
public static final AnnotationValueInfo MESSAGE_JAVAX_NOT_NULL = builder()
.name("message")
.string("{javax.validation.constraints.NotNull.message}")
.build();
public static final AnnotationValueInfo PAYLOAD = builder()
.name("payload")
.arrayType()
.build();
public static final AnnotationValueInfo STRING_ABC = builder()
.name("string")
.string("abc")
.build();
public static final AnnotationValueInfo TYPE_INFO_INTEGER = builder()
.name("typeInfo")
.simpleTypeInfo(SimpleTypeInfoFake2.INTEGER)
.build();
public static final AnnotationValueInfo TYPE_INFO_LONG = builder()
.name("typeInfo")
.simpleTypeInfo(SimpleTypeInfoFake2.LONG)
.build();
public static final AnnotationValueInfo VALIDATED_BY = builder()
.name("validatedBy")
.arrayType()
.build();
public static final AnnotationValueInfo VALUE_123 = builder()
.name("value")
.intValue(123)
.build();
public static final AnnotationValueInfo VALUE_456 = builder()
.name("value")
.intValue(456)
.build();
public static final AnnotationValueInfo VALUE_LEVEL_1 = builder()
.name("value")
.enumValue(EnumConstantInfoFake.LEVEL_LEVEL_1)
.build();
public static final AnnotationValueInfo VALUE_LEVEL_2 = builder()
.name("value")
.enumValue(EnumConstantInfoFake.LEVEL_LEVEL_2)
.build();
public static final AnnotationValueInfo VALUE_LEVEL_3 = builder()
.name("value")
.enumValue(EnumConstantInfoFake.LEVEL_LEVEL_3)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_ANNOTATION_TYPE = builder()
.name("value")
.arrayEnum(EnumConstantInfoFake.ELEMENT_TYPE_ANNOTATION_TYPE)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_CONSTRUCTOR = builder()
.name("value")
.arrayEnum(EnumConstantInfoFake.ELEMENT_TYPE_CONSTRUCTOR)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_FIELD = builder()
.name("value")
.arrayEnum(EnumConstantInfoFake.ELEMENT_TYPE_FIELD)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_METHOD = builder()
.name("value")
.arrayEnum(EnumConstantInfoFake.ELEMENT_TYPE_METHOD)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_PACKAGE = builder()
.name("value")
.arrayEnum(EnumConstantInfoFake.ELEMENT_TYPE_PACKAGE)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_METHOD_FIELD_ANNOTATION_TYPE_CONSTRUCTOR_PARAMETER = builder()
.name("value")
.arrayEnum(
EnumConstantInfoFake.ELEMENT_TYPE_METHOD,
EnumConstantInfoFake.ELEMENT_TYPE_FIELD,
EnumConstantInfoFake.ELEMENT_TYPE_ANNOTATION_TYPE,
EnumConstantInfoFake.ELEMENT_TYPE_CONSTRUCTOR,
EnumConstantInfoFake.ELEMENT_TYPE_PARAMETER)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_PARAMETER = builder()
.name("value")
.arrayEnum(EnumConstantInfoFake.ELEMENT_TYPE_PARAMETER)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_TYPE = builder()
.name("value")
.arrayEnum(EnumConstantInfoFake.ELEMENT_TYPE_TYPE)
.build();
public static final AnnotationValueInfo VALUE_ELEMENT_TYPE_TYPE_METHOD = builder()
.name("value")
.arrayEnum(
EnumConstantInfoFake.ELEMENT_TYPE_TYPE,
EnumConstantInfoFake.ELEMENT_TYPE_METHOD)
.build();
public static final AnnotationValueInfo VALUE_RETENTION_POLICY_RUNTIME = builder()
.name("value")
.enumValue(EnumConstantInfoFake.RETENTION_POLICY_RUNTIME)
.build();
public static final AnnotationValueInfo VALUE_RETENTION_POLICY_SOURCE = builder()
.name("value")
.enumValue(EnumConstantInfoFake.RETENTION_POLICY_SOURCE)
.build();
private AnnotationValueInfoFake() {
}
private static AnnotationValueInfoFakeBuilder builder() {
return new AnnotationValueInfoFakeBuilder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy