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:
Cloneable,AttributeSet,MutableAttributeSet,SinkEventAttributes
Deprecated.
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 ClassesModifier and TypeClassDescriptionstatic classDeprecated.UseSinkEventAttributeSet.Semanticsinstead.Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute -
Field Summary
Fields inherited from class org.apache.maven.doxia.sink.SinkEventAttributeSet
BOLD, CENTER, ITALIC, JUSTIFY, LEFT, LINETHROUGH, MONOSPACED, OVERLINE, RIGHT, SOURCE, UNDERLINEFields inherited from interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttributeFields 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
ConstructorsConstructorDescriptionDeprecated.Constructs a new, empty SinkEventAttributeSet with default size 5.SinkEventAttributeSet(int size) Deprecated.Constructs a new, empty SinkEventAttributeSet with the specified initial size.SinkEventAttributeSet(String... attributes) Deprecated.Constructs a new SinkEventAttributeSet with the attribute name-value mappings as given by the specified String array.SinkEventAttributeSet(AttributeSet attributes) Deprecated.Constructs a new SinkEventAttributeSet with the same attribute name-value mappings as in the specified AttributeSet. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Replace this AttributeSet by an unmodifiable view of itself.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 Details
-
SinkEventAttributeSet
public SinkEventAttributeSet()Deprecated.Constructs a new, empty SinkEventAttributeSet with default size 5. -
SinkEventAttributeSet
Deprecated.Constructs a new, empty SinkEventAttributeSet with the specified initial size.- Parameters:
size- the initial number of attribs.
-
SinkEventAttributeSet
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
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:
unmodifiablein classSinkEventAttributeSet- Returns:
- an unmodifiable view of this AttributeSet.
-
SinkEventAttributeSetinstead.