public interface ParserBuilder
Modifier and Type | Method and Description |
---|---|
com.sun.codemodel.JVar |
as(Class<?> cls)
Reads the value of the attribute/element into a variable of the given type.
|
CodeBody |
getBody() |
com.sun.codemodel.JCodeModel |
getCodeModel() |
com.sun.codemodel.JDefinedClass |
getReaderClass() |
IdentityManager |
getVariableManager() |
com.sun.codemodel.JVar |
getXSR()
Get the XMLStreamReader variable.
|
boolean |
isRequired() |
ParserBuilder |
newState() |
ParserBuilder |
newState(com.sun.codemodel.JBlock block) |
com.sun.codemodel.JVar |
passParentVariable(com.sun.codemodel.JVar parentVar)
Pass a variable in the parent
ParserBuilder to this parser builder. |
void |
setAllowUnkown(boolean allow) |
void |
setRequired(boolean b) |
void setAllowUnkown(boolean allow)
CodeBody getBody()
com.sun.codemodel.JDefinedClass getReaderClass()
com.sun.codemodel.JCodeModel getCodeModel()
com.sun.codemodel.JVar as(Class<?> cls)
com.sun.codemodel.JVar getXSR()
com.sun.codemodel.JVar passParentVariable(com.sun.codemodel.JVar parentVar)
ParserBuilder
to this parser builder.parentVar
- Variable used in the parent's ParserBuilder
scope.ParserBuilder
's scope.boolean isRequired()
void setRequired(boolean b)
ParserBuilder newState()
ParserBuilder newState(com.sun.codemodel.JBlock block)
IdentityManager getVariableManager()
Copyright © 2007–2018. All rights reserved.