|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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, WIDTH, VSPACE |
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 AttributeSet
public boolean isDefined(Object attrName)
isDefined
in interface AttributeSet
public boolean isEqual(AttributeSet attr)
isEqual
in interface AttributeSet
public AttributeSet copyAttributes()
copyAttributes
in interface AttributeSet
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface AttributeSet
public Object getAttribute(Object key)
getAttribute
in interface AttributeSet
public boolean containsAttribute(Object name, Object value)
containsAttribute
in interface AttributeSet
public boolean containsAttributes(AttributeSet attributes)
containsAttributes
in interface AttributeSet
public void addAttribute(Object name, Object value)
addAttribute
in interface MutableAttributeSet
public void addAttributes(AttributeSet attributes)
addAttributes
in interface MutableAttributeSet
public void removeAttribute(Object name)
removeAttribute
in interface MutableAttributeSet
public void removeAttributes(Enumeration<?> names)
removeAttributes
in interface MutableAttributeSet
public void removeAttributes(AttributeSet attributes)
removeAttributes
in interface MutableAttributeSet
public AttributeSet getResolveParent()
getResolveParent
in interface AttributeSet
public void setResolveParent(AttributeSet parent)
setResolveParent
in interface MutableAttributeSet
public Object clone()
clone
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |