public static class DefaultAttributeWithContext.Builder extends Object
| Constructor and Description |
|---|
Builder()
Creates a new builder
|
Builder(String attribute)
Creates a new builder with the specified attribute name
|
| Modifier and Type | Method and Description |
|---|---|
DefaultAttributeWithContext.Builder |
add(AttributeWithContext data)
Adds a text attribute to the list of attributes
|
DefaultAttributeWithContext.Builder |
add(int val)
Adds a new attribute with the specified width
|
DefaultAttributeWithContext |
build(int length)
Creates a new default text attribute based on the current
state of the builder
|
public Builder()
public Builder(String attribute)
attribute - the attribute namepublic DefaultAttributeWithContext.Builder add(AttributeWithContext data)
data - the attributepublic DefaultAttributeWithContext.Builder add(int val)
val - the width of the attributepublic DefaultAttributeWithContext build(int length)
length - the total length of the contained attributes