com.mysema.query.apt
Class DefaultConfiguration

java.lang.Object
  extended by 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> 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 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> 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)
           
 
Method Summary
 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()
           
 Serializer getEntitySerializer()
           
 java.util.Collection<java.lang.String> getKeywords()
           
 java.lang.String getNamePrefix()
           
 SerializerConfig getSerializerConfig(EntityType model)
           
 java.lang.Class<? extends java.lang.annotation.Annotation> getSkipAnnotation()
           
 java.lang.Class<? extends java.lang.annotation.Annotation> getSuperTypeAnnotation()
           
 Serializer getSupertypeSerializer()
           
 TypeMappings getTypeMappings()
           
 boolean isBlockedField(javax.lang.model.element.VariableElement field)
           
 boolean isBlockedGetter(javax.lang.model.element.ExecutableElement getter)
           
 boolean isDefaultOverwrite()
           
 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 setUseFields(boolean b)
           
 void setUseGetters(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityAnn

protected final java.lang.Class<? extends java.lang.annotation.Annotation> entityAnn

entitiesAnn

@Nullable
protected final java.lang.Class<? extends java.lang.annotation.Annotation> entitiesAnn

superTypeAnn

@Nullable
protected final java.lang.Class<? extends java.lang.annotation.Annotation> superTypeAnn

embeddedAnn

@Nullable
protected final java.lang.Class<? extends java.lang.annotation.Annotation> embeddedAnn

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
Constructor Detail

DefaultConfiguration

public DefaultConfiguration(javax.annotation.processing.RoundEnvironment roundEnv,
                            java.util.Map<java.lang.String,java.lang.String> options,
                            @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)
Method Detail

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

getDTOSerializer

public Serializer getDTOSerializer()
Specified by:
getDTOSerializer in interface Configuration

getEntitiesAnnotation

@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getEntitiesAnnotation()
Specified by:
getEntitiesAnnotation in interface Configuration

getEmbeddableAnnotation

@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getEmbeddableAnnotation()
Specified by:
getEmbeddableAnnotation in interface Configuration

getEmbeddableSerializer

public Serializer getEmbeddableSerializer()
Specified by:
getEmbeddableSerializer in interface Configuration

getEntityAnnotation

public java.lang.Class<? extends java.lang.annotation.Annotation> getEntityAnnotation()
Specified by:
getEntityAnnotation in interface Configuration

getEmbeddedAnnotation

@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getEmbeddedAnnotation()
Specified by:
getEmbeddedAnnotation in interface Configuration

getEntitySerializer

public Serializer getEntitySerializer()
Specified by:
getEntitySerializer in interface Configuration

getNamePrefix

public java.lang.String getNamePrefix()
Specified by:
getNamePrefix in interface Configuration

getSerializerConfig

public SerializerConfig getSerializerConfig(EntityType model)
Specified by:
getSerializerConfig in interface Configuration

getSkipAnnotation

@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getSkipAnnotation()
Specified by:
getSkipAnnotation in interface Configuration

getSuperTypeAnnotation

@Nullable
public java.lang.Class<? extends java.lang.annotation.Annotation> getSuperTypeAnnotation()
Specified by:
getSuperTypeAnnotation in interface Configuration

getSupertypeSerializer

public Serializer getSupertypeSerializer()
Specified by:
getSupertypeSerializer in interface Configuration

isBlockedField

public boolean isBlockedField(javax.lang.model.element.VariableElement field)
Specified by:
isBlockedField in interface Configuration

isBlockedGetter

public boolean isBlockedGetter(javax.lang.model.element.ExecutableElement getter)
Specified by:
isBlockedGetter in interface Configuration

isDefaultOverwrite

public boolean isDefaultOverwrite()
Specified by:
isDefaultOverwrite in interface Configuration

isUseFields

public boolean isUseFields()
Specified by:
isUseFields in interface Configuration

isUseGetters

public boolean isUseGetters()
Specified by:
isUseGetters in interface Configuration

isValidConstructor

public boolean isValidConstructor(javax.lang.model.element.ExecutableElement constructor)
Specified by:
isValidConstructor in interface Configuration

isValidField

public boolean isValidField(javax.lang.model.element.VariableElement field)
Specified by:
isValidField in interface Configuration

isValidGetter

public boolean isValidGetter(javax.lang.model.element.ExecutableElement getter)
Specified by:
isValidGetter in interface Configuration

setNamePrefix

public void setNamePrefix(java.lang.String namePrefix)

setUseFields

public void setUseFields(boolean b)

setUseGetters

public void setUseGetters(boolean b)

getTypeMappings

public TypeMappings getTypeMappings()
Specified by:
getTypeMappings in interface Configuration

getKeywords

public java.util.Collection<java.lang.String> getKeywords()
Specified by:
getKeywords in interface Configuration


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.