Class SinkEventAttributeSet

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

Deprecated.
since 2.2.0, use SinkEventAttributeSet instead.
Retained so that code compiled against Doxia 2.1.0 or earlier keeps working. The class moved to doxia-sink-api, next to the SinkEventAttributes interface it implements and the Sink methods it is passed to, so that attributes can be created without depending on Doxia internals.

Instances of this class still behave as before, but it is no longer the type of the attribute sets Doxia hands out. The inherited constants, and every attribute set produced inside Doxia, are instances of SinkEventAttributeSet only. Code that tests them with instanceof or casts them to this class has to move to the new class; the constants themselves are unchanged, so reading them through either name yields the very same objects.

  • Constructor Details

    • SinkEventAttributeSet

      Deprecated.
      Constructs a new, empty SinkEventAttributeSet with default size 5.
    • SinkEventAttributeSet

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

      public SinkEventAttributeSet(String... attributes)
      Deprecated.
      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)
      Deprecated.
      Constructs a new SinkEventAttributeSet with the same attribute name-value mappings as in the specified AttributeSet.
      Parameters:
      attributes - the specified AttributeSet.
  • Method Details

    • unmodifiable

      Deprecated.
      Replace this AttributeSet by an unmodifiable view of itself. Any subsequent attempt to add, remove or modify the underlying mapping will result in an UnsupportedOperationException. Overridden only to keep returning this type, so that code compiled against the old signature keeps resolving the method.
      Overrides:
      unmodifiable in class SinkEventAttributeSet
      Returns:
      an unmodifiable view of this AttributeSet.