java.lang.Cloneable, javax.swing.text.AttributeSet, javax.swing.text.MutableAttributeSet, org.apache.maven.doxia.sink.SinkEventAttributespublic class SinkEventAttributeSet
extends java.lang.Object
implements org.apache.maven.doxia.sink.SinkEventAttributes, java.lang.Cloneable
| Modifier and Type | Field | Description |
|---|---|---|
static org.apache.maven.doxia.sink.SinkEventAttributes |
BOLD |
An unmodifiable attribute set containing only a bold attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
BOXED |
An unmodifiable attribute set containing only a boxed attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
CENTER |
An unmodifiable attribute set containing only a center attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
ITALIC |
An unmodifiable attribute set containing only an italic attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
JUSTIFY |
An unmodifiable attribute set containing only a justify attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
LEFT |
An unmodifiable attribute set containing only a left attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
LINETHROUGH |
An unmodifiable attribute set containing only a linethrough attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
MONOSPACED |
An unmodifiable attribute set containing only a monospaced attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
OVERLINE |
An unmodifiable attribute set containing only an overline attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
RIGHT |
An unmodifiable attribute set containing only a right attribute.
|
static org.apache.maven.doxia.sink.SinkEventAttributes |
UNDERLINE |
An unmodifiable attribute set containing only an underline attribute.
|
ABBRV, ALIGN, ALT, AXIS, BGCOLOR, BORDER, CELLPADDING, CELLSPACING, CHARSET, CLASS, COLSPAN, COORDS, DECORATION, EMAIL, FRAME, HEADERS, HEIGHT, HREF, HREFLANG, HSPACE, ID, ISMAP, LANG, NAME, NOSHADE, NOWRAP, PROFILE, REL, REV, ROWSPAN, RULES, SCOPE, SHAPE, SIZE, SRC, STYLE, SUMMARY, TARGET, TITLE, TYPE, USEMAP, VALIGN, VSPACE, WIDTH| Constructor | Description |
|---|---|
SinkEventAttributeSet() |
Constructs a new, empty SinkEventAttributeSet with default size 5.
|
SinkEventAttributeSet(int size) |
Constructs a new, empty SinkEventAttributeSet with the specified initial size.
|
SinkEventAttributeSet(java.lang.String... attributes) |
Constructs a new SinkEventAttributeSet with the attribute name-value
mappings as given by the specified String array.
|
SinkEventAttributeSet(javax.swing.text.AttributeSet attributes) |
Constructs a new SinkEventAttributeSet with the same attribute name-value
mappings as in the specified AttributeSet.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAttribute(java.lang.Object name,
java.lang.Object value) |
Adds an attribute with the given name and value.
|
void |
addAttributes(javax.swing.text.AttributeSet attributes) |
|
java.lang.Object |
clone() |
|
boolean |
containsAttribute(java.lang.Object name,
java.lang.Object value) |
|
boolean |
containsAttributes(javax.swing.text.AttributeSet attributes) |
|
javax.swing.text.AttributeSet |
copyAttributes() |
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.Object |
getAttribute(java.lang.Object key) |
|
int |
getAttributeCount() |
|
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
|
javax.swing.text.AttributeSet |
getResolveParent() |
|
int |
hashCode() |
|
boolean |
isDefined(java.lang.Object attrName) |
|
boolean |
isEmpty() |
Checks whether the set of attribs is empty.
|
boolean |
isEqual(javax.swing.text.AttributeSet attr) |
|
void |
removeAttribute(java.lang.Object name) |
|
void |
removeAttributes(java.util.Enumeration<?> names) |
|
void |
removeAttributes(javax.swing.text.AttributeSet attributes) |
|
void |
setResolveParent(javax.swing.text.AttributeSet parent) |
|
java.lang.String |
toString() |
|
SinkEventAttributeSet |
unmodifiable() |
Replace this AttributeSet by an unmodifiable view of itself.
|
public static final org.apache.maven.doxia.sink.SinkEventAttributes UNDERLINE
public static final org.apache.maven.doxia.sink.SinkEventAttributes OVERLINE
public static final org.apache.maven.doxia.sink.SinkEventAttributes LINETHROUGH
public static final org.apache.maven.doxia.sink.SinkEventAttributes BOXED
public static final org.apache.maven.doxia.sink.SinkEventAttributes BOLD
public static final org.apache.maven.doxia.sink.SinkEventAttributes ITALIC
public static final org.apache.maven.doxia.sink.SinkEventAttributes MONOSPACED
public static final org.apache.maven.doxia.sink.SinkEventAttributes LEFT
public static final org.apache.maven.doxia.sink.SinkEventAttributes RIGHT
public static final org.apache.maven.doxia.sink.SinkEventAttributes CENTER
public static final org.apache.maven.doxia.sink.SinkEventAttributes JUSTIFY
public SinkEventAttributeSet()
public SinkEventAttributeSet(int size)
size - the initial number of attribs.public SinkEventAttributeSet(java.lang.String... attributes)
attributes - the specified String array. If the length of this array
is not an even number, an IllegalArgumentException is thrown.public SinkEventAttributeSet(javax.swing.text.AttributeSet attributes)
attributes - the specified AttributeSet.public SinkEventAttributeSet unmodifiable()
public boolean isEmpty()
public int getAttributeCount()
getAttributeCount in interface javax.swing.text.AttributeSetpublic boolean isDefined(java.lang.Object attrName)
isDefined in interface javax.swing.text.AttributeSetpublic boolean isEqual(javax.swing.text.AttributeSet attr)
isEqual in interface javax.swing.text.AttributeSetpublic javax.swing.text.AttributeSet copyAttributes()
copyAttributes in interface javax.swing.text.AttributeSetpublic java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames in interface javax.swing.text.AttributeSetpublic java.lang.Object getAttribute(java.lang.Object key)
getAttribute in interface javax.swing.text.AttributeSetpublic boolean containsAttribute(java.lang.Object name,
java.lang.Object value)
containsAttribute in interface javax.swing.text.AttributeSetpublic boolean containsAttributes(javax.swing.text.AttributeSet attributes)
containsAttributes in interface javax.swing.text.AttributeSetpublic void addAttribute(java.lang.Object name,
java.lang.Object value)
addAttribute in interface javax.swing.text.MutableAttributeSetpublic void addAttributes(javax.swing.text.AttributeSet attributes)
addAttributes in interface javax.swing.text.MutableAttributeSetpublic void removeAttribute(java.lang.Object name)
removeAttribute in interface javax.swing.text.MutableAttributeSetpublic void removeAttributes(java.util.Enumeration<?> names)
removeAttributes in interface javax.swing.text.MutableAttributeSetpublic void removeAttributes(javax.swing.text.AttributeSet attributes)
removeAttributes in interface javax.swing.text.MutableAttributeSetpublic javax.swing.text.AttributeSet getResolveParent()
getResolveParent in interface javax.swing.text.AttributeSetpublic void setResolveParent(javax.swing.text.AttributeSet parent)
setResolveParent in interface javax.swing.text.MutableAttributeSetpublic java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object