com.simonstl.midp.xml
Class TAMAttributesImpl

java.lang.Object
  |
  +--com.simonstl.midp.xml.TAMAttributesImpl
All Implemented Interfaces:
TamAttributes

public class TAMAttributesImpl
extends java.lang.Object
implements TamAttributes

An implementation of TamAttributes, used by TAMParserImpl to report attributes.

Author:
simonstl

Constructor Summary
TAMAttributesImpl()
          Creates a new instance of TAMAttributesImpl
TAMAttributesImpl(TamAttributes atts)
           
 
Method Summary
 void addAttribute(java.lang.String uri, java.lang.String localName, java.lang.String prefix, java.lang.String value)
           
 void addAttribute(TAMAttribute adder)
           
 boolean getContainsSkippedEntity(int index)
          Added because TAM processors are not required to read DTDs.
 boolean getContainsSkippedEntity(java.lang.String uri, java.lang.String localName)
          Added because TAM processors are not required to read DTDs.
 int getIndex(java.lang.String uri, java.lang.String localName)
           
 int getLength()
           
 java.lang.String getLocalName(int index)
           
 java.lang.String getPrefix(int index)
           
 java.lang.String getQName(int index)
           
 java.lang.String getUri(int index)
           
 java.lang.String getValue(int index)
           
 java.lang.String getValue(java.lang.String uri, java.lang.String localName)
           
 void setUris(TAMNSContext namespaces)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TAMAttributesImpl

public TAMAttributesImpl()
Creates a new instance of TAMAttributesImpl

TAMAttributesImpl

public TAMAttributesImpl(TamAttributes atts)
Method Detail

getIndex

public int getIndex(java.lang.String uri,
                    java.lang.String localName)
Specified by:
getIndex in interface TamAttributes

getLength

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

getLocalName

public java.lang.String getLocalName(int index)
Specified by:
getLocalName in interface TamAttributes

getQName

public java.lang.String getQName(int index)
Specified by:
getQName in interface TamAttributes

getPrefix

public java.lang.String getPrefix(int index)
Specified by:
getPrefix in interface TamAttributes

getUri

public java.lang.String getUri(int index)
Specified by:
getUri in interface TamAttributes

getValue

public java.lang.String getValue(int index)
Specified by:
getValue in interface TamAttributes

getValue

public java.lang.String getValue(java.lang.String uri,
                                 java.lang.String localName)
Specified by:
getValue in interface TamAttributes

addAttribute

public void addAttribute(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String prefix,
                         java.lang.String value)

addAttribute

public void addAttribute(TAMAttribute adder)

getContainsSkippedEntity

public boolean getContainsSkippedEntity(int index)
Description copied from interface: TamAttributes
Added because TAM processors are not required to read DTDs. If this is true, the entity reference will be left in place in the attribute value.
Specified by:
getContainsSkippedEntity in interface TamAttributes

getContainsSkippedEntity

public boolean getContainsSkippedEntity(java.lang.String uri,
                                        java.lang.String localName)
Description copied from interface: TamAttributes
Added because TAM processors are not required to read DTDs. If this is true, the entity reference will be left in place in the attribute value.
Specified by:
getContainsSkippedEntity in interface TamAttributes

setUris

public void setUris(TAMNSContext namespaces)