Esempio n. 1
0
 public CharArray getAttributeValue(int index) {
   if (_eventType != XMLStreamConstants.START_ELEMENT) throw illegalState("Not a start element");
   return _attributes.getValue(index);
 }
Esempio n. 2
0
 public boolean isAttributeSpecified(int index) {
   if (_eventType != XMLStreamConstants.START_ELEMENT)
     throw new IllegalStateException("Not a start element");
   return _attributes.getValue(index) != null;
 }
Esempio n. 3
0
 public CharArray getAttributeValue(CharSequence uri, CharSequence localName) {
   if (_eventType != XMLStreamConstants.START_ELEMENT) throw illegalState("Not a start element");
   return (uri == null) ? _attributes.getValue(localName) : _attributes.getValue(uri, localName);
 }