Class AnnotationFactory

java.lang.Object
com.levigo.jadice.annotation.profiles.AnnotationFactory
Direct Known Subclasses:
AnnotationTemplate, AnnotationType

public abstract class AnnotationFactory extends Object
  • Field Details

  • Constructor Details

    • AnnotationFactory

      public AnnotationFactory()
  • Method Details

    • getToolkitType

      public static String getToolkitType()
    • setToolkitType

      public static void setToolkitType(String toolkitType)
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getName

      public String getName()
      Returns:
      the name
    • getAnnotationProfile

      public AnnotationProfile getAnnotationProfile()
      Return the "effective" profile to which this type or template belongs. The effective profile is the "bottom-most" profile. If a profile inherits a type/template from a parent profile, it becomes the effective profile for it.
      Returns:
      the annotationProfile
    • setOwnerProfile

      public void setOwnerProfile(AnnotationProfile ownerProfile)
      Parameters:
      ownerProfile - the ownerProfile to set
    • getOwnerProfile

      public AnnotationProfile getOwnerProfile()
      Return the profile that "owns" this type or template. This is the profile in which the type/template was defined. Profile inheritance does not change the owner profile for a given inherited type.
      Returns:
      the ownerProfile
    • setLabels

      public void setLabels(Labels labels)
    • getLabels

      public Labels getLabels()
    • getLabel

      public String getLabel()
    • getInitializerFactory

      public AnnotationInitializerFactory getInitializerFactory()
      Return the initializer factory for the current toolkit set via setToolkitType(String).
      Returns:
      the initializer factory for the current toolkit set via setToolkitType(String) .
    • getInitializerFactory

      public AnnotationInitializerFactory getInitializerFactory(String toolkitType)
      Returns:
      the initializer factory
    • getInitializerFactories

      public List<AnnotationInitializerFactory> getInitializerFactories()
    • setInitializerFactories

      public void setInitializerFactories(List<AnnotationInitializerFactory> initializerFactories)
    • getSuperType

      public abstract AnnotationFactory getSuperType()
    • getBaseType

      public abstract AnnotationType getBaseType()
    • createNewInstance

      public abstract Annotation createNewInstance()
    • getWranglerFactory

      public abstract org.jadice.util.base.Factory<AnnotationWrangler,RuntimeException> getWranglerFactory()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getArchetypeName

      public String getArchetypeName()
    • setCustomizerFactories

      public void setCustomizerFactories(List<NameBasedFactory<AnnotationCustomizer>> customizerFactories)
    • getCustomizerFactories

      @Deprecated public List<NameBasedFactory<AnnotationCustomizer>> getCustomizerFactories()
      Deprecated.
      This method is for XML umarshalling use only
    • getCustomizers

      public List<AnnotationCustomizer> getCustomizers()