|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.inria.ketuk.BMProcessor
A processor of the Beans markups
Field Summary | |
protected org.w3c.dom.Document |
_bmDoc
The bean markup document |
protected static java.lang.ClassLoader |
_cl
An instance of the default class loader |
protected java.util.Hashtable |
_registeredBeans
The list of registered beans |
protected static java.util.Vector |
_registerList
The list of registered methods specified in config.xml |
protected java.lang.Object |
_rootBean
the root of the generated beans |
protected XBLinks |
_xblinks
The set of links used to assure the mapping |
Method Summary | |
protected void |
error(java.lang.String mess)
Error processing |
protected void |
error(java.lang.String mess,
java.lang.Object param)
Error processing |
protected TypedObject |
executeAdd(org.w3c.dom.Element addElt,
java.lang.Object currentBean)
Processes a add element |
protected TypedObject |
getArray(org.w3c.dom.Element arrayElt,
java.lang.Object currentBean)
Gets a Array |
protected TypedObject |
getBean(org.w3c.dom.Element beanElt,
java.lang.Object currentBean)
Constructs a bean from a 'bean' tag |
java.lang.Object |
getBeanObject()
Returns the root of the bean hierarchy |
org.w3c.dom.Document |
getBMDocument()
Returns the bean markup document |
protected TypedObject |
getCast(org.w3c.dom.Element castElt,
java.lang.Object currentBean)
Gets a Cast |
protected TypedObject |
getField(org.w3c.dom.Element fieldElt,
java.lang.Object currentBean)
Gets a field |
protected TypedObject |
getMethod(org.w3c.dom.Element methodElt,
java.lang.Object currentBean)
Applies a function specified in a XML bean specification. |
protected TypedObject |
getObject(org.w3c.dom.Node node,
java.lang.Object currentBean)
Gets an object |
protected TypedObject |
getProperty(org.w3c.dom.Element propertyElt,
java.lang.Object currentBean)
Gets a property |
protected TypedObject |
getScript(org.w3c.dom.Element scriptElt,
java.lang.Object currentBean)
Processes a script element |
protected TypedObject |
getString(org.w3c.dom.Element stringElt,
java.lang.Object currentBean)
Gets a string |
void |
process()
Process the bean markup document to obtain a root bean |
java.lang.Object |
processBM(org.w3c.dom.Document bmDoc,
java.util.Hashtable beansRegistry)
Process the bean markup document |
java.lang.Object |
processBM(org.w3c.dom.Document bmDoc,
java.util.Hashtable beansRegistry,
java.lang.Object contextBean,
java.net.URL contextURL)
Process the bean markup document specified in the source, given a contextURL, a contextBean and a list or registered beans |
protected java.lang.Object |
processBM(org.w3c.dom.Element bmElement,
java.util.Hashtable beansRegistry)
Process the bean markup document |
protected java.lang.Object |
processBM(org.w3c.dom.Element bmElement,
java.util.Hashtable beansRegistry,
java.lang.Object contextBean,
java.net.URL contextURL)
Process the bean markup document |
java.lang.Object |
processBM(java.lang.String source)
Process the bean markup document specified in the source |
protected java.lang.Object |
processBM(java.lang.String source,
java.util.Hashtable beansRegistry,
java.lang.Object contextBean,
java.net.URL contextURL)
Process the bean markup document specified in the source, given a contextURL, a contextBean and a list or registered beans |
java.lang.Object |
processBM(java.lang.String source,
java.net.URL contextURL)
Process the bean markup document specified in the source, given a contextURL |
void |
setBMDocument(org.w3c.dom.Document bmDoc)
Sets the bean markup document |
protected TypedObject |
setEventBinding(org.w3c.dom.Element eventElt,
java.lang.Object currentBean)
Sets a new event binding to the bean |
protected TypedObject |
setField(org.w3c.dom.Element fieldElt,
java.lang.Object currentBean)
Sets a field |
protected TypedObject |
setFireEvent(org.w3c.dom.Element fireEventElt,
java.lang.Object currentBean)
Processes a fire-event element |
protected TypedObject |
setListener(org.w3c.dom.Element listenElt,
java.lang.Object currentBean)
Processes a script element |
protected TypedObject |
setProperty(org.w3c.dom.Element propertyElt,
java.lang.Object currentBean)
Sets a property as specified by the 'property' parameter element |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.w3c.dom.Document _bmDoc
protected java.lang.Object _rootBean
protected static java.lang.ClassLoader _cl
protected java.util.Hashtable _registeredBeans
protected XBLinks _xblinks
protected static java.util.Vector _registerList
Method Detail |
public org.w3c.dom.Document getBMDocument()
public void setBMDocument(org.w3c.dom.Document bmDoc)
public java.lang.Object getBeanObject()
public void process() throws BMException
public java.lang.Object processBM(java.lang.String source) throws BMException
source
- the source of the bean markup documentpublic java.lang.Object processBM(java.lang.String source, java.net.URL contextURL) throws BMException
source
- the source of the bean markup documentcontextURL
- the context url used to find the sourceprotected java.lang.Object processBM(java.lang.String source, java.util.Hashtable beansRegistry, java.lang.Object contextBean, java.net.URL contextURL) throws BMException
source
- the source of the bean markup documentbeansRegistry
- the list of registered beanscontextBean
- the contextBeancontextURL
- the context url used to find the sourcepublic java.lang.Object processBM(org.w3c.dom.Document bmDoc, java.util.Hashtable beansRegistry) throws BMException
bmDoc
- the source beans markup documentbeansRegistry
- the list of registered beanspublic java.lang.Object processBM(org.w3c.dom.Document bmDoc, java.util.Hashtable beansRegistry, java.lang.Object contextBean, java.net.URL contextURL) throws BMException
source
- the source of the bean markup documentbeansRegistry
- the list of registered beanscontextBean
- the contextBeancontextURL
- the context url used to find the sourceprotected java.lang.Object processBM(org.w3c.dom.Element bmElement, java.util.Hashtable beansRegistry) throws BMException
bmElement
- the Element representing the beanbeansRegistry
- the list of registered beansprotected java.lang.Object processBM(org.w3c.dom.Element bmElement, java.util.Hashtable beansRegistry, java.lang.Object contextBean, java.net.URL contextURL) throws BMException
bmElement
- the Element representing the beanbeansRegistry
- the list of registered beanscontextBean
- the contextBeancontextURL
- the context url used to find the sourceprotected TypedObject getBean(org.w3c.dom.Element beanElt, java.lang.Object currentBean) throws BMException
beanElt
- the Element representing the beancontextBean
- the contextBeanprotected TypedObject setProperty(org.w3c.dom.Element propertyElt, java.lang.Object currentBean) throws BMException
propertyElt
- the element representing the propertycurrentBean
- the bean that is curently instanciatedprotected TypedObject getObject(org.w3c.dom.Node node, java.lang.Object currentBean) throws BMException
node
- the node representing the object to readcurrentBean
- the bean that is curently instanciatedprotected TypedObject getProperty(org.w3c.dom.Element propertyElt, java.lang.Object currentBean) throws BMException
propertyElt
- the element representing the property to readcurrentBean
- the bean that is curently instanciatedprotected TypedObject getString(org.w3c.dom.Element stringElt, java.lang.Object currentBean) throws BMException
stringElt
- the element representing the string to readcurrentBean
- the bean that is curently instanciatedprotected TypedObject getField(org.w3c.dom.Element fieldElt, java.lang.Object currentBean) throws BMException
fieldElt
- the element representing the object to readcurrentBean
- the bean that is curently instanciatedprotected TypedObject setField(org.w3c.dom.Element fieldElt, java.lang.Object currentBean) throws BMException
fieldElt
- the element representing the object to readcurrentBean
- the bean that is curently instanciatedprotected TypedObject setEventBinding(org.w3c.dom.Element eventElt, java.lang.Object currentBean) throws BMException
eventElt
- the element describing the event bindingcurrentBean
- the bean currently instanciatedprotected TypedObject getMethod(org.w3c.dom.Element methodElt, java.lang.Object currentBean) throws BMException
methodElt
- the component to which the method must be appliedcurrentBean
- the bean currently instanciatedprotected TypedObject getCast(org.w3c.dom.Element castElt, java.lang.Object currentBean) throws BMException
castElt
- the element representing the object to readcurrentBean
- the bean that is curently instanciatedprotected TypedObject getArray(org.w3c.dom.Element arrayElt, java.lang.Object currentBean) throws BMException
arrayElt
- the element representing the array to readcurrentBean
- the bean that is curently instanciatedprotected TypedObject setFireEvent(org.w3c.dom.Element fireEventElt, java.lang.Object currentBean) throws BMException
fireEventElt
- the component to which the fire-eventcurrentBean
- the bean currently instanciatedprotected TypedObject executeAdd(org.w3c.dom.Element addElt, java.lang.Object currentBean) throws BMException
addElt
- the element representing the addcurrentBean
- the bean currently instanciatedprotected TypedObject getScript(org.w3c.dom.Element scriptElt, java.lang.Object currentBean) throws BMException
scriptElt
- the component representing the scriptcurrentBean
- the bean currently instanciatedprotected TypedObject setListener(org.w3c.dom.Element listenElt, java.lang.Object currentBean) throws BMException
listenElt
- the component representing the listenercurrentBean
- the bean currently instanciatedprotected void error(java.lang.String mess) throws BMException
mess
- the message of the errorprotected void error(java.lang.String mess, java.lang.Object param) throws BMException
mess
- the message of the errorparam
- a parameter to the error message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |