Package org.apache.maven.doxia.sink.impl
Class SinkEventAttributeSet
- java.lang.Object
-
- org.apache.maven.doxia.sink.SinkEventAttributeSet
-
- org.apache.maven.doxia.sink.impl.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.SinkEventAttributeSetDeprecated.since 2.2.0, useSinkEventAttributeSetinstead.Retained so that code compiled against Doxia 2.1.0 or earlier keeps working. The class moved todoxia-sink-api, next to theSinkEventAttributesinterface it implements and theSinkmethods 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
SinkEventAttributeSetonly. Code that tests them withinstanceofor 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 classSinkEventAttributeSet.SemanticsDeprecated.UseSinkEventAttributeSet.Semanticsinstead.
-
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 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 SinkEventAttributeSetunmodifiable()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
-
-
-
-
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:
unmodifiablein classorg.apache.maven.doxia.sink.SinkEventAttributeSet
-
-