Class SinkEventAttributeSet

  • All Implemented Interfaces:
    java.lang.Cloneable, javax.swing.text.AttributeSet, javax.swing.text.MutableAttributeSet, org.apache.maven.doxia.sink.SinkEventAttributes

    @Deprecated
    public class SinkEventAttributeSet
    extends org.apache.maven.doxia.sink.SinkEventAttributeSet
    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SinkEventAttributeSet.Semantics
      Deprecated.
      Use SinkEventAttributeSet.Semantics instead.
      • Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet

        javax.swing.text.AttributeSet.CharacterAttribute, javax.swing.text.AttributeSet.ColorAttribute, javax.swing.text.AttributeSet.FontAttribute, javax.swing.text.AttributeSet.ParagraphAttribute
    • Field Summary

      • Fields inherited from class org.apache.maven.doxia.sink.SinkEventAttributeSet

        BOLD, CENTER, ITALIC, JUSTIFY, LEFT, LINETHROUGH, MONOSPACED, OVERLINE, RIGHT, SOURCE, UNDERLINE
      • Fields inherited from interface javax.swing.text.AttributeSet

        NameAttribute, ResolveAttribute
      • Fields inherited from interface org.apache.maven.doxia.sink.SinkEventAttributes

        ABBRV, ALIGN, ALT, AXIS, BGCOLOR, BORDER, CELLPADDING, CELLSPACING, CHARSET, CLASS, COLSPAN, CONTENT, COORDS, DATETIME, DECORATION, EMAIL, FRAME, HEADERS, HEIGHT, HREF, HREFLANG, HSPACE, ID, ISMAP, LANG, NAME, NOSHADE, NOWRAP, PROFILE, REL, REV, ROWSPAN, RULES, SCOPE, SECTIONS, SEMANTICS, SHAPE, SIZE, SRC, STYLE, SUMMARY, TARGET, TITLE, TYPE, USEMAP, VALIGN, VALUE, VSPACE, WIDTH
    • Constructor Summary

      Constructors 
      Constructor Description
      SinkEventAttributeSet()
      Deprecated.
      Constructs a new, empty SinkEventAttributeSet with default size 5.
      SinkEventAttributeSet​(int size)
      Deprecated.
      Constructs a new, empty SinkEventAttributeSet with the specified initial size.
      SinkEventAttributeSet​(java.lang.String... attributes)
      Deprecated.
      Constructs a new SinkEventAttributeSet with the attribute name-value mappings as given by the specified String array.
      SinkEventAttributeSet​(javax.swing.text.AttributeSet attributes)
      Deprecated.
      Constructs a new SinkEventAttributeSet with the same attribute name-value mappings as in the specified AttributeSet.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      SinkEventAttributeSet unmodifiable()
      Deprecated.
      Overridden only to keep returning this type, so that code compiled against the old signature keeps resolving the method.
      • Methods inherited from class org.apache.maven.doxia.sink.SinkEventAttributeSet

        addAttribute, addAttributes, clone, containsAttribute, containsAttributes, copyAttributes, entrySet, equals, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, hashCode, isDefined, isEmpty, isEqual, removeAttribute, removeAttributes, removeAttributes, setResolveParent, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SinkEventAttributeSet

        public 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​(java.lang.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​(javax.swing.text.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 Detail

      • unmodifiable

        public SinkEventAttributeSet unmodifiable()
        Deprecated.
        Overridden only to keep returning this type, so that code compiled against the old signature keeps resolving the method.
        Overrides:
        unmodifiable in class org.apache.maven.doxia.sink.SinkEventAttributeSet