Package org.jboss.as.controller
Class PersistentResourceXMLDescription.PersistentResourceXMLBuilder
- java.lang.Object
-
- org.jboss.as.controller.PersistentResourceXMLDescription.PersistentResourceXMLBuilder
-
- All Implemented Interfaces:
PersistentResourceXMLDescription.Builder
- Enclosing class:
- PersistentResourceXMLDescription
public static final class PersistentResourceXMLDescription.PersistentResourceXMLBuilder extends Object implements PersistentResourceXMLDescription.Builder
-
-
Method Summary
-
-
-
Method Detail
-
addChild
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addChild(PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder)
-
addChild
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addChild(PersistentResourceXMLDescription description)
- Specified by:
addChild
in interfacePersistentResourceXMLDescription.Builder
-
addAttribute
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute)
- Specified by:
addAttribute
in interfacePersistentResourceXMLDescription.Builder
-
addAttribute
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute, AttributeParser attributeParser)
-
addAttribute
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute, AttributeParser attributeParser, AttributeMarshaller attributeMarshaller)
- Specified by:
addAttribute
in interfacePersistentResourceXMLDescription.Builder
-
addAttributes
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttributes(AttributeDefinition... attributes)
- Specified by:
addAttributes
in interfacePersistentResourceXMLDescription.Builder
-
addAttributes
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttributes(Stream<? extends AttributeDefinition> attributes)
- Specified by:
addAttributes
in interfacePersistentResourceXMLDescription.Builder
-
setXmlWrapperElement
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setXmlWrapperElement(String xmlWrapperElement)
- Specified by:
setXmlWrapperElement
in interfacePersistentResourceXMLDescription.Builder
-
setXmlElementName
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setXmlElementName(String xmlElementName)
- Specified by:
setXmlElementName
in interfacePersistentResourceXMLDescription.Builder
-
setUseValueAsElementName
@Deprecated(forRemoval=true) public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setUseValueAsElementName(boolean useValueAsElementName)
Deprecated, for removal: This API element is subject to removal in a future version.
-
setNoAddOperation
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setNoAddOperation(boolean noAddOperation)
- Specified by:
setNoAddOperation
in interfacePersistentResourceXMLDescription.Builder
-
setAdditionalOperationsGenerator
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setAdditionalOperationsGenerator(PersistentResourceXMLDescription.AdditionalOperationsGenerator additionalOperationsGenerator)
- Specified by:
setAdditionalOperationsGenerator
in interfacePersistentResourceXMLDescription.Builder
-
setForcedName
@Deprecated(forRemoval=true) public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setForcedName(String forcedName)
Deprecated, for removal: This API element is subject to removal in a future version.Use an xml attribute to provide the name of the resource.This method permit to set a forced name for resource created by parser. This is useful when xml tag haven't an attribute defining the name for the resource, but the tag name itself is sufficient to decide the name for the resource For example when you have 2 different tag of the same xsd type representing same resource with different name- Parameters:
forcedName
- the name to be forced as resourceName- Returns:
- the PersistentResourceXMLBuilder itself
-
setUseElementsForGroups
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setUseElementsForGroups(boolean useElementsForGroups)
Sets whether attributes with anattribute 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.- Specified by:
setUseElementsForGroups
in interfacePersistentResourceXMLDescription.Builder
- Parameters:
useElementsForGroups
-true
if child elements should be used.- Returns:
- a builder that can be used for further configuration or to build the xml description
-
setMarshallDefaultValues
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setMarshallDefaultValues(boolean marshallDefault)
If set to false, default attribute values won't be persisted- Parameters:
marshallDefault
- weather default values should be persisted or not.- Returns:
- builder
-
setNameAttributeName
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setNameAttributeName(String nameAttributeName)
Sets name for "name" attribute that is used for wildcard resources. It defines name of attribute one resource xml element to be used for such identifier If not set it defaults to "name"- Specified by:
setNameAttributeName
in interfacePersistentResourceXMLDescription.Builder
- Parameters:
nameAttributeName
- xml attribute name to be used for resource name- Returns:
- builder
-
build
public PersistentResourceXMLDescription build()
- Specified by:
build
in interfacePersistentResourceXMLDescription.Builder
-
-