public class DefaultConfiguration extends java.lang.Object implements Configuration
Configuration interface| Modifier 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 Configurationpublic void addExcludedPackage(java.lang.String packageName)
addExcludedPackage in interface Configurationpublic VisitorConfig getConfig(javax.lang.model.element.TypeElement e, java.util.List<? extends javax.lang.model.element.Element> elements)
getConfig in interface Configurationpublic 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 Configurationpublic Serializer getEmbeddableSerializer()
getEmbeddableSerializer in interface Configurationpublic 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 Configurationpublic java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getEntityAnnotations()
getEntityAnnotations in interface Configurationpublic Serializer getEntitySerializer()
getEntitySerializer in interface Configurationpublic java.lang.String getNamePrefix()
getNamePrefix in interface Configurationpublic 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 Configurationpublic Serializer getSupertypeSerializer()
getSupertypeSerializer in interface Configurationpublic void inspect(javax.lang.model.element.Element element,
Annotations annotations)
inspect in interface Configurationpublic boolean isBlockedField(javax.lang.model.element.VariableElement field)
isBlockedField in interface Configurationpublic boolean isBlockedGetter(javax.lang.model.element.ExecutableElement getter)
isBlockedGetter in interface Configurationpublic boolean isUseFields()
isUseFields in interface Configurationpublic boolean isUseGetters()
isUseGetters in interface Configurationpublic boolean isValidConstructor(javax.lang.model.element.ExecutableElement constructor)
isValidConstructor in interface Configurationpublic boolean isValidField(javax.lang.model.element.VariableElement field)
isValidField in interface Configurationpublic boolean isValidGetter(javax.lang.model.element.ExecutableElement getter)
isValidGetter in interface Configurationpublic void setNamePrefix(java.lang.String namePrefix)
public void setUseFields(boolean b)
public void setUseGetters(boolean b)
public TypeMappings getTypeMappings()
getTypeMappings in interface Configurationpublic java.util.Collection<java.lang.String> getKeywords()
getKeywords in interface Configurationpublic java.lang.String getNameSuffix()
getNameSuffix in interface Configurationpublic 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 Configurationpublic boolean isExcludedPackage(@Nonnull
java.lang.String packageName)
isExcludedPackage in interface Configurationpublic boolean isExcludedClass(@Nonnull
java.lang.String className)
isExcludedClass in interface Configurationpublic boolean isUnknownAsEmbedded()
isUnknownAsEmbedded in interface Configurationpublic void setUnknownAsEmbedded(boolean unknownAsEmbedded)
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.