Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.xml.parse
Class UIBeanDef

java.lang.Object
  |
  +--oracle.cabo.share.xml.beans.BeanDef
        |
        +--oracle.cabo.share.xml.beans.IntrospectionBeanDef
              |
              +--oracle.cabo.ui.xml.parse.UIBeanDef

public class UIBeanDef
extends IntrospectionBeanDef

UIX bean definition for introspection-based beans that support UIX Components objects. In particular, when used in conjunction with the UIBeanParser, this adds the following pieces of functionality:

  1. Support for data-binding via BoundValues.

    Specifically, if any of the properties end with "Binding" and take a BoundValue, then the property will be interpreted as databinding support.

  2. Support for treating DataObjects, DataObjectLists, and Style objects as "inline" attributest that do not require an envelope; this makes these elements consistent with the rest of UIX.
  3. Use of the <boundAttribute> element to define data-binding.

Example:

Given the following API:
     public void setWidth(int width);
     public int getWidth();
     public void setWidthBinding(BoundValue value);
 
...then the XML "width" attribute will be interpreted as supporting data binding, and each piece of the following XML will be accepted:
    <theElementName width="10"/>
    <theElementName data:width="foo@data"/>
    <theElementName>
      <boundAttribute name="width">
        <!-- a bound value element  -->
      </boundAttribute>
    </theElementName>
 


Constructor Summary
UIBeanDef(java.lang.String className)
           
UIBeanDef(java.lang.String className, java.lang.String defaultProperty)
           
 
Method Summary
protected  void addProperty(java.beans.PropertyDescriptor property)
          Hook for overriding the behavior of a found property.
 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 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.
 
Methods inherited from class oracle.cabo.share.xml.beans.IntrospectionBeanDef
createBean, createPropertyDef, finishBean, getDefaultPropertyDef, getPropertyDef, loadProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIBeanDef

public UIBeanDef(java.lang.String className)

UIBeanDef

public UIBeanDef(java.lang.String className,
                 java.lang.String defaultProperty)
Method Detail

getPropertyDef

public PropertyDef getPropertyDef(java.lang.String namespace,
                                  java.lang.String name)
Description copied from class: BeanDef
Gets an property definition for a namespaced property.
Overrides:
getPropertyDef in class IntrospectionBeanDef
Following copied from class: oracle.cabo.share.xml.beans.BeanDef
Parameters:
namespace - the namespace
name - the property name
Returns:
the property definition, or null if no such property exists

getElementPropertyDef

public PropertyDef getElementPropertyDef(java.lang.String namespace,
                                         java.lang.String name,
                                         org.xml.sax.Attributes attrs)
Description copied from class: BeanDef
Gets an property definition for a child element.
Overrides:
getElementPropertyDef in class IntrospectionBeanDef
Following copied from class: oracle.cabo.share.xml.beans.BeanDef
Parameters:
namespace - the namespace
name - the property name
attrs - the XML attributes
Returns:
the property definition, or null if no such property exists

isInlineChildProperty

public boolean isInlineChildProperty(java.lang.String namespace,
                                     java.lang.String name,
                                     PropertyDef def)
Description copied from class: BeanDef
Returns true if the PropertyDef is defined with an inline child element.
Overrides:
isInlineChildProperty in class IntrospectionBeanDef

addProperty

protected void addProperty(java.beans.PropertyDescriptor property)
Description copied from class: IntrospectionBeanDef
Hook for overriding the behavior of a found property. By default, the PropertyDescriptor will be created by calling createPropertyDef().

Overrides:
addProperty in class IntrospectionBeanDef
Following copied from class: oracle.cabo.share.xml.beans.IntrospectionBeanDef
Parameters:
descriptor - the PropertyDescriptor

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.