public class BaseXmlParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
| Constructor and Description |
|---|
BaseXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperties(Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Adds all attributes of the specified elements as properties in the current builder.
|
protected Element |
findTag(String tagName,
Element element)
Find the child element whose tag matches the specified tag name.
|
protected Object |
fromXml(String xml,
String tagName)
Parses an xml extension from an xml string.
|
protected String |
getNodeName(Node node)
Returns the node name.
|
protected String |
getResourcePath(org.springframework.beans.factory.xml.ParserContext parserContext)
Return the path of the resource being parsed.
|
protected NodeList |
getTagChildren(String tagName,
Element element)
Returns the children under the specified tag.
|
doParse, doParse, getBeanClass, getBeanClassName, getParentName, parseInternalprotected Element findTag(String tagName, Element element)
tagName - Tag name to locate.element - Parent element whose children are to be searched.protected NodeList getTagChildren(String tagName, Element element)
tagName - Name of tag whose children are sought.element - Element to search for tag.protected void addProperties(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
element - Element whose attributes are to be added.builder - Target builder.protected String getNodeName(Node node)
node - DOM node to examine.protected Object fromXml(String xml, String tagName) throws Exception
xml - XML containing the extension.tagName - The top level tag name.Exception - Unspecified exception.protected String getResourcePath(org.springframework.beans.factory.xml.ParserContext parserContext)
parserContext - The current parser context.Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.