Class SinkEventAttributeSet

java.lang.Object
org.apache.maven.doxia.sink.impl.SinkEventAttributeSet
All Implemented Interfaces:
Cloneable, AttributeSet, MutableAttributeSet, SinkEventAttributes

public class SinkEventAttributeSet extends Object implements SinkEventAttributes, Cloneable
Implementation of MutableAttributeSet using a LinkedHashMap.
Since:
1.1
  • Field Details

    • UNDERLINE

      public static final SinkEventAttributes UNDERLINE
      An unmodifiable attribute set containing only an underline attribute.
    • OVERLINE

      public static final SinkEventAttributes OVERLINE
      An unmodifiable attribute set containing only an overline attribute.
    • LINETHROUGH

      public static final SinkEventAttributes LINETHROUGH
      An unmodifiable attribute set containing only a linethrough attribute.
    • BOXED

      public static final SinkEventAttributes BOXED
      An unmodifiable attribute set containing only a boxed attribute.
    • BOLD

      public static final SinkEventAttributes BOLD
      An unmodifiable attribute set containing only a bold attribute.
    • ITALIC

      public static final SinkEventAttributes ITALIC
      An unmodifiable attribute set containing only an italic attribute.
    • MONOSPACED

      public static final SinkEventAttributes MONOSPACED
      An unmodifiable attribute set containing only a monospaced attribute.
    • LEFT

      public static final SinkEventAttributes LEFT
      An unmodifiable attribute set containing only a left attribute.
    • CENTER

      public static final SinkEventAttributes CENTER
      An unmodifiable attribute set containing only a center attribute.
    • JUSTIFY

      public static final SinkEventAttributes JUSTIFY
      An unmodifiable attribute set containing only a justify attribute.
    • attribs

      private Map<String,Object> attribs
    • resolveParent

      private AttributeSet resolveParent
  • Constructor Details

    • SinkEventAttributeSet

      public SinkEventAttributeSet()
      Constructs a new, empty SinkEventAttributeSet with default size 5.
    • SinkEventAttributeSet

      public SinkEventAttributeSet(int size)
      Constructs a new, empty SinkEventAttributeSet with the specified initial size.
      Parameters:
      size - the initial number of attribs.
    • SinkEventAttributeSet

      public SinkEventAttributeSet(String... attributes)
      Constructs a new SinkEventAttributeSet with the attribute name-value mappings as given by the specified String array.
      Parameters:
      attributes - the specified String array. If the length of this array is not an even number, an IllegalArgumentException is thrown.
    • SinkEventAttributeSet

      public SinkEventAttributeSet(AttributeSet attributes)
      Constructs a new SinkEventAttributeSet with the same attribute name-value mappings as in the specified AttributeSet.
      Parameters:
      attributes - the specified AttributeSet.
  • Method Details