Package org.jboss.as.controller
Class PersistentResourceXMLDescription.PersistentResourceXMLBuilder
- java.lang.Object
-
- org.jboss.as.controller.PersistentResourceXMLDescription.PersistentResourceXMLBuilder
-
- Enclosing class:
- PersistentResourceXMLDescription
public static final class PersistentResourceXMLDescription.PersistentResourceXMLBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected PathElement
pathElement
-
Method Summary
-
-
-
Field Detail
-
pathElement
protected final PathElement pathElement
-
-
Method Detail
-
addChild
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addChild(PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder)
-
addChild
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addChild(PersistentResourceXMLDescription description)
-
addAttribute
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute)
-
addAttribute
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute, AttributeParser attributeParser)
-
addAttribute
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttribute(AttributeDefinition attribute, AttributeParser attributeParser, AttributeMarshaller attributeMarshaller)
-
addAttributes
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder addAttributes(AttributeDefinition... attributes)
-
setXmlWrapperElement
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setXmlWrapperElement(String xmlWrapperElement)
-
setXmlElementName
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setXmlElementName(String xmlElementName)
-
setUseValueAsElementName
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setUseValueAsElementName(boolean useValueAsElementName)
-
setNoAddOperation
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setNoAddOperation(boolean noAddOperation)
-
setAdditionalOperationsGenerator
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setAdditionalOperationsGenerator(PersistentResourceXMLDescription.AdditionalOperationsGenerator additionalOperationsGenerator)
-
setForcedName
public PersistentResourceXMLDescription.PersistentResourceXMLBuilder setForcedName(String forcedName)
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.- 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"- Parameters:
nameAttributeName
- xml attribute name to be used for resource name- Returns:
- builder
-
build
public PersistentResourceXMLDescription build()
-
-