public final class PersistentResourceXMLDescription extends Object implements ResourceParser, ResourceMarshaller
Modifier and Type | Class and Description |
---|---|
static interface |
PersistentResourceXMLDescription.AdditionalOperationsGenerator
Some resources require more operations that just a simple add.
|
static class |
PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
Modifier and Type | Field and Description |
---|---|
protected PathElement |
pathElement |
Modifier and Type | Method and Description |
---|---|
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
builder(PathElement pathElement)
Creates builder for passed path element
|
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
builder(PathElement pathElement,
String namespaceURI)
Creates builder for passed path element
|
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
builder(PersistentResourceDefinition resource)
Deprecated.
please use PersistentResourceXMLBuilder(PathElement, String) variant
|
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
builder(PersistentResourceDefinition resource,
String namespaceURI)
Deprecated.
please use PersistentResourceXMLBuilder(PathElement, String) variant
|
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
builder(ResourceDefinition resource)
Deprecated.
please use PersistentResourceXMLBuilder(PathElement, String) variant
|
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
decorator(String elementName)
Deprecated.
decorator element support is currently considered as preview
|
PathElement |
getPathElement() |
void |
parse(org.jboss.staxmapper.XMLExtendedStreamReader reader,
PathAddress parentAddress,
List<org.jboss.dmr.ModelNode> list)
Parse xml from provided
reader and add resulting operations to passed list |
void |
persist(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
org.jboss.dmr.ModelNode model) |
void |
persist(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
org.jboss.dmr.ModelNode model,
String namespaceURI) |
void |
persistChildren(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
org.jboss.dmr.ModelNode model) |
protected final PathElement pathElement
public PathElement getPathElement()
public void parse(org.jboss.staxmapper.XMLExtendedStreamReader reader, PathAddress parentAddress, List<org.jboss.dmr.ModelNode> list) throws XMLStreamException
reader
and add resulting operations to passed listparse
in interface ResourceParser
reader
- xml reader to parse fromparentAddress
- address of the parent, used as base for all child elementslist
- list of operations where result will be put to.XMLStreamException
- if any error occurs while parsingpublic void persist(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model) throws XMLStreamException
persist
in interface ResourceMarshaller
XMLStreamException
public void persist(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model, String namespaceURI) throws XMLStreamException
XMLStreamException
public void persistChildren(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model) throws XMLStreamException
XMLStreamException
@Deprecated public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PersistentResourceDefinition resource)
resource
- resource for which path we are creating builder@Deprecated public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(ResourceDefinition resource)
resource
- resource for which path we are creating builder@Deprecated public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PersistentResourceDefinition resource, String namespaceURI)
resource
- resource for which path we are creating buildernamespaceURI
- xml namespace to use for this resource, usually used for top level elements such as subsystemspublic static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PathElement pathElement)
pathElement
- for which we are creating builderpublic static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PathElement pathElement, String namespaceURI)
pathElement
- for which we are creating buildernamespaceURI
- xml namespace to use for this resource, usually used for top level elements such as subsystems@Deprecated public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder decorator(String elementName)
elementName
- name of xml element that is used as decoratorCopyright © 2020 JBoss by Red Hat. All rights reserved.