|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.xml.beans.BeanDef | +--oracle.cabo.share.xml.beans.IntrospectionBeanDef
Implementation of BeanDef that uses introspection to identify properties. The classes used by this must have the following properties:
Constructor Summary | |
IntrospectionBeanDef(java.lang.String className)
Create an IntrospectionBeanDef. |
|
IntrospectionBeanDef(java.lang.String className,
java.lang.String defaultProperty)
Create an IntrospectionBeanDef. |
Method Summary | |
protected void |
addProperty(java.beans.PropertyDescriptor descriptor)
Hook for overriding the behavior of a found property. |
java.lang.Object |
createBean(java.lang.String namespaceURI,
java.lang.String localName)
Creates a bean, specifying the namespace URI and localName |
protected PropertyDef |
createPropertyDef(java.beans.PropertyDescriptor descriptor)
Hook for overriding the behavior of a found property. |
java.lang.Object |
finishBean(java.lang.Object bean)
"Finishes" a bean by transforming it into the final target object. |
PropertyDef |
getDefaultPropertyDef()
Gets the "default" property definition. |
PropertyDef |
getElementPropertyDef(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attrs)
Gets an property definition for a child element. |
PropertyDef |
getPropertyDef(java.lang.String name)
Gets an property definition. |
PropertyDef |
getPropertyDef(java.lang.String namespace,
java.lang.String name)
Gets an property definition for a namespaced property. |
boolean |
isInlineChildProperty(java.lang.String namespace,
java.lang.String name,
PropertyDef def)
Returns true if the PropertyDef is defined with an inline child element. |
protected void |
loadProperties()
Force the definition of the bean to be loaded. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IntrospectionBeanDef(java.lang.String className)
className
- public IntrospectionBeanDef(java.lang.String className, java.lang.String defaultProperty)
className
- Method Detail |
public PropertyDef getPropertyDef(java.lang.String name)
BeanDef
getPropertyDef
in class BeanDef
oracle.cabo.share.xml.beans.BeanDef
name
- the property namepublic PropertyDef getPropertyDef(java.lang.String namespace, java.lang.String name)
BeanDef
getPropertyDef
in class BeanDef
oracle.cabo.share.xml.beans.BeanDef
namespace
- the namespacename
- the property namepublic java.lang.Object createBean(java.lang.String namespaceURI, java.lang.String localName) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
BeanDef
createBean
in class BeanDef
oracle.cabo.share.xml.beans.BeanDef
namespaceURI
- the namespace URI of the beanlocalName
- the local name of the beanpublic java.lang.Object finishBean(java.lang.Object bean)
BeanDef
finishBean
in class BeanDef
oracle.cabo.share.xml.beans.BeanDef
bean
- the bean created by createBean()public PropertyDef getElementPropertyDef(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attrs)
BeanDef
getElementPropertyDef
in class BeanDef
oracle.cabo.share.xml.beans.BeanDef
namespace
- the namespacename
- the property nameattrs
- the XML attributespublic PropertyDef getDefaultPropertyDef()
BeanDef
getDefaultPropertyDef
in class BeanDef
oracle.cabo.share.xml.beans.BeanDef
public boolean isInlineChildProperty(java.lang.String namespace, java.lang.String name, PropertyDef def)
BeanDef
isInlineChildProperty
in class BeanDef
protected void loadProperties()
addProperty
addProperty(java.beans.PropertyDescriptor)
protected void addProperty(java.beans.PropertyDescriptor descriptor)
descriptor
- the PropertyDescriptorprotected PropertyDef createPropertyDef(java.beans.PropertyDescriptor descriptor)
descriptor
- the PropertyDescriptor
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |