Class AnnotationFactory
java.lang.Object
com.levigo.jadice.annotation.profiles.AnnotationFactory
- Direct Known Subclasses:
AnnotationTemplate
,AnnotationType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Annotation
boolean
Return the "effective" profile to which this type or template belongs.abstract AnnotationType
Deprecated.This method is for XML umarshalling use onlyReturn the initializer factory for the current toolkit set viasetToolkitType(String)
.getInitializerFactory
(String toolkitType) getLabel()
getName()
Return the profile that "owns" this type or template.abstract AnnotationFactory
static String
abstract org.jadice.util.base.Factory
<AnnotationWrangler, RuntimeException> int
hashCode()
void
setCustomizerFactories
(List<NameBasedFactory<AnnotationCustomizer>> customizerFactories) void
setInitializerFactories
(List<AnnotationInitializerFactory> initializerFactories) void
void
void
setOwnerProfile
(AnnotationProfile ownerProfile) static void
setToolkitType
(String toolkitType)
-
Field Details
-
name
-
initializerFactories
-
-
Constructor Details
-
AnnotationFactory
public AnnotationFactory()
-
-
Method Details
-
getToolkitType
-
setToolkitType
-
setName
- Parameters:
name
- the name to set
-
getName
- Returns:
- the name
-
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
- Parameters:
ownerProfile
- the ownerProfile to set
-
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
-
getLabels
-
getLabel
-
getInitializerFactory
Return the initializer factory for the current toolkit set viasetToolkitType(String)
.- Returns:
- the initializer factory for the current toolkit set via
setToolkitType(String)
.
-
getInitializerFactory
- Returns:
- the initializer factory
-
getInitializerFactories
-
setInitializerFactories
-
getSuperType
-
getBaseType
-
createNewInstance
-
getWranglerFactory
public abstract org.jadice.util.base.Factory<AnnotationWrangler,RuntimeException> getWranglerFactory() -
hashCode
public int hashCode() -
equals
-
getArchetypeName
-
setCustomizerFactories
public void setCustomizerFactories(List<NameBasedFactory<AnnotationCustomizer>> customizerFactories) -
getCustomizerFactories
Deprecated.This method is for XML umarshalling use only -
getCustomizers
-