com.bstek.dorado.view.widget.layout
public class LayoutConstraintParser extends ConfigurableDispatchableTextParser
HEADER_ATTRIBUTE, WILDCARD
Constructor and Description |
---|
LayoutConstraintParser() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parse(char[] charArray,
TextParseContext context)
解析给定的字符串,并将解析到的所有属性及值保存到Map集合中返回。
|
boolean |
supportsHeader()
返回要解析的字符串是否包含一个头信息。
如果解析的字符串中包含头信息,那么在默认情况下头信息中的值将被处理为$header属性的值。 |
setAttributeParsers, setHasHeader, setSubParsers
dispatchAttribute, findAttributeParser, findSubParser, getAttributeParsers, getSubParsers, isIgnoredChar, isValidPropertyNameChar, parseHeader, parseToAttributes, registerAttributeParser, registerSubParser
public boolean supportsHeader()
DispatchableTextParser
supportsHeader
in class ConfigurableDispatchableTextParser
public java.lang.Object parse(char[] charArray, TextParseContext context) throws java.lang.Exception
DispatchableTextParser
parse
in interface TextParser
parse
in class DispatchableTextParser
charArray
- 要解析的字符串context
- 解析的上下文对象java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.