public static class StoreAttributeDefinition.Builder extends java.lang.Object
Constructor and Description |
---|
Builder()
Create a new builder.
|
Modifier and Type | Method and Description |
---|---|
StoreAttributeDefinition.Builder |
addSubAttributes(StoreAttributeDefinition... subAttributes)
Adds sub-attributes for a complex datatype attribute.
|
StoreAttributeDefinition |
build()
Builds a new StoreAttributeDefinition.
|
StoreAttributeDefinition.Builder |
clear()
Clears all values in this builder, so that it can be reused.
|
StoreAttributeDefinition.Builder |
setDescription(java.lang.String description)
Sets the description of the attribute.
|
StoreAttributeDefinition.Builder |
setMultiValued(boolean multiValued)
Sets a boolean indicating if the attribute is multi-valued.
|
StoreAttributeDefinition.Builder |
setName(java.lang.String name)
Sets the attribute name.
|
StoreAttributeDefinition.Builder |
setType(StoreAttributeDefinition.Type type)
Sets the type of the attribute.
|
public Builder()
public StoreAttributeDefinition.Builder setName(java.lang.String name)
name
- the attribute name.public StoreAttributeDefinition.Builder setType(StoreAttributeDefinition.Type type)
type
- the type of the attribute.public StoreAttributeDefinition.Builder addSubAttributes(StoreAttributeDefinition... subAttributes)
subAttributes
- The sub-attributes of the attribute.public StoreAttributeDefinition.Builder setMultiValued(boolean multiValued)
multiValued
- a boolean indicating if the attribute is multi-valued.public StoreAttributeDefinition.Builder setDescription(java.lang.String description)
description
- the description of the attribute.public StoreAttributeDefinition.Builder clear()
public StoreAttributeDefinition build()