com.mysema.query.apt
Class DefaultConfiguration
java.lang.Object
com.mysema.query.apt.DefaultConfiguration
- All Implemented Interfaces:
- Configuration
- Direct Known Subclasses:
- JDOConfiguration, JPAConfiguration
public class DefaultConfiguration
- extends java.lang.Object
- implements Configuration
DefaultConfiguration is a simple implementation of the Configuration interface
- Author:
- tiwe
Field Summary |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
embeddableAnn
|
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 Summary |
DefaultConfiguration(javax.annotation.processing.RoundEnvironment roundEnv,
java.util.Map<java.lang.String,java.lang.String> options,
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> skipAnn)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityAnn
protected final java.lang.Class<? extends java.lang.annotation.Annotation> entityAnn
superTypeAnn
@Nullable
protected final java.lang.Class<? extends java.lang.annotation.Annotation> superTypeAnn
embeddableAnn
@Nullable
protected final java.lang.Class<? extends java.lang.annotation.Annotation> embeddableAnn
skipAnn
@Nullable
protected final java.lang.Class<? extends java.lang.annotation.Annotation> skipAnn
DefaultConfiguration
public DefaultConfiguration(javax.annotation.processing.RoundEnvironment roundEnv,
java.util.Map<java.lang.String,java.lang.String> options,
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> skipAnn)
getConfig
public VisitorConfig getConfig(javax.lang.model.element.TypeElement e,
java.util.List<? extends javax.lang.model.element.Element> elements)
- Specified by:
getConfig
in interface Configuration
- Returns:
getDTOSerializer
public Serializer getDTOSerializer()
- Specified by:
getDTOSerializer
in interface Configuration
- Returns:
getEmbeddableAnn
@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getEmbeddableAnn()
- Specified by:
getEmbeddableAnn
in interface Configuration
- Returns:
getEmbeddableSerializer
public Serializer getEmbeddableSerializer()
- Specified by:
getEmbeddableSerializer
in interface Configuration
- Returns:
getEntityAnn
public java.lang.Class<? extends java.lang.annotation.Annotation> getEntityAnn()
- Specified by:
getEntityAnn
in interface Configuration
- Returns:
getEntitySerializer
public Serializer getEntitySerializer()
- Specified by:
getEntitySerializer
in interface Configuration
- Returns:
getNamePrefix
public java.lang.String getNamePrefix()
- Specified by:
getNamePrefix
in interface Configuration
- Returns:
getSerializerConfig
public SerializerConfig getSerializerConfig(EntityType model)
- Specified by:
getSerializerConfig
in interface Configuration
- Returns:
getSkipAnn
@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getSkipAnn()
- Specified by:
getSkipAnn
in interface Configuration
- Returns:
getSuperTypeAnn
@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getSuperTypeAnn()
- Specified by:
getSuperTypeAnn
in interface Configuration
- Returns:
getSupertypeSerializer
public Serializer getSupertypeSerializer()
- Specified by:
getSupertypeSerializer
in interface Configuration
- Returns:
isBlockedField
public boolean isBlockedField(javax.lang.model.element.VariableElement field)
- Specified by:
isBlockedField
in interface Configuration
- Returns:
isBlockedGetter
public boolean isBlockedGetter(javax.lang.model.element.ExecutableElement getter)
- Specified by:
isBlockedGetter
in interface Configuration
- Returns:
isUseFields
public boolean isUseFields()
- Specified by:
isUseFields
in interface Configuration
- Returns:
isUseGetters
public boolean isUseGetters()
- Specified by:
isUseGetters
in interface Configuration
- Returns:
isValidConstructor
public boolean isValidConstructor(javax.lang.model.element.ExecutableElement constructor)
- Specified by:
isValidConstructor
in interface Configuration
- Returns:
isValidField
public boolean isValidField(javax.lang.model.element.VariableElement field)
- Specified by:
isValidField
in interface Configuration
- Returns:
isValidGetter
public boolean isValidGetter(javax.lang.model.element.ExecutableElement getter)
- Specified by:
isValidGetter
in interface Configuration
- Returns:
setNamePrefix
public void setNamePrefix(java.lang.String namePrefix)
- Specified by:
setNamePrefix
in interface Configuration
setUseFields
public void setUseFields(boolean b)
- Specified by:
setUseFields
in interface Configuration
setUseGetters
public void setUseGetters(boolean b)
- Specified by:
setUseGetters
in interface Configuration
getTypeMappings
public TypeMappings getTypeMappings()
- Specified by:
getTypeMappings
in interface Configuration
- Returns:
getKeywords
public java.util.Collection<java.lang.String> getKeywords()
- Specified by:
getKeywords
in interface Configuration
- Returns:
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.