Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.share.xml.beans
Class BeanDef

java.lang.Object
  |
  +--oracle.cabo.share.xml.beans.BeanDef
Direct Known Subclasses:
IntrospectionBeanDef

public abstract class BeanDef
extends java.lang.Object

Class for defining a bean to the parser engine.


Constructor Summary
BeanDef()
          Creates a BeanDef.
 
Method Summary
abstract  java.lang.Object createBean(java.lang.String namespaceURI, java.lang.String localName)
          Creates a bean, specifying the namespace URI and localName
abstract  java.lang.Object finishBean(java.lang.Object bean)
          "Finishes" a bean by transforming it into the final target object.
abstract  PropertyDef getDefaultPropertyDef()
          Gets the "default" property definition.
abstract  PropertyDef getElementPropertyDef(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attrs)
          Gets an property definition for a child element.
abstract  PropertyDef getPropertyDef(java.lang.String name)
          Gets an property definition.
abstract  PropertyDef getPropertyDef(java.lang.String namespace, java.lang.String name)
          Gets an property definition for a namespaced property.
abstract  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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDef

public BeanDef()
Creates a BeanDef.
Method Detail

getPropertyDef

public abstract PropertyDef getPropertyDef(java.lang.String name)
Gets an property definition.
Parameters:
name - the property name
Returns:
the property definition, or null if no such property exists

getPropertyDef

public abstract PropertyDef getPropertyDef(java.lang.String namespace,
                                           java.lang.String name)
Gets an property definition for a namespaced property.
Parameters:
namespace - the namespace
name - the property name
Returns:
the property definition, or null if no such property exists

getElementPropertyDef

public abstract PropertyDef getElementPropertyDef(java.lang.String namespace,
                                                  java.lang.String name,
                                                  org.xml.sax.Attributes attrs)
Gets an property definition for a child element.
Parameters:
namespace - the namespace
name - the property name
attrs - the XML attributes
Returns:
the property definition, or null if no such property exists

getDefaultPropertyDef

public abstract PropertyDef getDefaultPropertyDef()
Gets the "default" property definition.
Returns:
the default property definition, or null if no such property exists

isInlineChildProperty

public abstract boolean isInlineChildProperty(java.lang.String namespace,
                                              java.lang.String name,
                                              PropertyDef def)
Returns true if the PropertyDef is defined with an inline child element.

createBean

public abstract java.lang.Object createBean(java.lang.String namespaceURI,
                                            java.lang.String localName)
                                     throws java.lang.ClassNotFoundException,
                                            java.lang.InstantiationException,
                                            java.lang.IllegalAccessException
Creates a bean, specifying the namespace URI and localName
Parameters:
namespaceURI - the namespace URI of the bean
localName - the local name of the bean
Returns:
the new bean instance

finishBean

public abstract java.lang.Object finishBean(java.lang.Object bean)
"Finishes" a bean by transforming it into the final target object. This will be called when the
Parameters:
bean - the bean created by createBean()
Returns:
the object that should be returned by the parser

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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