org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfAttributes
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfAttributes
- java.lang.Cloneable
public class RtfAttributes
extends java.lang.Object
implements java.lang.Cloneable
Attributes for RtfText
- Bertrand Delacretaz bdelacretaz@codeconsult.ch
addIntegerValue
public void addIntegerValue(int addValue,
String name)
Add integer value 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 attribute
clone
public Object clone()
implement cloning
getValue
public Object getValue(String name)
name
- String containing attribute name
- the value of an attribute, null if not found
getXslAttributes
public Attributes getXslAttributes()
Added by Normand Masse
Used for attribute inheritance
isSet
public boolean isSet(String name)
name
- String containing attribute name
- true if given attribute is set
nameIterator
public Iterator nameIterator()
- an Iterator on all names that are set
set
public RtfAttributes set(String name)
set an attribute that has no value.
name
- name of attribute to set
- this object, for chaining calls
set
public RtfAttributes set(String name,
String type)
Set an attribute that has a String value
name
- name of attributetype
- value of attribute
- this (which now contains the new entry)
set
public RtfAttributes set(String name,
int value)
Set an attribute that has an integer value
name
- name of attributevalue
- value of attribute
- this (which now contains the new entry), for chaining calls
set
public RtfAttributes set(String name,
RtfAttributes value)
Set an attribute that has nested attributes as value
name
- name of attributevalue
- value of the nested attributes
- this (which now contains the new entry)
set
public RtfAttributes set(RtfAttributes attrs)
Set attributes from another attributes object
attrs
- RtfAttributes object whose elements will be copied into this
instance
- this object, for chaining calls
setXslAttributes
public void setXslAttributes(Attributes pAttribs)
Added by Normand Masse
Used for attribute inheritance
toString
public String toString()
debugging log
- String representation of object
unset
public RtfAttributes unset(String name)
unset an attribute that has no value
name
- name of attribute to unset
- this object, for chaining calls
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.