org.apache.jetspeed.rewriter.html
Class SwingAttributes

java.lang.Object
  extended by org.apache.jetspeed.rewriter.html.SwingAttributes
All Implemented Interfaces:
MutableAttributes, org.xml.sax.Attributes

public class SwingAttributes
extends java.lang.Object
implements MutableAttributes

SwingAttributes

Version:
$Id: SwingAttributes.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Sean Taylor

Constructor Summary
SwingAttributes(javax.swing.text.MutableAttributeSet swingset)
           
 
Method Summary
 void addAttribute(java.lang.String name, java.lang.Object value)
          Creates a new attribute set similar to this one except that it contains an attribute with the given name and value.
 int getIndex(java.lang.String qName)
           
 int getIndex(java.lang.String uri, java.lang.String localPart)
           
 int getLength()
           
 java.lang.String getLocalName(int index)
           
 java.lang.String getQName(int index)
           
 java.lang.String getType(int index)
           
 java.lang.String getType(java.lang.String qName)
           
 java.lang.String getType(java.lang.String uri, java.lang.String localName)
           
 java.lang.String getURI(int index)
           
 java.lang.String getValue(int index)
           
 java.lang.String getValue(java.lang.String qName)
           
 java.lang.String getValue(java.lang.String uri, java.lang.String localName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingAttributes

public SwingAttributes(javax.swing.text.MutableAttributeSet swingset)
Method Detail

getLength

public int getLength()
Specified by:
getLength in interface org.xml.sax.Attributes

getURI

public java.lang.String getURI(int index)
Specified by:
getURI in interface org.xml.sax.Attributes

getLocalName

public java.lang.String getLocalName(int index)
Specified by:
getLocalName in interface org.xml.sax.Attributes

getQName

public java.lang.String getQName(int index)
Specified by:
getQName in interface org.xml.sax.Attributes

getType

public java.lang.String getType(int index)
Specified by:
getType in interface org.xml.sax.Attributes

getValue

public java.lang.String getValue(int index)
Specified by:
getValue in interface org.xml.sax.Attributes

getIndex

public int getIndex(java.lang.String uri,
                    java.lang.String localPart)
Specified by:
getIndex in interface org.xml.sax.Attributes

getIndex

public int getIndex(java.lang.String qName)
Specified by:
getIndex in interface org.xml.sax.Attributes

getType

public java.lang.String getType(java.lang.String uri,
                                java.lang.String localName)
Specified by:
getType in interface org.xml.sax.Attributes

getType

public java.lang.String getType(java.lang.String qName)
Specified by:
getType in interface org.xml.sax.Attributes

getValue

public java.lang.String getValue(java.lang.String uri,
                                 java.lang.String localName)
Specified by:
getValue in interface org.xml.sax.Attributes

getValue

public java.lang.String getValue(java.lang.String qName)
Specified by:
getValue in interface org.xml.sax.Attributes

addAttribute

public void addAttribute(java.lang.String name,
                         java.lang.Object value)
Description copied from interface: MutableAttributes
Creates a new attribute set similar to this one except that it contains an attribute with the given name and value. The object must be immutable, or not mutated by any client.

Specified by:
addAttribute in interface MutableAttributes
Parameters:
name - the name
value - the value


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.