ColdSpring 2.0 - Narwhal

coldspring.beans.xml
Class AbstractNamespaceHandler

WEB-INF.cftags.component
        extended by coldspring.beans.xml.AbstractNamespaceHandler
All Implemented Interfaces:
NamespaceHandler
Direct Known Subclasses:
AOPNamespaceHandler , BeansNamespaceHandler , UtilNamespaceHandler , HibernateNamespaceHandler , TxNamespaceHandler

public abstract class AbstractNamespaceHandler
extends WEB-INF.cftags.component

abstract base class for Namespace handling, that implements much of what you would expect to need when handling namespaces


Constructor Summary
private init()
          Constructor
 
Method Summary
 BeanDefinitionParser getBeanDefinitionParser(any element)
          get the bean definition parser for a given element
private struct<string,BeanDefinitionParser> getDefinitionParsers()
 any getNameSpaces()
          abstract function: overwrite to return a single, list or array of string values that are the namespaces this handler manages the parsing for
 struct<string,string> getSchemaLocations()
          Overwite this function to give ColdSpring a map of remote Schemas to their local absolute paths
 boolean hasBeanDefinitionParser(any element)
          do we have a DefintiionParser for this element?
private void registerBeanDefinitionParser(string elementName, BeanDefinitionParser definitionParser)
          registers a Definition parser for given XML element name
private void setDefinitionParsers(struct<string,BeanDefinitionParser> DefinitionParsers)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

private init()
Constructor

Method Detail

getBeanDefinitionParser

public BeanDefinitionParser getBeanDefinitionParser(any element)
get the bean definition parser for a given element

Specified by:
getBeanDefinitionParser in interface NamespaceHandler
Parameters:
element - the org.w3c.dom.Element for which you need a parser

getDefinitionParsers

private struct<string,BeanDefinitionParser> getDefinitionParsers()


getNameSpaces

public any getNameSpaces()
abstract function: overwrite to return a single, list or array of string values that are the namespaces this handler manages the parsing for

Specified by:
getNameSpaces in interface NamespaceHandler

getSchemaLocations

public struct<string,string> getSchemaLocations()
Overwite this function to give ColdSpring a map of remote Schemas to their local absolute paths

Specified by:
getSchemaLocations in interface NamespaceHandler

hasBeanDefinitionParser

public boolean hasBeanDefinitionParser(any element)
do we have a DefintiionParser for this element?

Specified by:
hasBeanDefinitionParser in interface NamespaceHandler
Parameters:
element - the org.w3c.dom.Element for which you need a parser

registerBeanDefinitionParser

private void registerBeanDefinitionParser(string elementName, BeanDefinitionParser definitionParser)
registers a Definition parser for given XML element name

Parameters:
elementName - the name of the element to parse
definitionParser - The Definition parser

setDefinitionParsers

private void setDefinitionParsers(struct<string,BeanDefinitionParser> DefinitionParsers)

Parameters:
DefinitionParsers

ColdSpring 2.0 - Narwhal