Class SinkEventAttributeSet

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

public class SinkEventAttributeSet extends Object implements org.apache.maven.doxia.sink.SinkEventAttributes, Cloneable
Implementation of MutableAttributeSet using a LinkedHashMap.
Since:
1.1
Author:
ltheussl
  • Field Details

    • UNDERLINE

      public static final org.apache.maven.doxia.sink.SinkEventAttributes UNDERLINE
      An unmodifiable attribute set containing only an underline attribute.
    • OVERLINE

      public static final org.apache.maven.doxia.sink.SinkEventAttributes OVERLINE
      An unmodifiable attribute set containing only an overline attribute.
    • LINETHROUGH

      public static final org.apache.maven.doxia.sink.SinkEventAttributes LINETHROUGH
      An unmodifiable attribute set containing only a linethrough attribute.
    • SOURCE

      public static final org.apache.maven.doxia.sink.SinkEventAttributes SOURCE
      An unmodifiable attribute set containing only a source attribute.
    • BOLD

      public static final org.apache.maven.doxia.sink.SinkEventAttributes BOLD
      An unmodifiable attribute set containing only a bold attribute.
    • ITALIC

      public static final org.apache.maven.doxia.sink.SinkEventAttributes ITALIC
      An unmodifiable attribute set containing only an italic attribute.
    • MONOSPACED

      public static final org.apache.maven.doxia.sink.SinkEventAttributes MONOSPACED
      An unmodifiable attribute set containing only a monospaced attribute.
    • LEFT

      public static final org.apache.maven.doxia.sink.SinkEventAttributes LEFT
      An unmodifiable attribute set containing only a left attribute.
    • CENTER

      public static final org.apache.maven.doxia.sink.SinkEventAttributes CENTER
      An unmodifiable attribute set containing only a center attribute.
    • JUSTIFY

      public static final org.apache.maven.doxia.sink.SinkEventAttributes JUSTIFY
      An unmodifiable attribute set containing only a justify attribute.
  • 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. Each even index of the array is an attribute name, and the following odd index is the corresponding attribute value. This constructor only supports String attribute values.
      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