public interface XmlSerializable
Modifier and Type | Field and Description |
---|---|
static String |
XML_SERIALIZED_CLASS_NAME |
Modifier and Type | Method and Description |
---|---|
static void |
forEachGrandChildElement(Element parent,
String childTagName,
String grandchildTagName,
Consumer<Element> grandChildElementConsumer) |
default XmlSerializable |
fromXml(InputStream inputStream) |
default XmlSerializable |
fromXml(String xml) |
default XmlSerializable |
fromXmlElement(Element element) |
static String |
getAttribute(Element element,
String propertyName) |
static Boolean |
getAttribute(Element element,
String propertyName,
Boolean defaultValue) |
static Character |
getAttribute(Element element,
String propertyName,
Character defaultValue) |
static <T> T |
getAttribute(Element element,
String propertyName,
Class<? extends T> cls) |
static <T> T |
getAttribute(Element element,
String propertyName,
Class<? extends T> cls,
T defaultValue) |
static <T> T |
getAttribute(Element element,
String propertyName,
FieldType fieldType) |
static <T> T |
getAttribute(Element element,
String propertyName,
FieldType fieldType,
T defaultValue) |
static Integer |
getAttribute(Element element,
String propertyName,
Integer defaultValue) |
static Long |
getAttribute(Element element,
String propertyName,
Long defaultValue) |
static String |
getAttribute(Element element,
String propertyName,
String defaultValue) |
static Element |
getChildElement(Element parent,
String childTagName) |
static List<Element> |
getChildElements(Element parent,
String childTagName) |
static <T extends XmlSerializable> |
newInstanceFromXml(Element element,
Class<? super T> type) |
static <T extends XmlSerializable> |
newInstanceFromXml(InputStream inputStream) |
static void |
setAttribute(Element element,
String name,
Object value) |
default String |
toXml() |
default String |
toXml(boolean addXml11Delcaration) |
default XmlSerializable |
toXml(Writer writer) |
default XmlSerializable |
toXml(Writer writer,
boolean closeWriter) |
default XmlSerializable |
toXml(Writer writer,
boolean closeWriter,
boolean addXml11Delcaration) |
default Element |
toXmlElement(Document document) |
static <T extends XmlSerializable> |
writeXml(T bean,
StreamResult outputTarget,
boolean closeStream) |
static <T extends XmlSerializable> |
writeXml(T bean,
StreamResult outputTarget,
boolean closeStream,
boolean addXml11Delcaration) |
static final String XML_SERIALIZED_CLASS_NAME
default XmlSerializable fromXmlElement(Element element)
default String toXml()
default String toXml(boolean addXml11Delcaration)
default XmlSerializable toXml(Writer writer)
default XmlSerializable toXml(Writer writer, boolean closeWriter)
default XmlSerializable toXml(Writer writer, boolean closeWriter, boolean addXml11Delcaration)
static <T extends XmlSerializable> T writeXml(T bean, StreamResult outputTarget, boolean closeStream)
static <T extends XmlSerializable> T writeXml(T bean, StreamResult outputTarget, boolean closeStream, boolean addXml11Delcaration)
default XmlSerializable fromXml(String xml)
default XmlSerializable fromXml(InputStream inputStream)
static Character getAttribute(Element element, String propertyName, Character defaultValue)
static Boolean getAttribute(Element element, String propertyName, Boolean defaultValue)
static Integer getAttribute(Element element, String propertyName, Integer defaultValue)
static <T> T getAttribute(Element element, String propertyName, Class<? extends T> cls)
static <T> T getAttribute(Element element, String propertyName, Class<? extends T> cls, T defaultValue)
static <T> T getAttribute(Element element, String propertyName, FieldType fieldType, T defaultValue)
static void forEachGrandChildElement(Element parent, String childTagName, String grandchildTagName, Consumer<Element> grandChildElementConsumer)
static <T extends XmlSerializable> T newInstanceFromXml(Element element, Class<? super T> type)
static <T extends XmlSerializable> T newInstanceFromXml(InputStream inputStream)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.