public static final class CreateAttributeFragment.Builder extends Object
CreateAttributeFragment
with detailed properties.
When detailed properties need to be assigned the to attribute definition, a builder can be used to instantiate a
CreateAttributeFragment
:
CreateAttributeFragment fragment = CreateAttributeFragment.builder("myAttribute", "Integer", Scope.OBJECT) .defaultValue(10) .alterChangeBars(false); .create();
CreateAttributeFragment.builder(String, String, Scope)
Modifier and Type | Method and Description |
---|---|
CreateAttributeFragment.Builder |
alterChangeBars(boolean value)
Determines whether the attribute definition to create alters change bars.
|
CreateAttributeFragment.Builder |
alterDates(boolean value)
Determines whether the attribute definition to create alters dates.
|
CreateAttributeFragment |
create()
Creates a
CreateAttributeFragment instance with the properties configured on this builder. |
CreateAttributeFragment.Builder |
defaultValue(RichText value)
Sets the default value to assign on the attribute definition to create.
|
CreateAttributeFragment.Builder |
dxl(String value)
Sets the DXL code to assign on the attribute definition to create.
|
CreateAttributeFragment.Builder |
history(boolean value)
Determines whether the attribute definition to create generates history.
|
CreateAttributeFragment.Builder |
inherit(boolean value)
Determines whether the attribute definition to create is to be inherited.
|
CreateAttributeFragment.Builder |
multi(boolean value)
Determines whether the attribute definition to create is multi-valued.
|
public CreateAttributeFragment create()
CreateAttributeFragment
instance with the properties configured on this builder.CreateAttributeFragment
instance.public CreateAttributeFragment.Builder dxl(String value)
value
- the new DXL code.public CreateAttributeFragment.Builder defaultValue(RichText value)
value
- the new default value.public CreateAttributeFragment.Builder alterChangeBars(boolean value)
value
- a boolean which determines whether the attribute definition to create alters change bars.public CreateAttributeFragment.Builder alterDates(boolean value)
value
- a boolean which determines whether the attribute definition to create alters dates.public CreateAttributeFragment.Builder history(boolean value)
value
- a boolean which determines whether the attribute definition to create generates history.public CreateAttributeFragment.Builder inherit(boolean value)
value
- a boolean which determines whether the attribute definition to create is to be inherited.public CreateAttributeFragment.Builder multi(boolean value)
value
- a boolean which determines whether the attribute definition to create is multi-valued.