Package org.daisy.dotify.api.translator
Interface AttributeWithContext
-
- All Superinterfaces:
Iterable<AttributeWithContext>
- All Known Implementing Classes:
DefaultAttributeWithContext
public interface AttributeWithContext extends Iterable<AttributeWithContext>
Provides an attribute for a list of items.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getWidth
int getWidth()
Gets the width of this attribute.- Returns:
- the width, in items
-
getName
Optional<String> getName()
Gets the name of this attribute.- Returns:
- an optional containing the attribute name, or an empty optional if it does not have any
-
hasChildren
boolean hasChildren()
Returns true if this attribute has children.- Returns:
- true if this attribute has children, false otherwise
-
-