org.jfor.jfor.rtflib.rtfdoc
Class RtfAttributes

java.lang.Object
  extended byorg.jfor.jfor.rtflib.rtfdoc.RtfAttributes
All Implemented Interfaces:
java.lang.Cloneable

public class RtfAttributes
extends java.lang.Object
implements java.lang.Cloneable

Attributes for RtfText

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Constructor Summary
RtfAttributes()
           
 
Method Summary
 java.lang.Object clone()
          implement cloning
 java.lang.Object getValue(java.lang.String name)
          get the value of an attribute, null if not found
 org.xml.sax.Attributes getXslAttributes()
           
 boolean isSet(java.lang.String name)
          true if given attribute is set
 java.util.Iterator nameIterator()
          return an Iterator on all names that are set
 RtfAttributes set(RtfAttributes attrs)
          set attributes from a other 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, java.lang.String type)
           
 void setXslAttributes(org.xml.sax.Attributes pAttribs)
           
 java.lang.String toString()
          debugging log
 RtfAttributes unset(java.lang.String name)
          unset an attribute that has no value
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RtfAttributes

public RtfAttributes()
Method Detail

set

public RtfAttributes set(RtfAttributes attrs)
set attributes from a other attributes object.

Returns:
this object, for chaining calls

set

public RtfAttributes set(java.lang.String name)
set an attribute that has no value.

Returns:
this object, for chaining calls

unset

public RtfAttributes unset(java.lang.String name)
unset an attribute that has no value

Returns:
this object, for chaining calls

toString

public java.lang.String toString()
debugging log


clone

public java.lang.Object clone()
implement cloning


set

public RtfAttributes set(java.lang.String name,
                         int value)
set an attribute that has an integer value

Returns:
this object, for chaining calls

set

public RtfAttributes set(java.lang.String name,
                         java.lang.String type)

getValue

public java.lang.Object getValue(java.lang.String name)
get the value of an attribute, null if not found


isSet

public boolean isSet(java.lang.String name)
true if given attribute is set


nameIterator

public java.util.Iterator nameIterator()
return an Iterator on all names that are set


getXslAttributes

public org.xml.sax.Attributes getXslAttributes()

setXslAttributes

public void setXslAttributes(org.xml.sax.Attributes pAttribs)