Package org.daisy.dotify.api.formatter
Class CompoundMarkerReferenceField
- java.lang.Object
-
- org.daisy.dotify.api.formatter.CompoundMarkerReferenceField
-
- All Implemented Interfaces:
Iterable<MarkerReferenceField>
,Field
public class CompoundMarkerReferenceField extends Object implements Field, Iterable<MarkerReferenceField>
A CompoundMarkerReferenceField holds a sequence ofMarkerReferenceField
. Only the first MarkerReferenceField that resolves to a value is rendered.
-
-
Constructor Summary
Constructors Constructor Description CompoundMarkerReferenceField(List<MarkerReferenceField> fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTextStyle()
The text style of the field, or null if no special style is used.Iterator<MarkerReferenceField>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CompoundMarkerReferenceField
public CompoundMarkerReferenceField(List<MarkerReferenceField> fields)
-
-
Method Detail
-
iterator
public Iterator<MarkerReferenceField> iterator()
- Specified by:
iterator
in interfaceIterable<MarkerReferenceField>
-
getTextStyle
public String getTextStyle()
Description copied from interface:Field
The text style of the field, or null if no special style is used.- Specified by:
getTextStyle
in interfaceField
- Returns:
- the text style
-
-