public class BaseParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
namespace |
protected MXParser |
parser |
| Constructor and Description |
|---|
BaseParser(InputStream input) |
BaseParser(InputStream input,
String namespace) |
BaseParser(Reader reader) |
BaseParser(Reader reader,
String namespace) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
asByteArray(String val) |
protected Class<?> |
asClass(String val) |
protected Class<?>[] |
asClassArray(String val) |
protected List<String> |
asStringList(String val) |
protected Set<String> |
asStringSet(String val) |
protected <T> void |
doAdd(T element,
List<T> existing,
Consumer<List<T>> setter) |
protected <T> void |
doAdd(T element,
T[] existing,
Consumer<T[]> setter) |
protected <T> T |
doParse(T definition,
org.apache.camel.xml.in.BaseParser.AttributeHandler<T> attributeHandler,
org.apache.camel.xml.in.BaseParser.ElementHandler<T> elementHandler,
org.apache.camel.xml.in.BaseParser.ValueHandler<T> valueHandler) |
protected String |
doParseText() |
protected void |
expectTag(String name) |
protected <T extends org.apache.camel.model.language.ExpressionDefinition> |
expressionDefinitionValueHandler() |
protected String |
getNextTag(String name,
String name2) |
protected void |
handleOtherAttribute(Object definition,
String name,
String ns,
String val) |
protected boolean |
handleUnexpectedAttribute(String namespace,
String name) |
protected boolean |
handleUnexpectedElement(String namespace,
String name) |
protected void |
handleUnexpectedText(String text) |
protected boolean |
hasTag(String name) |
protected <T> org.apache.camel.xml.in.BaseParser.AttributeHandler<T> |
noAttributeHandler() |
protected <T> org.apache.camel.xml.in.BaseParser.ElementHandler<T> |
noElementHandler() |
protected <T> org.apache.camel.xml.in.BaseParser.ValueHandler<T> |
noValueHandler() |
public BaseParser(InputStream input) throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionpublic BaseParser(Reader reader) throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionpublic BaseParser(InputStream input, String namespace) throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionpublic BaseParser(Reader reader, String namespace) throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionprotected <T> T doParse(T definition,
org.apache.camel.xml.in.BaseParser.AttributeHandler<T> attributeHandler,
org.apache.camel.xml.in.BaseParser.ElementHandler<T> elementHandler,
org.apache.camel.xml.in.BaseParser.ValueHandler<T> valueHandler)
throws IOException,
XmlPullParserException
IOExceptionXmlPullParserExceptionprotected Class<?> asClass(String val) throws XmlPullParserException
XmlPullParserExceptionprotected Class<?>[] asClassArray(String val) throws XmlPullParserException
XmlPullParserExceptionprotected byte[] asByteArray(String val)
protected <T> void doAdd(T element,
T[] existing,
Consumer<T[]> setter)
protected String doParseText() throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionprotected boolean handleUnexpectedAttribute(String namespace, String name) throws XmlPullParserException
XmlPullParserExceptionprotected boolean handleUnexpectedElement(String namespace, String name) throws XmlPullParserException
XmlPullParserExceptionprotected void handleUnexpectedText(String text) throws XmlPullParserException
XmlPullParserExceptionprotected void expectTag(String name) throws XmlPullParserException, IOException
XmlPullParserExceptionIOExceptionprotected boolean hasTag(String name) throws XmlPullParserException, IOException
XmlPullParserExceptionIOExceptionprotected String getNextTag(String name, String name2) throws XmlPullParserException, IOException
XmlPullParserExceptionIOExceptionprotected void handleOtherAttribute(Object definition, String name, String ns, String val) throws XmlPullParserException
XmlPullParserExceptionprotected <T> org.apache.camel.xml.in.BaseParser.AttributeHandler<T> noAttributeHandler()
protected <T> org.apache.camel.xml.in.BaseParser.ElementHandler<T> noElementHandler()
protected <T> org.apache.camel.xml.in.BaseParser.ValueHandler<T> noValueHandler()
protected <T extends org.apache.camel.model.language.ExpressionDefinition> org.apache.camel.xml.in.BaseParser.ValueHandler<T> expressionDefinitionValueHandler()
Apache Camel