Class RtfAttributes
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAttributes
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
FOPRtfAttributes
Attributes for RtfText.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIntegerValue
(int addValue, String name) Add integer valueaddValue
to attribute with namename
.clone()
getValueAsInteger
(String name) Returns a value as an Integer.Added by Normand Masse Used for attribute inheritanceboolean
set an attribute that has no value.Set an attribute that has an integer valueSet an attribute that has a String valueset
(String name, RtfAttributes value) Set an attribute that has nested attributes as valueset
(RtfAttributes attrs) Set attributes from another attributes objectvoid
setXslAttributes
(Attributes pAttribs) Added by Normand Masse Used for attribute inheritancetoString()
debugging logunset an attribute that has no value
-
Constructor Details
-
RtfAttributes
public RtfAttributes()
-
-
Method Details
-
set
Set attributes from another attributes object- Parameters:
attrs
- RtfAttributes object whose elements will be copied into this instance- Returns:
- this object, for chaining calls
-
set
set an attribute that has no value.- Parameters:
name
- name of attribute to set- Returns:
- this object, for chaining calls
-
unset
unset an attribute that has no value- Parameters:
name
- name of attribute to unset- Returns:
- this object, for chaining calls
-
toString
debugging log -
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
set
Set an attribute that has an integer value- Parameters:
name
- name of attributevalue
- value of attribute- Returns:
- this (which now contains the new entry), for chaining calls
-
set
Set an attribute that has a String value- Parameters:
name
- name of attributetype
- value of attribute- Returns:
- this (which now contains the new entry)
-
set
Set an attribute that has nested attributes as value- Parameters:
name
- name of attributevalue
- value of the nested attributes- Returns:
- this (which now contains the new entry)
-
getValue
- Parameters:
name
- String containing attribute name- Returns:
- the value of an attribute, null if not found
-
getValueAsInteger
Returns a value as an Integer. The value is simply cast to an Integer.- Parameters:
name
- String containing attribute name- Returns:
- the value of an attribute, null if not found
-
isSet
- Parameters:
name
- String containing attribute name- Returns:
- true if given attribute is set
-
nameIterator
- Returns:
- an Iterator on all names that are set
-
getXslAttributes
Added by Normand Masse Used for attribute inheritance- Returns:
- Attributes
-
setXslAttributes
Added by Normand Masse Used for attribute inheritance- Parameters:
pAttribs
- attributes
-
addIntegerValue
Add integer valueaddValue
to attribute with namename
. If there is no such setted attribute, then value of this attribure is equal toaddValue
.- Parameters:
addValue
- the increment of valuename
- the name of attribute
-