Class AnnotationType
java.lang.Object
com.levigo.jadice.annotation.profiles.AnnotationFactory
com.levigo.jadice.annotation.profiles.AnnotationType
-
Field Summary
FieldsFields inherited from class com.levigo.jadice.annotation.profiles.AnnotationFactory
initializerFactories, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<? extends Annotation> static final StringDeprecated.For internal use only, location of this method may change in future.List<PropertyProfile<?>> Return the list or property profiles native to this type.getPropertyProfile(String name) Return a property profile by its property name.List<PropertyProfile<?>> List<ToolkitBasedFactory<com.levigo.jadice.annotation.internal.renderer.AnnotationRenderer<? extends Annotation>>> Deprecated.This method is for XML umarshalling use onlyorg.jadice.util.base.Factory<com.levigo.jadice.annotation.internal.renderer.AnnotationRenderer<? extends Annotation>, RuntimeException> Return the renderer factory for the current toolkit set viaAnnotationFactory.setToolkitType(String).org.jadice.util.base.Factory<com.levigo.jadice.annotation.internal.renderer.AnnotationRenderer<? extends Annotation>, RuntimeException> getRendererFactory(String toolkitType) Deprecated.This method is for XML umarshalling use onlyorg.jadice.util.base.Factory<AnnotationWrangler, RuntimeException> Return the wrangler factory for the current toolkit set viaAnnotationFactory.setToolkitType(String).org.jadice.util.base.Factory<AnnotationWrangler, RuntimeException> getWranglerFactory(String toolkitType) inthashCode()voidsetAnnotationClass(Class<? extends Annotation> annotationClass) voidsetArchetypeName(String archetypeName) voidsetSuperType(AnnotationType superType) voidsetSuperTypeName(String superTypeName) toString()voidMethods inherited from class com.levigo.jadice.annotation.profiles.AnnotationFactory
getAnnotationProfile, getCustomizerFactories, getCustomizers, getInitializerFactories, getInitializerFactory, getInitializerFactory, getLabel, getLabels, getName, getOwnerProfile, getToolkitType, setCustomizerFactories, setInitializerFactories, setLabels, setName, setOwnerProfile, setToolkitType
-
Field Details
-
wranglerFactories
-
-
Constructor Details
-
AnnotationType
public AnnotationType()
-
-
Method Details
-
setAnnotationClass
- Parameters:
annotationClass- the annotationClass to set
-
getAnnotationClass
- Returns:
- the annotationClass
-
getLocalPropertyProfiles
Return the list or property profiles native to this type. This list does not include the parent's properties. This method is primarily used for XML marshalling and unmarshalling. UsegetPropertyProfiles()in order to return all property profiles pertaining to this type.- Returns:
- the propertyProfiles
-
getPropertyProfiles
- Returns:
- the propertyProfiles
-
getPropertyProfile
Return a property profile by its property name. Returnnullif no such property profile is defined.- Parameters:
name-- Returns:
- a
PropertyProfileornull.
-
createNewInstance
- Specified by:
createNewInstancein classAnnotationFactory
-
getRendererFactory
public org.jadice.util.base.Factory<com.levigo.jadice.annotation.internal.renderer.AnnotationRenderer<? extends Annotation>,RuntimeException> getRendererFactory()Return the renderer factory for the current toolkit set viaAnnotationFactory.setToolkitType(String).- Returns:
- the renderer factory for the current toolkit set via
AnnotationFactory.setToolkitType(String).
-
getRendererFactory
public org.jadice.util.base.Factory<com.levigo.jadice.annotation.internal.renderer.AnnotationRenderer<? extends Annotation>,RuntimeException> getRendererFactory(String toolkitType) - Returns:
- the renderer factory
-
setSuperTypeName
-
getSuperTypeName
- Returns:
- the superTypeName
-
setSuperType
-
getSuperType
- Specified by:
getSuperTypein classAnnotationFactory
-
toString
-
getBaseType
- Specified by:
getBaseTypein classAnnotationFactory
-
hashCode
public int hashCode()- Overrides:
hashCodein classAnnotationFactory
-
equals
- Overrides:
equalsin classAnnotationFactory
-
getRendererFactories
@Deprecated public List<ToolkitBasedFactory<com.levigo.jadice.annotation.internal.renderer.AnnotationRenderer<? extends Annotation>>> getRendererFactories()Deprecated.This method is for XML umarshalling use only -
getWranglerFactory
Return the wrangler factory for the current toolkit set viaAnnotationFactory.setToolkitType(String).- Specified by:
getWranglerFactoryin classAnnotationFactory- Returns:
- the wrangler factory for the current toolkit set via
AnnotationFactory.setToolkitType(String).
-
getWranglerFactory
public org.jadice.util.base.Factory<AnnotationWrangler,RuntimeException> getWranglerFactory(String toolkitType) - Returns:
- the wrangler factory
-
getWranglerFactories
Deprecated.This method is for XML umarshalling use only -
validate
-
setArchetypeName
-
getArchetypeName
- Overrides:
getArchetypeNamein classAnnotationFactory
-
getArchetypeName
Deprecated.For internal use only, location of this method may change in future.Helper method to determine the archetype for older annotation profiles withoutarchetypeattribute definition. Functionality: If methodgetArchetypeName()returnsnull, the current name of the type viaAnnotationFactory.getName()will be returned.- Parameters:
type- Annotation type instance- Returns:
- Archetype name
-