|
||||||||||
| 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 String |
className
The bean class. |
protected PropertyDefinition[] |
propertyDefinitions
The property definitions. |
protected 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(String pClassName,
PropertyDefinition[] pPropertyDefinitions)
Constructs a new AbstractBeanType with a class name and PropertyDefinitions. |
protected |
AbstractBeanType(String pClassName,
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(String pPropertyName)
Adds a property definition. |
protected PropertyDefinition |
createPropertyDefinition(String pPropertyName)
Creates the PropertyDefinition. |
protected PropertyDefinition[] |
createPropertyDefinitions(int pPropertyCount)
Creates the PropertyDefinitions. |
boolean |
equals(Object pObject)
|
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(String pPropertyName)
Gets the bean property for the given property name. |
int |
getPropertyIndex(String pPropertyName)
Gets the index of the property name. |
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 String className
protected String[] propertyNames
protected transient PropertyDefinition[] propertyDefinitions
| Constructor Detail |
|---|
protected AbstractBeanType()
AbstractBeanType
.
protected AbstractBeanType(String pClassName,
String[] pPropertyNames)
AbstractBeanType with class name and a property list.
pClassName - the class name.pPropertyNames - the bean properties.
protected AbstractBeanType(String pClassName,
PropertyDefinition[] pPropertyDefinitions)
AbstractBeanType with a class name and PropertyDefinitions.
pClassName - the class name.pPropertyDefinitions - the property definitions.| Method Detail |
|---|
public String[] getPropertyNames()
getPropertyNames in interface IBeanType<T>public int getPropertyIndex(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(String pPropertyName)
getPropertyDefinition in interface IBeanType<T>pPropertyName - the property name.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object pObject)
equals in class Objectpublic String getClassName()
protected PropertyDefinition[] createPropertyDefinitions(int pPropertyCount)
pPropertyCount - the property count
protected PropertyDefinition createPropertyDefinition(String pPropertyName)
pPropertyName - the property name.
public void addPropertyDefinition(PropertyDefinition pPropertyDefinition)
pPropertyDefinition - the property definition.public void addPropertyDefinition(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 | |||||||||