Class XmlLoader
java.lang.Object
net.sf.jasperreports.engine.xml.print.XmlLoader
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringgetAttribute(String name) protected <T> TgetAttribute(String name, Function<String, T> transform) protected BooleangetBooleanAttribute(String name) protected <E extends NamedEnum>
EgetEnumAttribute(String name, Function<String, E> getByName) protected FloatgetFloatAttribute(String name) protected IntegergetIntAttribute(String name) protected voidloadElements(Consumer<String> elementConsumer) protected StringloadText(boolean trim) voidopen(InputStream is) protected voidsetAttribute(String name, Consumer<String> setter) protected <T> voidsetAttribute(String name, Function<String, T> transform, Consumer<T> setter) protected voidsetBooleanAttribute(String name, Consumer<Boolean> setter) protected voidsetColorAttribute(String name, Consumer<Color> setter) protected <E extends NamedEnum>
voidsetEnumAttribute(String name, Function<String, E> getByName, Consumer<E> setter) protected voidsetFloatAttribute(String name, Consumer<Float> setter) protected voidsetIntAttribute(String name, Consumer<Integer> setter) protected voidunexpectedElement(String element)
-
Field Details
-
EXCEPTION_MESSAGE_KEY_UNEXPECTED_ELEMENT
- See Also:
-
EXCEPTION_MESSAGE_KEY_UNEXPECTED_START_ELEMENT
- See Also:
-
EXCEPTION_MESSAGE_KEY_UNEXPECTED_END_ELEMENT
- See Also:
-
EXCEPTION_MESSAGE_KEY_UNEXPECTED_EVENT_TYPE
- See Also:
-
-
Constructor Details
-
XmlLoader
public XmlLoader()
-
-
Method Details
-
open
- Throws:
JRException
-
loadElements
-
endElement
protected void endElement() -
loadText
-
setAttribute
-
getAttribute
-
getAttribute
-
setAttribute
-
getBooleanAttribute
-
setBooleanAttribute
-
getIntAttribute
-
setIntAttribute
-
getFloatAttribute
-
setFloatAttribute
-
getEnumAttribute
-
setEnumAttribute
-
setColorAttribute
-
unexpectedElement
-