|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.document.AttributesFilter
public class AttributesFilter
Wrapper of attribute list; from DOM NamedNodeMap to SAX Attributes interface.
This class hides the emp:id attribute and all attributes,
which qname begins with "xml" string.
Warning: if NamedNodeMap is modified after creating this
instance, you must create new instance of this class. Otherwise it will not
work properly.
Clients may subclass and/or instantiate the class.
| Field Summary | |
|---|---|
List<Attr> |
attrs
List of regular attributes, reflects state of this object. |
NamedNodeMap |
attrsMap
Wrapped attributes. |
| Constructor Summary | |
|---|---|
AttributesFilter(NamedNodeMap attributes)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getIndex(String qName)
|
int |
getIndex(String uri,
String localName)
|
int |
getLength()
|
String |
getLocalName(int index)
|
int |
getOriginalIndex(int i)
Returns index in original NamedNodeMap from this index. |
String |
getQName(int index)
|
String |
getType(int index)
|
String |
getType(String qName)
|
String |
getType(String uri,
String localName)
|
String |
getURI(int index)
|
String |
getValue(int index)
|
String |
getValue(String qName)
|
String |
getValue(String uri,
String localName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final List<Attr> attrs
public final NamedNodeMap attrsMap
| Constructor Detail |
|---|
public AttributesFilter(NamedNodeMap attributes)
attributes - wrapped attributes. must not be null.| Method Detail |
|---|
public int getIndex(String uri,
String localName)
getIndex in interface Attributespublic int getIndex(String qName)
getIndex in interface Attributespublic int getLength()
getLength in interface Attributespublic String getLocalName(int index)
getLocalName in interface Attributespublic String getQName(int index)
getQName in interface Attributespublic String getType(int index)
getType in interface Attributes
public String getType(String uri,
String localName)
getType in interface Attributespublic String getType(String qName)
getType in interface Attributespublic String getURI(int index)
getURI in interface Attributespublic String getValue(int index)
getValue in interface Attributes
public String getValue(String uri,
String localName)
getValue in interface Attributespublic String getValue(String qName)
getValue in interface Attributespublic int getOriginalIndex(int i)
NamedNodeMap from this index.
These two may differ because some attributes are not returnable in this
class (those, for which isRegularAttribute returns false).
i - index to this object (attrs list).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||