public class PropertyDefinitionsHelper extends java.lang.Object implements ArooaBeanDescriptor
ArooaBeanDescriptor
. This
is the main implementation and as such should really have a different
name.
DefaultBeanDescriptorProvider
,
AnnotatedBeanDescriptorProvider
,
ArooaDescriptorBean
Constructor and Description |
---|
PropertyDefinitionsHelper(ArooaClass classFor)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationDefinition(AnnotationDefinition annotation)
Add an annotation.
|
void |
addPropertyDefinition(PropertyDefinition propertyDefinition)
Accumulate definitions of the bean.
|
ArooaAnnotations |
getAnnotations()
Provide annotation information about methods.
|
ArooaClass |
getClassIdentifier()
Get the class identifier this is the descriptor for.
|
java.lang.String |
getComponentProperty()
The name of the component property.
|
ConfiguredHow |
getConfiguredHow(java.lang.String property)
How is a property configured.
|
java.lang.String |
getFlavour(java.lang.String property)
Get the property flavour.
|
ParsingInterceptor |
getParsingInterceptor()
Get The
ParsingInterceptor . |
java.lang.String |
getTextProperty()
The name of the property which can be set using the text
of an xml element.
|
boolean |
isAuto(java.lang.String property)
Indicates that the property should be set automatically
from the services.
|
void |
mergeFromBeanDefinition(BeanDefinition beanDef)
Called to merge an
BeanDefinition from an
ArooaDescriptorBean into what has been provided already. |
void |
setAuto(java.lang.String property)
Set the auto property.
|
void |
setComponentProperty(java.lang.String property)
Set the component property.
|
void |
setFlavour(java.lang.String property,
java.lang.String flavour)
Set the flavour for a property.
|
void |
setParsingInterceptor(ParsingInterceptor interceptor)
Set the parsing interceptor.
|
void |
setPropertyType(java.lang.String property,
PropertyDefinition.PropertyType propertyType)
Set the property type.
|
void |
setTextProperty(java.lang.String property)
Set the text property.
|
java.lang.String |
toString() |
public PropertyDefinitionsHelper(ArooaClass classFor)
classFor
- public ArooaClass getClassIdentifier()
public void addPropertyDefinition(PropertyDefinition propertyDefinition)
propertyDefinition
- public void setPropertyType(java.lang.String property, PropertyDefinition.PropertyType propertyType)
AnnotatedBeanDescriptorProvider
.property
- propertyType
- public void setComponentProperty(java.lang.String property)
property
- public void setTextProperty(java.lang.String property)
property
- public void setAuto(java.lang.String property)
AnnotatedBeanDescriptorProvider
.property
- The property name.public void setFlavour(java.lang.String property, java.lang.String flavour)
property
- flavour
- public void setParsingInterceptor(ParsingInterceptor interceptor)
AnnotatedBeanDescriptorProvider
.interceptor
- public void addAnnotationDefinition(AnnotationDefinition annotation)
annotation
- public void mergeFromBeanDefinition(BeanDefinition beanDef)
BeanDefinition
from an
ArooaDescriptorBean
into what has been provided already.beanDef
- public java.lang.String getComponentProperty()
ArooaBeanDescriptor
getComponentProperty
in interface ArooaBeanDescriptor
public java.lang.String getTextProperty()
ArooaBeanDescriptor
The actual property name is required because unlike components and values, the property name can not be derrived from an element name.
getTextProperty
in interface ArooaBeanDescriptor
public ConfiguredHow getConfiguredHow(java.lang.String property)
ArooaBeanDescriptor
getConfiguredHow
in interface ArooaBeanDescriptor
property
- The property name.public java.lang.String getFlavour(java.lang.String property)
ArooaBeanDescriptor
getFlavour
in interface ArooaBeanDescriptor
property
- The property name.public boolean isAuto(java.lang.String property)
ArooaBeanDescriptor
isAuto
in interface ArooaBeanDescriptor
property
- The property name.public ParsingInterceptor getParsingInterceptor()
ArooaBeanDescriptor
ParsingInterceptor
.getParsingInterceptor
in interface ArooaBeanDescriptor
public ArooaAnnotations getAnnotations()
ArooaBeanDescriptor
getAnnotations
in interface ArooaBeanDescriptor
public java.lang.String toString()
toString
in class java.lang.Object