public static class PersistentResourceXMLDescription.PersistentResourceXMLBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected PersistentResourceXMLDescription.AdditionalOperationsGenerator |
additionalOperationsGenerator |
protected LinkedList<AttributeDefinition> |
attributeList |
protected LinkedHashMap<String,AttributeMarshaller> |
attributeMarshallers |
protected LinkedHashMap<String,AttributeParser> |
attributeParsers |
protected List<PersistentResourceXMLDescription.PersistentResourceXMLBuilder> |
children |
protected String |
forcedName |
protected boolean |
noAddOperation |
protected PersistentResourceDefinition |
resourceDefinition |
protected boolean |
useElementsForGroups |
protected boolean |
useValueAsElementName |
protected String |
xmlElementName |
protected String |
xmlWrapperElement |
Modifier | Constructor and Description |
---|---|
protected |
PersistentResourceXMLBuilder(PersistentResourceDefinition resourceDefinition) |
protected |
PersistentResourceXMLBuilder(PersistentResourceDefinition resourceDefinition,
String namespaceURI) |
protected final PersistentResourceDefinition resourceDefinition
protected String xmlElementName
protected String xmlWrapperElement
protected boolean useValueAsElementName
protected boolean noAddOperation
protected PersistentResourceXMLDescription.AdditionalOperationsGenerator additionalOperationsGenerator
protected final LinkedList<AttributeDefinition> attributeList
protected final List<PersistentResourceXMLDescription.PersistentResourceXMLBuilder> children
protected final LinkedHashMap<String,AttributeParser> attributeParsers
protected final LinkedHashMap<String,AttributeMarshaller> attributeMarshallers
protected boolean useElementsForGroups
protected String forcedName
protected PersistentResourceXMLBuilder(PersistentResourceDefinition resourceDefinition)
protected PersistentResourceXMLBuilder(PersistentResourceDefinition resourceDefinition, String namespaceURI)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addChild(PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute, AttributeParser attributeParser)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute, AttributeParser attributeParser, AttributeMarshaller attributeMarshaller)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttributes(AttributeDefinition... attributes)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setXmlWrapperElement(String xmlWrapperElement)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setXmlElementName(String xmlElementName)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setUseValueAsElementName(boolean useValueAsElementName)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setNoAddOperation(boolean noAddOperation)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setAdditionalOperationsGenerator(PersistentResourceXMLDescription.AdditionalOperationsGenerator additionalOperationsGenerator)
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setForcedName(String forcedName)
forcedName
- the name to be forced as resourceNamepublic PersistentResourceXMLDescription.PersistentResourceXMLBuilder setUseElementsForGroups(boolean useElementsForGroups)
attribute group
defined should be persisted to a child element whose name is the name of the group. Child elements
will be ordered based on the order in which attributes are added to this builder. Child elements for
attribute groups will be ordered before elements for child resources.useElementsForGroups
- true
if child elements should be used.public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setMarshallDefaultValues(boolean marshallDefault)
marshallDefault
- weather default values should be persisted or not.public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setNameAttributeName(String nameAttributeName)
nameAttributeName
- xml attribute name to be used for resource namepublic PersistentResourceXMLDescription build()
Copyright © 2023 JBoss by Red Hat. All rights reserved.