|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.doxia.sink.SinkEventAttributeSet
public class SinkEventAttributeSet
Implementation of MutableAttributeSet using a LinkedHashMap.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet |
|---|
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute |
| Field Summary | |
|---|---|
static SinkEventAttributes |
BOLD
An unmodifiable attribute set containing only a bold attribute. |
static SinkEventAttributes |
BOXED
An unmodifiable attribute set containing only a boxed attribute. |
static SinkEventAttributes |
CENTER
An unmodifiable attribute set containing only a center attribute. |
static SinkEventAttributes |
ITALIC
An unmodifiable attribute set containing only an italic attribute. |
static SinkEventAttributes |
JUSTIFY
An unmodifiable attribute set containing only a justify attribute. |
static SinkEventAttributes |
LEFT
An unmodifiable attribute set containing only a left attribute. |
static SinkEventAttributes |
LINETHROUGH
An unmodifiable attribute set containing only a linethrough attribute. |
static SinkEventAttributes |
MONOSPACED
An unmodifiable attribute set containing only a monospaced attribute. |
static SinkEventAttributes |
OVERLINE
An unmodifiable attribute set containing only an overline attribute. |
static SinkEventAttributes |
RIGHT
An unmodifiable attribute set containing only a right attribute. |
static SinkEventAttributes |
UNDERLINE
An unmodifiable attribute set containing only an underline attribute. |
| Fields inherited from interface org.apache.maven.doxia.sink.SinkEventAttributes |
|---|
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 |
| Fields inherited from interface javax.swing.text.AttributeSet |
|---|
NameAttribute, ResolveAttribute |
| Constructor Summary | |
|---|---|
SinkEventAttributeSet()
Constructs a new, empty SinkEventAttributeSet with default size 5. |
|
SinkEventAttributeSet(AttributeSet attributes)
Constructs a new SinkEventAttributeSet with the same attribute name-value mappings as in the specified AttributeSet. |
|
SinkEventAttributeSet(int size)
Constructs a new, empty SinkEventAttributeSet with the specified initial size. |
|
SinkEventAttributeSet(String... attributes)
Constructs a new SinkEventAttributeSet with the attribute name-value mappings as given by the specified String array. |
|
| Method Summary | |
|---|---|
void |
addAttribute(Object name,
Object value)
Adds an attribute with the given name and value. |
void |
addAttributes(AttributeSet attributes)
|
Object |
clone()
|
boolean |
containsAttribute(Object name,
Object value)
|
boolean |
containsAttributes(AttributeSet attributes)
|
AttributeSet |
copyAttributes()
|
boolean |
equals(Object obj)
|
Object |
getAttribute(Object key)
|
int |
getAttributeCount()
|
Enumeration<String> |
getAttributeNames()
|
AttributeSet |
getResolveParent()
|
int |
hashCode()
|
boolean |
isDefined(Object attrName)
|
boolean |
isEmpty()
Checks whether the set of attribs is empty. |
boolean |
isEqual(AttributeSet attr)
|
void |
removeAttribute(Object name)
|
void |
removeAttributes(AttributeSet attributes)
|
void |
removeAttributes(Enumeration<?> names)
|
void |
setResolveParent(AttributeSet parent)
|
String |
toString()
|
SinkEventAttributeSet |
unmodifiable()
Replace this AttributeSet by an unmodifiable view of itself. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SinkEventAttributes UNDERLINE
public static final SinkEventAttributes OVERLINE
public static final SinkEventAttributes LINETHROUGH
public static final SinkEventAttributes BOXED
public static final SinkEventAttributes BOLD
public static final SinkEventAttributes ITALIC
public static final SinkEventAttributes MONOSPACED
public static final SinkEventAttributes LEFT
public static final SinkEventAttributes RIGHT
public static final SinkEventAttributes CENTER
public static final SinkEventAttributes JUSTIFY
| Constructor Detail |
|---|
public SinkEventAttributeSet()
public SinkEventAttributeSet(int size)
size - the initial number of attribs.public SinkEventAttributeSet(String... attributes)
attributes - the specified String array. If the length of this array
is not an even number, an IllegalArgumentException is thrown.public SinkEventAttributeSet(AttributeSet attributes)
attributes - the specified AttributeSet.| Method Detail |
|---|
public SinkEventAttributeSet unmodifiable()
public boolean isEmpty()
public int getAttributeCount()
getAttributeCount in interface AttributeSetpublic boolean isDefined(Object attrName)
isDefined in interface AttributeSetpublic boolean isEqual(AttributeSet attr)
isEqual in interface AttributeSetpublic AttributeSet copyAttributes()
copyAttributes in interface AttributeSetpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface AttributeSetpublic Object getAttribute(Object key)
getAttribute in interface AttributeSet
public boolean containsAttribute(Object name,
Object value)
containsAttribute in interface AttributeSetpublic boolean containsAttributes(AttributeSet attributes)
containsAttributes in interface AttributeSet
public void addAttribute(Object name,
Object value)
addAttribute in interface MutableAttributeSetpublic void addAttributes(AttributeSet attributes)
addAttributes in interface MutableAttributeSetpublic void removeAttribute(Object name)
removeAttribute in interface MutableAttributeSetpublic void removeAttributes(Enumeration<?> names)
removeAttributes in interface MutableAttributeSetpublic void removeAttributes(AttributeSet attributes)
removeAttributes in interface MutableAttributeSetpublic AttributeSet getResolveParent()
getResolveParent in interface AttributeSetpublic void setResolveParent(AttributeSet parent)
setResolveParent in interface MutableAttributeSetpublic Object clone()
clone in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||