public class DefaultConfiguration extends java.lang.Object implements Configuration
Configuration
interfaceModifier and Type | Field and Description |
---|---|
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
embeddableAnn |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
embeddedAnn |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
entitiesAnn |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
entityAnn |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
skipAnn |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
superTypeAnn |
Constructor and Description |
---|
DefaultConfiguration(javax.annotation.processing.RoundEnvironment roundEnv,
java.util.Map<java.lang.String,java.lang.String> options,
java.util.Collection<java.lang.String> keywords,
java.lang.Class<? extends java.lang.annotation.Annotation> entitiesAnn,
java.lang.Class<? extends java.lang.annotation.Annotation> entityAnn,
java.lang.Class<? extends java.lang.annotation.Annotation> superTypeAnn,
java.lang.Class<? extends java.lang.annotation.Annotation> embeddableAnn,
java.lang.Class<? extends java.lang.annotation.Annotation> embeddedAnn,
java.lang.Class<? extends java.lang.annotation.Annotation> skipAnn) |
Modifier and Type | Method and Description |
---|---|
<T> void |
addCustomType(java.lang.Class<T> type,
java.lang.Class<? extends Expression<T>> queryType) |
void |
addExcludedClass(java.lang.String className) |
void |
addExcludedPackage(java.lang.String packageName) |
VisitorConfig |
getConfig(javax.lang.model.element.TypeElement e,
java.util.List<? extends javax.lang.model.element.Element> elements) |
Serializer |
getDTOSerializer() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getEmbeddableAnnotation() |
Serializer |
getEmbeddableSerializer() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getEmbeddedAnnotation() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getEntitiesAnnotation() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getEntityAnnotation() |
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getEntityAnnotations() |
Serializer |
getEntitySerializer() |
java.util.Collection<java.lang.String> |
getKeywords() |
java.lang.String |
getNamePrefix() |
java.lang.String |
getNameSuffix() |
QueryTypeFactory |
getQueryTypeFactory() |
SerializerConfig |
getSerializerConfig(EntityType entityType) |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getSkipAnnotation() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getSuperTypeAnnotation() |
Serializer |
getSupertypeSerializer() |
TypeMappings |
getTypeMappings() |
void |
inspect(javax.lang.model.element.Element element,
Annotations annotations) |
boolean |
isBlockedField(javax.lang.model.element.VariableElement field) |
boolean |
isBlockedGetter(javax.lang.model.element.ExecutableElement getter) |
boolean |
isExcludedClass(java.lang.String className) |
boolean |
isExcludedPackage(java.lang.String packageName) |
boolean |
isUnknownAsEmbedded() |
boolean |
isUseFields() |
boolean |
isUseGetters() |
boolean |
isValidConstructor(javax.lang.model.element.ExecutableElement constructor) |
boolean |
isValidField(javax.lang.model.element.VariableElement field) |
boolean |
isValidGetter(javax.lang.model.element.ExecutableElement getter) |
void |
setNamePrefix(java.lang.String namePrefix) |
void |
setNameSuffix(java.lang.String nameSuffix) |
void |
setUnknownAsEmbedded(boolean unknownAsEmbedded) |
void |
setUseFields(boolean b) |
void |
setUseGetters(boolean b) |
protected final java.lang.Class<? extends java.lang.annotation.Annotation> entityAnn
@Nullable protected final java.lang.Class<? extends java.lang.annotation.Annotation> entitiesAnn
@Nullable protected final java.lang.Class<? extends java.lang.annotation.Annotation> superTypeAnn
@Nullable protected final java.lang.Class<? extends java.lang.annotation.Annotation> embeddedAnn
@Nullable protected final java.lang.Class<? extends java.lang.annotation.Annotation> embeddableAnn
@Nullable protected final java.lang.Class<? extends java.lang.annotation.Annotation> skipAnn
public DefaultConfiguration(javax.annotation.processing.RoundEnvironment roundEnv, java.util.Map<java.lang.String,java.lang.String> options, java.util.Collection<java.lang.String> keywords, @Nullable java.lang.Class<? extends java.lang.annotation.Annotation> entitiesAnn, java.lang.Class<? extends java.lang.annotation.Annotation> entityAnn, @Nullable java.lang.Class<? extends java.lang.annotation.Annotation> superTypeAnn, @Nullable java.lang.Class<? extends java.lang.annotation.Annotation> embeddableAnn, @Nullable java.lang.Class<? extends java.lang.annotation.Annotation> embeddedAnn, @Nullable java.lang.Class<? extends java.lang.annotation.Annotation> skipAnn)
public void addExcludedClass(java.lang.String className)
addExcludedClass
in interface Configuration
public void addExcludedPackage(java.lang.String packageName)
addExcludedPackage
in interface Configuration
public VisitorConfig getConfig(javax.lang.model.element.TypeElement e, java.util.List<? extends javax.lang.model.element.Element> elements)
getConfig
in interface Configuration
public Serializer getDTOSerializer()
getDTOSerializer
in interface Configuration
@Nullable public java.lang.Class<? extends java.lang.annotation.Annotation> getEntitiesAnnotation()
getEntitiesAnnotation
in interface Configuration
@Nullable public java.lang.Class<? extends java.lang.annotation.Annotation> getEmbeddableAnnotation()
getEmbeddableAnnotation
in interface Configuration
public Serializer getEmbeddableSerializer()
getEmbeddableSerializer
in interface Configuration
public java.lang.Class<? extends java.lang.annotation.Annotation> getEntityAnnotation()
getEntityAnnotation
in interface Configuration
@Nullable public java.lang.Class<? extends java.lang.annotation.Annotation> getEmbeddedAnnotation()
getEmbeddedAnnotation
in interface Configuration
public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getEntityAnnotations()
getEntityAnnotations
in interface Configuration
public Serializer getEntitySerializer()
getEntitySerializer
in interface Configuration
public java.lang.String getNamePrefix()
getNamePrefix
in interface Configuration
public SerializerConfig getSerializerConfig(EntityType entityType)
getSerializerConfig
in interface Configuration
@Nullable public java.lang.Class<? extends java.lang.annotation.Annotation> getSkipAnnotation()
getSkipAnnotation
in interface Configuration
@Nullable public java.lang.Class<? extends java.lang.annotation.Annotation> getSuperTypeAnnotation()
getSuperTypeAnnotation
in interface Configuration
public Serializer getSupertypeSerializer()
getSupertypeSerializer
in interface Configuration
public void inspect(javax.lang.model.element.Element element, Annotations annotations)
inspect
in interface Configuration
public boolean isBlockedField(javax.lang.model.element.VariableElement field)
isBlockedField
in interface Configuration
public boolean isBlockedGetter(javax.lang.model.element.ExecutableElement getter)
isBlockedGetter
in interface Configuration
public boolean isUseFields()
isUseFields
in interface Configuration
public boolean isUseGetters()
isUseGetters
in interface Configuration
public boolean isValidConstructor(javax.lang.model.element.ExecutableElement constructor)
isValidConstructor
in interface Configuration
public boolean isValidField(javax.lang.model.element.VariableElement field)
isValidField
in interface Configuration
public boolean isValidGetter(javax.lang.model.element.ExecutableElement getter)
isValidGetter
in interface Configuration
public void setNamePrefix(java.lang.String namePrefix)
public void setUseFields(boolean b)
public void setUseGetters(boolean b)
public TypeMappings getTypeMappings()
getTypeMappings
in interface Configuration
public java.util.Collection<java.lang.String> getKeywords()
getKeywords
in interface Configuration
public java.lang.String getNameSuffix()
getNameSuffix
in interface Configuration
public void setNameSuffix(java.lang.String nameSuffix)
public <T> void addCustomType(java.lang.Class<T> type, java.lang.Class<? extends Expression<T>> queryType)
public QueryTypeFactory getQueryTypeFactory()
getQueryTypeFactory
in interface Configuration
public boolean isExcludedPackage(@Nonnull java.lang.String packageName)
isExcludedPackage
in interface Configuration
public boolean isExcludedClass(@Nonnull java.lang.String className)
isExcludedClass
in interface Configuration
public boolean isUnknownAsEmbedded()
isUnknownAsEmbedded
in interface Configuration
public void setUnknownAsEmbedded(boolean unknownAsEmbedded)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.