avignon
Class AttributesShunt

java.lang.Object
  extended byavignon.AttributesShunt
All Implemented Interfaces:
org.xml.sax.Attributes

public class AttributesShunt
extends java.lang.Object
implements org.xml.sax.Attributes

Used in unit testing to simulate the attributes that will be available to a tag handler.


Constructor Summary
AttributesShunt()
          Creates an org.xml.sax.Attributes instance with no values
AttributesShunt(java.lang.String[] names, java.lang.String[] values)
          Creates an org.xml.sax.Attributes instance with multiple values.
AttributesShunt(java.lang.String name, java.lang.String value)
          Creates an org.xml.sax.Attributes instance with one value.
 
Method Summary
 int getIndex(java.lang.String str)
          Not supported at this time.
 int getIndex(java.lang.String str, java.lang.String str1)
          Not supported at this time.
 int getLength()
          Not supported at this time.
 java.lang.String getLocalName(int param)
          Not supported at this time.
 java.lang.String getQName(int param)
          Returns the param-th key in the attribute map by getting the key set as it currently exists.
 java.lang.String getType(int param)
          Not supported at this time.
 java.lang.String getType(java.lang.String str)
          Not supported at this time.
 java.lang.String getType(java.lang.String str, java.lang.String str1)
          Not supported at this time.
 java.lang.String getURI(int param)
          Not supported at this time.
 java.lang.String getValue(int param)
          Returns the value for param-th key in the attribute map by getting the key set as it currently exists.
 java.lang.String getValue(java.lang.String name)
          Determines the value of the named attribute.
 java.lang.String getValue(java.lang.String str, java.lang.String str1)
          Not supported at this time.
 void setValue(java.lang.String name, java.lang.String value)
          Allows the programmer to change the value of an attribute at runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesShunt

public AttributesShunt(java.lang.String name,
                       java.lang.String value)
Creates an org.xml.sax.Attributes instance with one value.

Parameters:
name - Name of the attribute.
value - Value of the attribute.

AttributesShunt

public AttributesShunt(java.lang.String[] names,
                       java.lang.String[] values)
Creates an org.xml.sax.Attributes instance with multiple values.

Parameters:
names - Array of attribute names.
values - Array of attribute values in the same order as the names.

AttributesShunt

public AttributesShunt()
Creates an org.xml.sax.Attributes instance with no values

Method Detail

setValue

public void setValue(java.lang.String name,
                     java.lang.String value)
Allows the programmer to change the value of an attribute at runtime.

Parameters:
name - Name of the attribute to change.
value - Value of the attribute.

getIndex

public int getIndex(java.lang.String str)
Not supported at this time.

Specified by:
getIndex in interface org.xml.sax.Attributes
Parameters:
str -
Returns:

getIndex

public int getIndex(java.lang.String str,
                    java.lang.String str1)
Not supported at this time.

Specified by:
getIndex in interface org.xml.sax.Attributes
Parameters:
str -
str1 -
Returns:

getLength

public int getLength()
Not supported at this time.

Specified by:
getLength in interface org.xml.sax.Attributes
Returns:

getLocalName

public java.lang.String getLocalName(int param)
Not supported at this time.

Specified by:
getLocalName in interface org.xml.sax.Attributes
Parameters:
param -
Returns:

getQName

public java.lang.String getQName(int param)
Returns the param-th key in the attribute map by getting the key set as it currently exists.

Specified by:
getQName in interface org.xml.sax.Attributes
Parameters:
param - The index into the key set.
Returns:
The key at the index.

getType

public java.lang.String getType(java.lang.String str)
Not supported at this time.

Specified by:
getType in interface org.xml.sax.Attributes
Parameters:
str -
Returns:

getType

public java.lang.String getType(int param)
Not supported at this time.

Specified by:
getType in interface org.xml.sax.Attributes
Parameters:
param -
Returns:

getType

public java.lang.String getType(java.lang.String str,
                                java.lang.String str1)
Not supported at this time.

Specified by:
getType in interface org.xml.sax.Attributes
Parameters:
str -
str1 -
Returns:

getURI

public java.lang.String getURI(int param)
Not supported at this time.

Specified by:
getURI in interface org.xml.sax.Attributes
Parameters:
param -
Returns:

getValue

public java.lang.String getValue(int param)
Returns the value for param-th key in the attribute map by getting the key set as it currently exists.

Specified by:
getValue in interface org.xml.sax.Attributes
Parameters:
param - The index into the key set.
Returns:
The value for the key at the index.

getValue

public java.lang.String getValue(java.lang.String name)
Determines the value of the named attribute.

Specified by:
getValue in interface org.xml.sax.Attributes
Parameters:
name - Name of the attribute.
Returns:
The value of the attribute or null if it is not found.

getValue

public java.lang.String getValue(java.lang.String str,
                                 java.lang.String str1)
Not supported at this time.

Specified by:
getValue in interface org.xml.sax.Attributes
Parameters:
str -
str1 -
Returns:

SourceForge.net Logo