FileDocCategorySizeDatePackage
NullAttributes.javaAPI DocApache Axis 1.45246Sat Apr 22 18:57:28 BST 2006org.apache.axis.message

NullAttributes

public class NullAttributes extends Object implements Attributes
Null implementation of the Attributes interface.
author
David Megginson
author
Sam Ruby

Fields Summary
public static final NullAttributes
singleton
Constructors Summary
Methods Summary
public intgetIndex(java.lang.String uri, java.lang.String localName)
Look up an attribute's index by Namespace name.

In many cases, it will be more efficient to look up the name once and use the index query methods rather than using the name query methods repeatedly.

param
uri The attribute's Namespace URI, or the empty string if none is available.
param
localName The attribute's local name.
return
The attribute's index, or -1 if none matches.
see
org.xml.sax.Attributes#getIndex(java.lang.String,java.lang.String)

        return -1;
    
public intgetIndex(java.lang.String qName)
Look up an attribute's index by qualified (prefixed) name.

param
qName The qualified name.
return
The attribute's index, or -1 if none matches.
see
org.xml.sax.Attributes#getIndex(java.lang.String)

        return -1;
    
public intgetLength()
Return the number of attributes in the list.

return
The number of attributes in the list.
see
org.xml.sax.Attributes#getLength


    ////////////////////////////////////////////////////////////////////
    // Implementation of org.xml.sax.Attributes.
    ////////////////////////////////////////////////////////////////////


                           
        
        return 0;
    
public java.lang.StringgetLocalName(int index)
Return an attribute's local name.

param
index The attribute's index (zero-based).
return
The attribute's local name, the empty string if none is available, or null if the index if out of range.
see
org.xml.sax.Attributes#getLocalName

        return null;
    
public java.lang.StringgetQName(int index)
Return an attribute's qualified (prefixed) name.

param
index The attribute's index (zero-based).
return
The attribute's qualified name, the empty string if none is available, or null if the index is out of bounds.
see
org.xml.sax.Attributes#getQName

        return null;
    
public java.lang.StringgetType(java.lang.String qName)
Look up an attribute's type by qualified (prefixed) name.

param
qName The qualified name.
return
The attribute's type, or null if there is no matching attribute.
see
org.xml.sax.Attributes#getType(java.lang.String)

        return null;
    
public java.lang.StringgetType(int index)
Return an attribute's type by index.

param
index The attribute's index (zero-based).
return
The attribute's type, "CDATA" if the type is unknown, or null if the index is out of bounds.
see
org.xml.sax.Attributes#getType(int)

        return null;
    
public java.lang.StringgetType(java.lang.String uri, java.lang.String localName)
Look up an attribute's type by Namespace-qualified name.

param
uri The Namespace URI, or the empty string for a name with no explicit Namespace URI.
param
localName The local name.
return
The attribute's type, or null if there is no matching attribute.
see
org.xml.sax.Attributes#getType(java.lang.String,java.lang.String)

        return null;
    
public java.lang.StringgetURI(int index)
Return an attribute's Namespace URI.

param
index The attribute's index (zero-based).
return
The Namespace URI, the empty string if none is available, or null if the index is out of range.
see
org.xml.sax.Attributes#getURI

        return null;
    
public java.lang.StringgetValue(java.lang.String uri, java.lang.String localName)
Look up an attribute's value by Namespace-qualified name.

param
uri The Namespace URI, or the empty string for a name with no explicit Namespace URI.
param
localName The local name.
return
The attribute's value, or null if there is no matching attribute.
see
org.xml.sax.Attributes#getValue(java.lang.String,java.lang.String)

        return null;
    
public java.lang.StringgetValue(java.lang.String qName)
Look up an attribute's value by qualified (prefixed) name.

param
qName The qualified name.
return
The attribute's value, or null if there is no matching attribute.
see
org.xml.sax.Attributes#getValue(java.lang.String)

        return null;
    
public java.lang.StringgetValue(int index)
Return an attribute's value by index.

param
index The attribute's index (zero-based).
return
The attribute's value or null if the index is out of bounds.
see
org.xml.sax.Attributes#getValue(int)

        return null;