com.mysema.query.apt
Class DefaultConfiguration

java.lang.Object
  extended by com.mysema.query.apt.DefaultConfiguration
All Implemented Interfaces:
Configuration
Direct Known Subclasses:
JPAConfiguration

public class DefaultConfiguration
extends Object
implements Configuration

DefaultConfiguration is a simple implementation of the Configuration interface

Author:
tiwe

Field Summary
protected  Class<? extends Annotation> embeddableAnn
           
protected  Class<? extends Annotation> embeddedAnn
           
protected  Class<? extends Annotation> entitiesAnn
           
protected  Class<? extends Annotation> entityAnn
           
protected  Class<? extends Annotation> skipAnn
           
protected  Class<? extends Annotation> superTypeAnn
           
 
Constructor Summary
DefaultConfiguration(RoundEnvironment roundEnv, Map<String,String> options, Collection<String> keywords, Class<? extends Annotation> entitiesAnn, Class<? extends Annotation> entityAnn, Class<? extends Annotation> superTypeAnn, Class<? extends Annotation> embeddableAnn, Class<? extends Annotation> embeddedAnn, Class<? extends Annotation> skipAnn)
           
 
Method Summary
 VisitorConfig getConfig(TypeElement e, List<? extends Element> elements)
           
 Serializer getDTOSerializer()
           
 Class<? extends Annotation> getEmbeddableAnnotation()
           
 Serializer getEmbeddableSerializer()
           
 Class<? extends Annotation> getEmbeddedAnnotation()
           
 Class<? extends Annotation> getEntitiesAnnotation()
           
 Class<? extends Annotation> getEntityAnnotation()
           
 Serializer getEntitySerializer()
           
 Collection<String> getKeywords()
           
 String getNamePrefix()
           
 String getNameSuffix()
           
 SerializerConfig getSerializerConfig(EntityType entityType)
           
 Class<? extends Annotation> getSkipAnnotation()
           
 Class<? extends Annotation> getSuperTypeAnnotation()
           
 Serializer getSupertypeSerializer()
           
 TypeMappings getTypeMappings()
           
 boolean isBlockedField(VariableElement field)
           
 boolean isBlockedGetter(ExecutableElement getter)
           
 boolean isDefaultOverwrite()
           
 boolean isUseFields()
           
 boolean isUseGetters()
           
 boolean isValidConstructor(ExecutableElement constructor)
           
 boolean isValidField(VariableElement field)
           
 boolean isValidGetter(ExecutableElement getter)
           
 void setNamePrefix(String namePrefix)
           
 void setNameSuffix(String nameSuffix)
           
 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 Class<? extends Annotation> entityAnn

entitiesAnn

@Nullable
protected final Class<? extends Annotation> entitiesAnn

superTypeAnn

@Nullable
protected final Class<? extends Annotation> superTypeAnn

embeddedAnn

@Nullable
protected final Class<? extends Annotation> embeddedAnn

embeddableAnn

@Nullable
protected final Class<? extends Annotation> embeddableAnn

skipAnn

@Nullable
protected final Class<? extends Annotation> skipAnn
Constructor Detail

DefaultConfiguration

public DefaultConfiguration(RoundEnvironment roundEnv,
                            Map<String,String> options,
                            Collection<String> keywords,
                            @Nullable
                            Class<? extends Annotation> entitiesAnn,
                            Class<? extends Annotation> entityAnn,
                            @Nullable
                            Class<? extends Annotation> superTypeAnn,
                            @Nullable
                            Class<? extends Annotation> embeddableAnn,
                            @Nullable
                            Class<? extends Annotation> embeddedAnn,
                            @Nullable
                            Class<? extends Annotation> skipAnn)
Method Detail

getConfig

public VisitorConfig getConfig(TypeElement e,
                               List<? extends Element> elements)
Specified by:
getConfig in interface Configuration

getDTOSerializer

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

getEntitiesAnnotation

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

getEmbeddableAnnotation

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

getEmbeddableSerializer

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

getEntityAnnotation

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

getEmbeddedAnnotation

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

getEntitySerializer

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

getNamePrefix

public String getNamePrefix()
Specified by:
getNamePrefix in interface Configuration

getSerializerConfig

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

getSkipAnnotation

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

getSuperTypeAnnotation

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

getSupertypeSerializer

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

isBlockedField

public boolean isBlockedField(VariableElement field)
Specified by:
isBlockedField in interface Configuration

isBlockedGetter

public boolean isBlockedGetter(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(ExecutableElement constructor)
Specified by:
isValidConstructor in interface Configuration

isValidField

public boolean isValidField(VariableElement field)
Specified by:
isValidField in interface Configuration

isValidGetter

public boolean isValidGetter(ExecutableElement getter)
Specified by:
isValidGetter in interface Configuration

setNamePrefix

public void setNamePrefix(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 Collection<String> getKeywords()
Specified by:
getKeywords in interface Configuration

getNameSuffix

public String getNameSuffix()
Specified by:
getNameSuffix in interface Configuration

setNameSuffix

public void setNameSuffix(String nameSuffix)


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