org.apache.xerces.dom

Class DOMNormalizer.XMLAttributesProxy

Enclosing Class:
DOMNormalizer
Implemented Interfaces:
org.apache.xerces.xni.XMLAttributes

protected final class DOMNormalizer.XMLAttributesProxy
extends java.lang.Object
implements org.apache.xerces.xni.XMLAttributes

Field Summary

protected AttributeMap
fAttributes
protected Vector
fAugmentations
protected CoreDocumentImpl
fDocument
protected ElementImpl
fElement

Method Summary

int
addAttribute(org.apache.xerces.xni.QName qname, String attrType, String attrValue)
This method adds default declarations
org.apache.xerces.xni.Augmentations
getAugmentations(String qName)
org.apache.xerces.xni.Augmentations
getAugmentations(String uri, String localPart)
org.apache.xerces.xni.Augmentations
getAugmentations(int attributeIndex)
int
getIndex(String qName)
int
getIndex(String uri, String localPart)
int
getLength()
String
getLocalName(int index)
void
getName(int attrIndex, org.apache.xerces.xni.QName attrName)
String
getNonNormalizedValue(int attrIndex)
String
getPrefix(int index)
String
getQName(int index)
String
getType(String qName)
String
getType(String uri, String localName)
String
getType(int index)
String
getURI(int index)
String
getValue(String qName)
String
getValue(String uri, String localName)
String
getValue(int index)
boolean
isSpecified(int attrIndex)
void
removeAllAttributes()
void
removeAttributeAt(int attrIndex)
void
setAttributes(AttributeMap attributes, CoreDocumentImpl doc, ElementImpl elem)
void
setAugmentations(int attrIndex, org.apache.xerces.xni.Augmentations augs)
Sets the augmentations of the attribute at the specified index.
void
setName(int attrIndex, org.apache.xerces.xni.QName attrName)
void
setNonNormalizedValue(int attrIndex, String attrValue)
void
setSpecified(int attrIndex, boolean specified)
void
setType(int attrIndex, String attrType)
void
setValue(int attrIndex, String attrValue)

Field Details

fAttributes

protected AttributeMap fAttributes

fAugmentations

protected final Vector fAugmentations

fDocument

protected CoreDocumentImpl fDocument

fElement

protected ElementImpl fElement

Method Details

addAttribute

public int addAttribute(org.apache.xerces.xni.QName qname,
                        String attrType,
                        String attrValue)
This method adds default declarations
Specified by:
addAttribute in interface org.apache.xerces.xni.XMLAttributes
See Also:
org.apache.xerces.xni.XMLAttributes.addAttribute(QName, String, String)

getAugmentations

public org.apache.xerces.xni.Augmentations getAugmentations(String qName)
Specified by:
getAugmentations in interface org.apache.xerces.xni.XMLAttributes

getAugmentations

public org.apache.xerces.xni.Augmentations getAugmentations(String uri,
                                                            String localPart)
Specified by:
getAugmentations in interface org.apache.xerces.xni.XMLAttributes

getAugmentations

public org.apache.xerces.xni.Augmentations getAugmentations(int attributeIndex)
Specified by:
getAugmentations in interface org.apache.xerces.xni.XMLAttributes

getIndex

public int getIndex(String qName)
Specified by:
getIndex in interface org.apache.xerces.xni.XMLAttributes

getIndex

public int getIndex(String uri,
                    String localPart)
Specified by:
getIndex in interface org.apache.xerces.xni.XMLAttributes

getLength

public int getLength()
Specified by:
getLength in interface org.apache.xerces.xni.XMLAttributes

getLocalName

public String getLocalName(int index)
Specified by:
getLocalName in interface org.apache.xerces.xni.XMLAttributes

getName

public void getName(int attrIndex,
                    org.apache.xerces.xni.QName attrName)
Specified by:
getName in interface org.apache.xerces.xni.XMLAttributes

getNonNormalizedValue

public String getNonNormalizedValue(int attrIndex)
Specified by:
getNonNormalizedValue in interface org.apache.xerces.xni.XMLAttributes

getPrefix

public String getPrefix(int index)
Specified by:
getPrefix in interface org.apache.xerces.xni.XMLAttributes

getQName

public String getQName(int index)
Specified by:
getQName in interface org.apache.xerces.xni.XMLAttributes

getType

public String getType(String qName)
Specified by:
getType in interface org.apache.xerces.xni.XMLAttributes

getType

public String getType(String uri,
                      String localName)
Specified by:
getType in interface org.apache.xerces.xni.XMLAttributes

getType

public String getType(int index)
Specified by:
getType in interface org.apache.xerces.xni.XMLAttributes

getURI

public String getURI(int index)
Specified by:
getURI in interface org.apache.xerces.xni.XMLAttributes

getValue

public String getValue(String qName)
Specified by:
getValue in interface org.apache.xerces.xni.XMLAttributes

getValue

public String getValue(String uri,
                       String localName)
Specified by:
getValue in interface org.apache.xerces.xni.XMLAttributes

getValue

public String getValue(int index)
Specified by:
getValue in interface org.apache.xerces.xni.XMLAttributes

isSpecified

public boolean isSpecified(int attrIndex)
Specified by:
isSpecified in interface org.apache.xerces.xni.XMLAttributes

removeAllAttributes

public void removeAllAttributes()
Specified by:
removeAllAttributes in interface org.apache.xerces.xni.XMLAttributes

removeAttributeAt

public void removeAttributeAt(int attrIndex)
Specified by:
removeAttributeAt in interface org.apache.xerces.xni.XMLAttributes

setAttributes

public void setAttributes(AttributeMap attributes,
                          CoreDocumentImpl doc,
                          ElementImpl elem)

setAugmentations

public void setAugmentations(int attrIndex,
                             org.apache.xerces.xni.Augmentations augs)
Sets the augmentations of the attribute at the specified index.
Specified by:
setAugmentations in interface org.apache.xerces.xni.XMLAttributes
Parameters:
attrIndex - The attribute index.
augs - The augmentations.

setName

public void setName(int attrIndex,
                    org.apache.xerces.xni.QName attrName)
Specified by:
setName in interface org.apache.xerces.xni.XMLAttributes

setNonNormalizedValue

public void setNonNormalizedValue(int attrIndex,
                                  String attrValue)
Specified by:
setNonNormalizedValue in interface org.apache.xerces.xni.XMLAttributes

setSpecified

public void setSpecified(int attrIndex,
                         boolean specified)
Specified by:
setSpecified in interface org.apache.xerces.xni.XMLAttributes

setType

public void setType(int attrIndex,
                    String attrType)
Specified by:
setType in interface org.apache.xerces.xni.XMLAttributes

setValue

public void setValue(int attrIndex,
                     String attrValue)
Specified by:
setValue in interface org.apache.xerces.xni.XMLAttributes

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.