com.bstek.dorado.config.xml
public class CompositePropertyParser extends ObjectParser
SELF, SUB_PARSER_PATH_SEPERATOR, WILDCARD
Constructor and Description |
---|
CompositePropertyParser() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doParse(org.w3c.dom.Node node,
ParseContext context) |
protected XmlParser |
findPropertyParser(java.lang.String constraint)
根据约束条件返回一个匹配的属性解析器。
|
protected TextParser |
getTextParser(ParseContext context) |
protected void |
initDefinition(ObjectDefinition definition,
java.util.Map<java.lang.String,java.lang.Object> properties) |
boolean |
isOpen() |
protected java.util.Map<java.lang.String,java.lang.Object> |
parseSubProperties(java.util.List<org.w3c.dom.Element> childElements,
ParseContext context) |
void |
setDefaultPropertyParser(PropertyParser defaultPropertyParser) |
void |
setInheritable(boolean inheritable)
设置是否允许用户通过XML节点中的parent属性来指定配置声明对象的继承关系。
|
void |
setOpen(boolean open) |
void |
setScopable(boolean scopable)
设置是否允许用户通过XML节点中的scope属性来指定最终对象的作用范围。
|
void |
setTextParser(TextParser textParser) |
createDefinition, getAnnotationOwnerType, getDefaultScope, getDefinitionType, getImpl, getParentDefinitionReferences, initDefinition, internalParse, isInheritable, isScopable, setAnnotationOwnerType, setDefinitionType, setDefinitionType, setImpl
getExpressionHandler, setExpressionHandler, setPropertyParsers, setSubParsers
dispatchChildElements, dispatchElement, findSubParser, getPropertyParsers, getSubParsers, parse, parseProperties, parseProperty, registerPropertyParser, registerSubParser
public void setScopable(boolean scopable)
ObjectParser
setScopable
in class ObjectParser
public void setInheritable(boolean inheritable)
ObjectParser
setInheritable
in class ObjectParser
public void setTextParser(TextParser textParser)
public void setDefaultPropertyParser(PropertyParser defaultPropertyParser)
public boolean isOpen()
public void setOpen(boolean open)
protected TextParser getTextParser(ParseContext context)
protected XmlParser findPropertyParser(java.lang.String constraint)
DispatchableXmlParser
findPropertyParser
in class DispatchableXmlParser
constraint
- 约束条件。 如果无法直接通过约束条件找到一个匹配的子解析器,那么此方法将尝试返回WILDCARD相关的子解析器。protected java.util.Map<java.lang.String,java.lang.Object> parseSubProperties(java.util.List<org.w3c.dom.Element> childElements, ParseContext context) throws java.lang.Exception
java.lang.Exception
protected void initDefinition(ObjectDefinition definition, java.util.Map<java.lang.String,java.lang.Object> properties) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected java.lang.Object doParse(org.w3c.dom.Node node, ParseContext context) throws java.lang.Exception
doParse
in class ObjectParser
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.