public final class PersistentResourceXMLDescription extends Object
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 PersistentResourceXMLDescription.AdditionalOperationsGenerator |
additionalOperationsGenerator |
protected Map<String,AttributeDefinition> |
attributeElements |
protected LinkedHashMap<String,LinkedHashMap<String,AttributeDefinition>> |
attributesByGroup |
protected List<PersistentResourceXMLDescription> |
children |
protected boolean |
noAddOperation |
protected PersistentResourceDefinition |
resourceDefinition |
protected boolean |
useValueAsElementName |
protected String |
xmlElementName |
protected String |
xmlWrapperElement |
Modifier and Type | Method and Description |
---|---|
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
builder(PersistentResourceDefinition resource) |
static PersistentResourceXMLDescription.PersistentResourceXMLBuilder |
builder(PersistentResourceDefinition resource,
String namespaceURI) |
PathElement |
getPathElement() |
void |
parse(org.jboss.staxmapper.XMLExtendedStreamReader reader,
PathAddress parentAddress,
List<org.jboss.dmr.ModelNode> 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 PersistentResourceDefinition resourceDefinition
protected final String xmlElementName
protected final String xmlWrapperElement
protected final LinkedHashMap<String,LinkedHashMap<String,AttributeDefinition>> attributesByGroup
protected final List<PersistentResourceXMLDescription> children
protected final Map<String,AttributeDefinition> attributeElements
protected final boolean useValueAsElementName
protected final boolean noAddOperation
protected final PersistentResourceXMLDescription.AdditionalOperationsGenerator additionalOperationsGenerator
public PathElement getPathElement()
public void parse(org.jboss.staxmapper.XMLExtendedStreamReader reader, PathAddress parentAddress, List<org.jboss.dmr.ModelNode> list) throws XMLStreamException
XMLStreamException
public void persist(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model) throws XMLStreamException
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
public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PersistentResourceDefinition resource)
public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PersistentResourceDefinition resource, String namespaceURI)
Copyright © 2023 JBoss by Red Hat. All rights reserved.