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, wait
forEach, spliterator
protected DefaultAttributeWithContext(int length, DefaultAttributeWithContext.Builder builder)
public int getWidth()
AttributeWithContext
getWidth
in interface AttributeWithContext
public boolean hasChildren()
AttributeWithContext
hasChildren
in interface AttributeWithContext
public Optional<String> getName()
AttributeWithContext
getName
in interface AttributeWithContext
public Iterator<AttributeWithContext> iterator()
iterator
in interface Iterable<AttributeWithContext>