public class RtfAttributes
extends java.lang.Object
implements java.lang.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,
java.lang.String name)
Add integer value
addValue to attribute with name name. |
java.lang.Object |
clone() |
java.lang.Object |
getValue(java.lang.String name) |
java.lang.Integer |
getValueAsInteger(java.lang.String name)
Returns a value as an Integer.
|
org.xml.sax.Attributes |
getXslAttributes()
Added by Normand Masse
Used for attribute inheritance
|
boolean |
isSet(java.lang.String name) |
java.util.Iterator |
nameIterator() |
RtfAttributes |
set(RtfAttributes attrs)
Set attributes from another attributes object
|
RtfAttributes |
set(java.lang.String name)
set an attribute that has no value.
|
RtfAttributes |
set(java.lang.String name,
int value)
Set an attribute that has an integer value
|
RtfAttributes |
set(java.lang.String name,
RtfAttributes value)
Set an attribute that has nested attributes as value
|
RtfAttributes |
set(java.lang.String name,
java.lang.String type)
Set an attribute that has a String value
|
void |
setXslAttributes(org.xml.sax.Attributes pAttribs)
Added by Normand Masse
Used for attribute inheritance
|
java.lang.String |
toString()
debugging log
|
RtfAttributes |
unset(java.lang.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(java.lang.String name)
name - name of attribute to setpublic RtfAttributes unset(java.lang.String name)
name - name of attribute to unsetpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic RtfAttributes set(java.lang.String name, int value)
name - name of attributevalue - value of attributepublic RtfAttributes set(java.lang.String name, java.lang.String type)
name - name of attributetype - value of attributepublic RtfAttributes set(java.lang.String name, RtfAttributes value)
name - name of attributevalue - value of the nested attributespublic java.lang.Object getValue(java.lang.String name)
name - String containing attribute namepublic java.lang.Integer getValueAsInteger(java.lang.String name)
name - String containing attribute namepublic boolean isSet(java.lang.String name)
name - String containing attribute namepublic java.util.Iterator nameIterator()
public org.xml.sax.Attributes getXslAttributes()
public void setXslAttributes(org.xml.sax.Attributes pAttribs)
pAttribs - attributespublic void addIntegerValue(int addValue,
java.lang.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 1999-2022 The Apache Software Foundation. All Rights Reserved.