예제 #1
0
 public CharArray getAttributeValue(int index) {
   if (_eventType != XMLStreamConstants.START_ELEMENT) throw illegalState("Not a start element");
   return _attributes.getValue(index);
 }
예제 #2
0
 public boolean isAttributeSpecified(int index) {
   if (_eventType != XMLStreamConstants.START_ELEMENT)
     throw new IllegalStateException("Not a start element");
   return _attributes.getValue(index) != null;
 }
예제 #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);
 }