public class DefaultAttributeWithContext extends Object implements AttributeWithContext
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultAttributeWithContext.Builder
Provides a builder for a default text attribute
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
length |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultAttributeWithContext(int length,
DefaultAttributeWithContext.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getName()
Gets the name of this attribute.
|
int |
getWidth()
Gets the width of this attribute.
|
boolean |
hasChildren()
Returns true if this attribute has children.
|
Iterator<AttributeWithContext> |
iterator() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected DefaultAttributeWithContext(int length,
DefaultAttributeWithContext.Builder builder)
public int getWidth()
AttributeWithContextgetWidth in interface AttributeWithContextpublic boolean hasChildren()
AttributeWithContexthasChildren in interface AttributeWithContextpublic Optional<String> getName()
AttributeWithContextgetName in interface AttributeWithContextpublic Iterator<AttributeWithContext> iterator()
iterator in interface Iterable<AttributeWithContext>