public class RtfAttributes extends Object implements Cloneable
Attributes for RtfText.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
Constructor and Description |
---|
RtfAttributes() |
Modifier and Type | Method and Description |
---|---|
void |
addIntegerValue(int addValue,
String name)
Add integer value
addValue to attribute with name name . |
Object |
clone() |
Object |
getValue(String name) |
Integer |
getValueAsInteger(String name)
Returns a value as an Integer.
|
Attributes |
getXslAttributes()
Added by Normand Masse
Used for attribute inheritance
|
boolean |
isSet(String name) |
Iterator |
nameIterator() |
RtfAttributes |
set(RtfAttributes attrs)
Set attributes from another attributes object
|
RtfAttributes |
set(String name)
set an attribute that has no value.
|
RtfAttributes |
set(String name,
int value)
Set an attribute that has an integer value
|
RtfAttributes |
set(String name,
RtfAttributes value)
Set an attribute that has nested attributes as value
|
RtfAttributes |
set(String name,
String type)
Set an attribute that has a String value
|
void |
setXslAttributes(Attributes pAttribs)
Added by Normand Masse
Used for attribute inheritance
|
String |
toString()
debugging log
|
RtfAttributes |
unset(String name)
unset an attribute that has no value
|
public RtfAttributes set(RtfAttributes attrs)
attrs
- RtfAttributes object whose elements will be copied into this
instancepublic RtfAttributes set(String name)
name
- name of attribute to setpublic RtfAttributes unset(String name)
name
- name of attribute to unsetpublic String toString()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public RtfAttributes set(String name, int value)
name
- name of attributevalue
- value of attributepublic RtfAttributes set(String name, String type)
name
- name of attributetype
- value of attributepublic RtfAttributes set(String name, RtfAttributes value)
name
- name of attributevalue
- value of the nested attributespublic Object getValue(String name)
name
- String containing attribute namepublic Integer getValueAsInteger(String name)
name
- String containing attribute namepublic boolean isSet(String name)
name
- String containing attribute namepublic Iterator nameIterator()
public Attributes getXslAttributes()
public void setXslAttributes(Attributes pAttribs)
pAttribs
- attributespublic void addIntegerValue(int addValue, String name)
addValue
to attribute with name name
.
If there is no such setted attribute, then value of this attribure is equal to
addValue
.addValue
- the increment of valuename
- the name of attributeCopyright © 2025 Apache Software Foundation. All rights reserved.