org.apache.jetspeed.rewriter.html
Class SwingAttributes

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

public class SwingAttributes
extends Object
implements MutableAttributes

SwingAttributes

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

Field Summary
(package private)  MutableAttributeSet swingset
           
 
Constructor Summary
SwingAttributes(MutableAttributeSet swingset)
           
 
Method Summary
 void addAttribute(String name, 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(String qName)
           
 int getIndex(String uri, String localPart)
           
 int getLength()
           
 String getLocalName(int index)
           
 String getQName(int index)
           
 String getType(int index)
           
 String getType(String qName)
           
 String getType(String uri, String localName)
           
 String getURI(int index)
           
 String getValue(int index)
           
 String getValue(String qName)
           
 String getValue(String uri, String localName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swingset

MutableAttributeSet swingset
Constructor Detail

SwingAttributes

public SwingAttributes(MutableAttributeSet swingset)
Method Detail

getLength

public int getLength()
Specified by:
getLength in interface Attributes

getURI

public String getURI(int index)
Specified by:
getURI in interface Attributes

getLocalName

public String getLocalName(int index)
Specified by:
getLocalName in interface Attributes

getQName

public String getQName(int index)
Specified by:
getQName in interface Attributes

getType

public String getType(int index)
Specified by:
getType in interface Attributes

getValue

public String getValue(int index)
Specified by:
getValue in interface Attributes

getIndex

public int getIndex(String uri,
                    String localPart)
Specified by:
getIndex in interface Attributes

getIndex

public int getIndex(String qName)
Specified by:
getIndex in interface Attributes

getType

public String getType(String uri,
                      String localName)
Specified by:
getType in interface Attributes

getType

public String getType(String qName)
Specified by:
getType in interface Attributes

getValue

public String getValue(String uri,
                       String localName)
Specified by:
getValue in interface Attributes

getValue

public String getValue(String qName)
Specified by:
getValue in interface Attributes

addAttribute

public void addAttribute(String name,
                         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-2007 Apache Software Foundation. All Rights Reserved.