|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.type.AbstractType<T>
javax.rad.type.bean.AbstractBeanType<T>
T - the type.public abstract class AbstractBeanType<T>
The AbstractBeanType is a bean definition without a bean object/class. It holds
the information about property names and definitions
| Field Summary | |
|---|---|
protected java.lang.String |
className
The bean class. |
protected PropertyDefinition[] |
propertyDefinitions
The property definitions. |
protected java.lang.String[] |
propertyNames
The cached property names. |
| Fields inherited from interface javax.rad.type.IType |
|---|
UNKNOWN_TYPE |
| Constructor Summary | |
|---|---|
protected |
AbstractBeanType()
Constructs a new AbstractBeanType
. |
protected |
AbstractBeanType(java.lang.String pClassName,
PropertyDefinition[] pPropertyDefinitions)
Constructs a new AbstractBeanType with a class name and PropertyDefinitions. |
protected |
AbstractBeanType(java.lang.String pClassName,
java.lang.String[] pPropertyNames)
Constructs a new AbstractBeanType with class name and a property list. |
| Method Summary | |
|---|---|
void |
addPropertyDefinition(PropertyDefinition pPropertyDefinition)
Adds a property definition. |
void |
addPropertyDefinition(java.lang.String pPropertyName)
Adds a property definition. |
protected PropertyDefinition |
createPropertyDefinition(java.lang.String pPropertyName)
Creates the PropertyDefinition. |
protected PropertyDefinition[] |
createPropertyDefinitions(int pPropertyCount)
Creates the PropertyDefinitions. |
boolean |
equals(java.lang.Object pObject)
|
java.lang.String |
getClassName()
Gets the class name or identifier of the bean class. |
int |
getPropertyCount()
Gets the amount of properties. |
PropertyDefinition |
getPropertyDefinition(int pIndex)
Gets the bean property for the given index. |
PropertyDefinition |
getPropertyDefinition(java.lang.String pPropertyName)
Gets the bean property for the given property name. |
int |
getPropertyIndex(java.lang.String pPropertyName)
Gets the index of the property name. |
java.lang.String[] |
getPropertyNames()
Gets the property names. |
int |
hashCode()
|
void |
removeAllPropertyDefinitions()
Removes all property definitions. |
| Methods inherited from class javax.rad.type.AbstractType |
|---|
equals, getTypeFromClass, getTypeFromObject, hashCode, registerType, toString, validatedValueOf, valueOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.rad.type.IType |
|---|
compareTo, getTypeClass |
| Field Detail |
|---|
protected java.lang.String className
protected java.lang.String[] propertyNames
protected transient PropertyDefinition[] propertyDefinitions
| Constructor Detail |
|---|
protected AbstractBeanType()
AbstractBeanType
.
protected AbstractBeanType(java.lang.String pClassName,
java.lang.String[] pPropertyNames)
AbstractBeanType with class name and a property list.
pClassName - the class name.pPropertyNames - the bean properties.
protected AbstractBeanType(java.lang.String pClassName,
PropertyDefinition[] pPropertyDefinitions)
AbstractBeanType with a class name and PropertyDefinitions.
pClassName - the class name.pPropertyDefinitions - the property definitions.| Method Detail |
|---|
public java.lang.String[] getPropertyNames()
getPropertyNames in interface IBeanType<T>public int getPropertyIndex(java.lang.String pPropertyName)
getPropertyIndex in interface IBeanType<T>pPropertyName - the property name.
public int getPropertyCount()
getPropertyCount in interface IBeanType<T>public PropertyDefinition getPropertyDefinition(int pIndex)
getPropertyDefinition in interface IBeanType<T>pIndex - the index.
public PropertyDefinition getPropertyDefinition(java.lang.String pPropertyName)
getPropertyDefinition in interface IBeanType<T>pPropertyName - the property name.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object pObject)
equals in class java.lang.Objectpublic java.lang.String getClassName()
protected PropertyDefinition[] createPropertyDefinitions(int pPropertyCount)
pPropertyCount - the property count
protected PropertyDefinition createPropertyDefinition(java.lang.String pPropertyName)
pPropertyName - the property name.
public void addPropertyDefinition(PropertyDefinition pPropertyDefinition)
pPropertyDefinition - the property definition.public void addPropertyDefinition(java.lang.String pPropertyName)
pPropertyName - the property definition.public void removeAllPropertyDefinitions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||