de.smartics.properties.jboss.extension.resources.util
Class SimpleMapAttributeDefinition.Builder

Package class diagram package SimpleMapAttributeDefinition.Builder
java.lang.Object
  extended by de.smartics.properties.jboss.extension.resources.util.SimpleMapAttributeDefinition.Builder
Enclosing class:
SimpleMapAttributeDefinition

public static final class SimpleMapAttributeDefinition.Builder
     
     
extends Object

Builds instances of SimpleMapAttributeDefinition.


Constructor Summary
SimpleMapAttributeDefinition.Builder()
          Default constructor.
 
Method Summary
 SimpleMapAttributeDefinition build()
          Creates the instance.
 SimpleMapAttributeDefinition.Builder withAllowExpression(boolean allowExpression)
          Sets the value for allowExpression.
 SimpleMapAttributeDefinition.Builder withAllowNull(boolean allowNull)
          Sets the flag to mark the attribute containing the tuples as optional ( true) or mandatory (false).
 SimpleMapAttributeDefinition.Builder withName(String name)
          Sets the name of the map attribute.
 SimpleMapAttributeDefinition.Builder withType(org.jboss.dmr.ModelType type)
          Sets the type of the value.
 SimpleMapAttributeDefinition.Builder withValidator(org.jboss.as.controller.operations.validation.ParameterValidator validator)
          Sets the validator for values.
 SimpleMapAttributeDefinition.Builder withWrapperXmlName(String wrapperXmlName)
          Sets the name of the XML element that encloses the items named by xmlName.
 SimpleMapAttributeDefinition.Builder withXmlAttributeName(String xmlAttributeName)
          Sets the name of the XML attribute that references the type name.
 SimpleMapAttributeDefinition.Builder withXmlName(String xmlName)
          Sets the name of the XML element where the attribute is the key and the contents is the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMapAttributeDefinition.Builder

public SimpleMapAttributeDefinition.Builder()
Default constructor.

Method Detail

withWrapperXmlName

public SimpleMapAttributeDefinition.Builder withWrapperXmlName(String wrapperXmlName)
Sets the name of the XML element that encloses the items named by xmlName.

Parameters:
wrapperXmlName - the name of the XML element that encloses the items named by xmlName.
Returns:
a reference to this builder.

withName

public SimpleMapAttributeDefinition.Builder withName(String name)
Sets the name of the map attribute.

Parameters:
name - the name of the attribute.
Returns:
a reference to this builder.

withXmlName

public SimpleMapAttributeDefinition.Builder withXmlName(String xmlName)
Sets the name of the XML element where the attribute is the key and the contents is the value.

Parameters:
xmlName - the name of the XML element where the attribute is the key and the contents is the value.
Returns:
a reference to this builder.

withXmlAttributeName

public SimpleMapAttributeDefinition.Builder withXmlAttributeName(String xmlAttributeName)
Sets the name of the XML attribute that references the type name.

Parameters:
xmlAttributeName - the name of the XML attribute that references the type name.
Returns:
a reference to this builder.

withType

public SimpleMapAttributeDefinition.Builder withType(org.jboss.dmr.ModelType type)
Sets the type of the value.

Parameters:
type - the type of the value.
Returns:
a reference to this builder.

withAllowNull

public SimpleMapAttributeDefinition.Builder withAllowNull(boolean allowNull)
Sets the flag to mark the attribute containing the tuples as optional ( true) or mandatory ( false).

Parameters:
allowNull - the flag to mark the attribute containing the tuples as optional ( true) or mandatory ( false).
Returns:
a reference to this builder.

withAllowExpression

public SimpleMapAttributeDefinition.Builder withAllowExpression(boolean allowExpression)
Sets the value for allowExpression.

Flag to mark the value being allowed to contain expressions.

Parameters:
allowExpression - the value for allowExpression.
Returns:
a reference to this builder.

withValidator

public SimpleMapAttributeDefinition.Builder withValidator(org.jboss.as.controller.operations.validation.ParameterValidator validator)
Sets the validator for values.

Parameters:
validator - the validator for values.
Returns:
a reference to this builder.

build

public SimpleMapAttributeDefinition build()
Creates the instance.

Returns:
the instance.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.