Package org.jboss.as.controller.xml
Interface XMLContent<RC,WC>
-
- Type Parameters:
RC- the reader contextWC- the writer content
- All Superinterfaces:
XMLContentWriter<WC>,org.jboss.staxmapper.XMLElementWriter<WC>
- All Known Implementing Classes:
XMLContent.DefaultXMLContent
public interface XMLContent<RC,WC> extends XMLContentWriter<WC>
Encapsulates the content of an XML element.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classXMLContent.DefaultXMLContent<RC,WC>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <RC,WC>
XMLContent<RC,WC>empty()Returns an empty contentstatic <RC,WC>
XMLContent<RC,WC>of(XMLElementGroup<RC,WC> group)Returns an empty contentvoidreadContent(org.jboss.staxmapper.XMLExtendedStreamReader reader, RC context)Reads element content into the specified reader context.-
Methods inherited from interface org.jboss.as.controller.xml.XMLContentWriter
andThen, compose, isEmpty
-
-
-
-
Method Detail
-
readContent
void readContent(org.jboss.staxmapper.XMLExtendedStreamReader reader, RC context) throws XMLStreamExceptionReads element content into the specified reader context.- Parameters:
reader- a StaX readercontext- the reader context- Throws:
XMLStreamException- if the input could not be read from the specified reader.
-
empty
static <RC,WC> XMLContent<RC,WC> empty()
Returns an empty content- Type Parameters:
RC- the reader contextWC- the writer context- Returns:
- an empty content
-
of
static <RC,WC> XMLContent<RC,WC> of(XMLElementGroup<RC,WC> group)
Returns an empty content- Type Parameters:
RC- the reader contextWC- the writer context- Returns:
- an empty content
-
-