|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crimson.tree.AttributeSet
Class representing a list of XML attributes.
This couples slightly with the Sun XML parser, in that it optionally uses an extended SAX API to see if an attribute was specified in the document or was instead defaulted by attribute processing.
Field Summary | |
private Vector |
list
|
private org.w3c.dom.Element |
ownerElement
|
private boolean |
readonly
|
Constructor Summary | |
private |
AttributeSet()
|
(package private) |
AttributeSet(AttributeSet original)
Constructor used to implement Document.importNode(). |
(package private) |
AttributeSet(AttributeSet original,
boolean deep)
|
(package private) |
AttributeSet(org.w3c.dom.Element ownerElement)
|
Method Summary | |
(package private) static AttributeSet |
createAttributeSet1(org.xml.sax.Attributes source)
Create a DOM NamedNodeMap consisting of DOM Level 1 Attr nodes from a SAX2 Attributes object |
(package private) static AttributeSet |
createAttributeSet2(org.xml.sax.Attributes source)
Create a DOM NamedNodeMap consisting of DOM Level 2 Attr nodes from a SAX2 Attributes object |
int |
getLength()
|
org.w3c.dom.Node |
getNamedItem(String name)
|
org.w3c.dom.Node |
getNamedItemNS(String namespaceURI,
String localName)
DOM2: |
(package private) String |
getValue(String name)
|
boolean |
isReadonly()
|
org.w3c.dom.Node |
item(int index)
|
org.w3c.dom.Node |
removeNamedItem(String name)
|
org.w3c.dom.Node |
removeNamedItemNS(String namespaceURI,
String localName)
DOM2: |
org.w3c.dom.Node |
setNamedItem(org.w3c.dom.Node value)
Note: this method both checks and sets the "ownerElement" of the "value" parameter. |
org.w3c.dom.Node |
setNamedItemNS(org.w3c.dom.Node arg)
DOM2: Spec technically allows other types of nodes also, but this code assumes Attr nodes only |
(package private) void |
setOwnerElement(org.w3c.dom.Element e)
|
void |
setReadonly()
|
String |
toString()
Returns a string representation of the object. |
(package private) void |
trimToSize()
|
void |
writeChildrenXml(XmlWriteContext context)
Does nothing; this type of node has no children. |
void |
writeXml(XmlWriteContext context)
Writes out the attribute list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean readonly
private Vector list
private org.w3c.dom.Element ownerElement
Constructor Detail |
private AttributeSet()
AttributeSet(org.w3c.dom.Element ownerElement)
AttributeSet(AttributeSet original, boolean deep)
AttributeSet(AttributeSet original)
Method Detail |
static AttributeSet createAttributeSet2(org.xml.sax.Attributes source) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
static AttributeSet createAttributeSet1(org.xml.sax.Attributes source) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
void trimToSize()
public void setReadonly()
public boolean isReadonly()
void setOwnerElement(org.w3c.dom.Element e)
String getValue(String name)
public org.w3c.dom.Node getNamedItem(String name)
getNamedItem
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node getNamedItemNS(String namespaceURI, String localName)
getNamedItemNS
in interface org.w3c.dom.NamedNodeMap
public int getLength()
getLength
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NamedNodeMap
public org.w3c.dom.Node removeNamedItem(String name) throws org.w3c.dom.DOMException
removeNamedItem
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node removeNamedItemNS(String namespaceURI, String localName) throws org.w3c.dom.DOMException
removeNamedItemNS
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node setNamedItem(org.w3c.dom.Node value) throws org.w3c.dom.DOMException
setNamedItem
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public org.w3c.dom.Node setNamedItemNS(org.w3c.dom.Node arg) throws org.w3c.dom.DOMException
setNamedItemNS
in interface org.w3c.dom.NamedNodeMap
org.w3c.dom.DOMException
public void writeXml(XmlWriteContext context) throws IOException
writeXml
in interface XmlWritable
IOException
public void writeChildrenXml(XmlWriteContext context) throws IOException
writeChildrenXml
in interface XmlWritable
IOException
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |