|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.AttributesImpl org.apache.crimson.parser.AttributesExImpl
Implementation of the AttributesEx interface which provides additional features to support editor-oriented DOM features: exposing attribute defaulting. Derived from old AttributeListImpl.java code.
Field Summary | |
private Vector |
defaults
|
private String |
idAttributeName
|
private Vector |
specified
|
Fields inherited from class org.xml.sax.helpers.AttributesImpl |
|
Constructor Summary | |
(package private) |
AttributesExImpl()
|
Method Summary | |
void |
addAttribute(String uri,
String localName,
String qName,
String type,
String value,
String defaultValue,
boolean isSpecified)
Add an attribute to this list |
void |
clear()
Clears the attribute list so it has no members |
String |
getDefault(int i)
Return the default value of an attribute in this list (by position). |
String |
getIdAttributeName()
Returns the name of the ID attribute. |
boolean |
isSpecified(int i)
Returns true if the value was specified by a parsed document (by position; no by-name variant). |
(package private) void |
setIdAttributeName(String name)
Allows parser to set the name of the ID attribute. |
Methods inherited from class org.xml.sax.helpers.AttributesImpl |
addAttribute, getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue, removeAttribute, setAttribute, setAttributes, setLocalName, setQName, setType, setURI, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.Attributes |
getIndex, getIndex, getLength, getLocalName, getQName, getType, getType, getType, getURI, getValue, getValue, getValue |
Field Detail |
private Vector specified
private Vector defaults
private String idAttributeName
Constructor Detail |
AttributesExImpl()
Method Detail |
public void clear()
public void addAttribute(String uri, String localName, String qName, String type, String value, String defaultValue, boolean isSpecified)
public boolean isSpecified(int i)
isSpecified
in interface AttributesEx
i
- the index of the attribute in the list.public String getDefault(int i)
getDefault
in interface AttributesEx
i
- the index of the attribute in the list.public String getIdAttributeName()
getIdAttributeName
in interface AttributesEx
void setIdAttributeName(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |