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 TypeMethodDescriptionboolean
Class
<? extends Annotation> static final String
Deprecated.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) int
hashCode()
void
setAnnotationClass
(Class<? extends Annotation> annotationClass) void
setArchetypeName
(String archetypeName) void
setSuperType
(AnnotationType superType) void
setSuperTypeName
(String superTypeName) toString()
void
Methods 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. Returnnull
if no such property profile is defined.- Parameters:
name
-- Returns:
- a
PropertyProfile
ornull
.
-
createNewInstance
- Specified by:
createNewInstance
in 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:
getSuperType
in classAnnotationFactory
-
toString
-
getBaseType
- Specified by:
getBaseType
in classAnnotationFactory
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAnnotationFactory
-
equals
- Overrides:
equals
in 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:
getWranglerFactory
in 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:
getArchetypeName
in 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 withoutarchetype
attribute definition. Functionality: If methodgetArchetypeName()
returnsnull
, the current name of the type viaAnnotationFactory.getName()
will be returned.- Parameters:
type
- Annotation type instance- Returns:
- Archetype name
-