com.levigo.jadice.annotation.profiles
Class AnnotationType

java.lang.Object
  extended by com.levigo.jadice.annotation.profiles.AnnotationFactory
      extended by com.levigo.jadice.annotation.profiles.AnnotationType

public class AnnotationType
extends AnnotationFactory


Field Summary
protected  List<ToolkitBasedFactory<AnnotationWrangler>> wranglerFactories
           
 
Fields inherited from class com.levigo.jadice.annotation.profiles.AnnotationFactory
initializerFactories, name
 
Constructor Summary
AnnotationType()
           
 
Method Summary
 Annotation createNewInstance()
          Create a new annotation instance already initialized with the annotation's default values.
 boolean equals(Object obj)
           
 Class<? extends Annotation> getAnnotationClass()
           
 Class<? extends Annotation> getAnnotationClassXML()
          Deprecated. This method is for XML marshalling use only
 String getArchetypeName()
           
static String getArchetypeName(AnnotationType type)
          Deprecated. For internal use only, location of this method may change in future.
 AnnotationType getBaseType()
           
 List<PropertyProfile<?>> getLocalPropertyProfiles()
          Return the list or property profiles native to this type.
 PropertyProfile<?> getPropertyProfile(String name)
          Return a property profile by its property name.
 List<PropertyProfile<?>> getPropertyProfiles()
           
 List<ToolkitBasedFactory<AnnotationRenderer<? extends Annotation>>> getRendererFactories()
          Deprecated. This method is for XML umarshalling use only
 Factory<AnnotationRenderer<? extends Annotation>,RuntimeException> getRendererFactory()
          Return the renderer factory for the current toolkit set via AnnotationFactory.setToolkitType(String).
 Factory<AnnotationRenderer<? extends Annotation>,RuntimeException> getRendererFactory(String toolkitType)
           
 AnnotationType getSuperType()
           
 String getSuperTypeName()
           
 List<ToolkitBasedFactory<AnnotationWrangler>> getWranglerFactories()
          Deprecated. This method is for XML umarshalling use only
 Factory<AnnotationWrangler,RuntimeException> getWranglerFactory()
          Return the wrangler factory for the current toolkit set via AnnotationFactory.setToolkitType(String).
 Factory<AnnotationWrangler,RuntimeException> getWranglerFactory(String toolkitType)
           
 int hashCode()
           
 void setAnnotationClass(Class<? extends Annotation> annotationClass)
           
 void setAnnotationClassXML(Class<? extends Annotation> annotationClass)
          Deprecated. This method is for XML umarshalling use only
 void setArchetypeName(String archetypeName)
           
 void setSuperType(AnnotationType superType)
           
 void setSuperTypeName(String superTypeName)
           
 String toString()
           
 void validate(List<String> validationMessages)
           
 
Methods inherited from class com.levigo.jadice.annotation.profiles.AnnotationFactory
getAnnotationProfile, getCustomizerFactories, getCustomizers, getInitializerFactories, getInitializerFactory, getInitializerFactory, getLabel, getLabel, getLabels, getName, getOwnerProfile, getToolkitType, setCustomizerFactories, setInitializerFactories, setLabels, setName, setOwnerProfile, setToolkitType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

wranglerFactories

protected List<ToolkitBasedFactory<AnnotationWrangler>> wranglerFactories
Constructor Detail

AnnotationType

public AnnotationType()
Method Detail

setAnnotationClassXML

@Deprecated
public void setAnnotationClassXML(Class<? extends Annotation> annotationClass)
Deprecated. This method is for XML umarshalling use only


getAnnotationClassXML

@Deprecated
public Class<? extends Annotation> getAnnotationClassXML()
Deprecated. This method is for XML marshalling use only


setAnnotationClass

public void setAnnotationClass(Class<? extends Annotation> annotationClass)
Parameters:
annotationClass - the annotationClass to set

getAnnotationClass

public Class<? extends Annotation> getAnnotationClass()
Returns:
the annotationClass

getLocalPropertyProfiles

public List<PropertyProfile<?>> 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. Use getPropertyProfiles() in order to return all property profiles pertaining to this type.

Returns:
the propertyProfiles

getPropertyProfiles

public List<PropertyProfile<?>> getPropertyProfiles()
Returns:
the propertyProfiles

getPropertyProfile

public PropertyProfile<?> getPropertyProfile(String name)
Return a property profile by its property name. Return null if no such property profile is defined.

Parameters:
name -
Returns:
a PropertyProfile or null.

createNewInstance

public Annotation createNewInstance()
                             throws InstantiationException,
                                    IllegalAccessException
Create a new annotation instance already initialized with the annotation's default values.

Specified by:
createNewInstance in class AnnotationFactory
Returns:
the instance
Throws:
InstantiationException
IllegalAccessException

getRendererFactory

public Factory<AnnotationRenderer<? extends Annotation>,RuntimeException> getRendererFactory()
Return the renderer factory for the current toolkit set via AnnotationFactory.setToolkitType(String).

Returns:
the renderer factory for the current toolkit set via AnnotationFactory.setToolkitType(String).

getRendererFactory

public Factory<AnnotationRenderer<? extends Annotation>,RuntimeException> getRendererFactory(String toolkitType)
Returns:
the renderer factory

setSuperTypeName

public void setSuperTypeName(String superTypeName)

getSuperTypeName

public String getSuperTypeName()
Returns:
the superTypeName

setSuperType

public void setSuperType(AnnotationType superType)

getSuperType

public AnnotationType getSuperType()
Specified by:
getSuperType in class AnnotationFactory

toString

public String toString()
Overrides:
toString in class Object

getBaseType

public AnnotationType getBaseType()
Specified by:
getBaseType in class AnnotationFactory

hashCode

public int hashCode()
Overrides:
hashCode in class AnnotationFactory

equals

public boolean equals(Object obj)
Overrides:
equals in class AnnotationFactory

getRendererFactories

@Deprecated
public List<ToolkitBasedFactory<AnnotationRenderer<? extends Annotation>>> getRendererFactories()
Deprecated. This method is for XML umarshalling use only


getWranglerFactory

public Factory<AnnotationWrangler,RuntimeException> getWranglerFactory()
Return the wrangler factory for the current toolkit set via AnnotationFactory.setToolkitType(String).

Specified by:
getWranglerFactory in class AnnotationFactory
Returns:
the wrangler factory for the current toolkit set via AnnotationFactory.setToolkitType(String).

getWranglerFactory

public Factory<AnnotationWrangler,RuntimeException> getWranglerFactory(String toolkitType)
Returns:
the wrangler factory

getWranglerFactories

@Deprecated
public List<ToolkitBasedFactory<AnnotationWrangler>> getWranglerFactories()
Deprecated. This method is for XML umarshalling use only


validate

public void validate(List<String> validationMessages)

setArchetypeName

public void setArchetypeName(String archetypeName)

getArchetypeName

public String getArchetypeName()
Overrides:
getArchetypeName in class AnnotationFactory

getArchetypeName

@Deprecated
public static final String getArchetypeName(AnnotationType type)
Deprecated. For internal use only, location of this method may change in future.

Helper method to determine the archetype for older annotation profiles without archetype attribute definition. Functionality: If method getArchetypeName() returns null, the current name of the type via AnnotationFactory.getName() will be returned.

Parameters:
type - Annotation type instance
Returns:
Archetype name


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.