protected void setResult(String pResult) throws SAXException { try { super.setResult(Long.valueOf(pResult.trim())); } catch (NumberFormatException e) { throw new SAXParseException("Failed to parse long value: " + pResult, getDocumentLocator()); } } }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { if (--level == 0) { setResult(sb.toString()); } else { throw new SAXParseException("Unexpected end tag in atomic element: " + new QName(pURI, pLocalName), getDocumentLocator()); } }
public void characters(char[] pChars, int pStart, int pLength) throws SAXException { if (sb == null) { if (!isEmpty(pChars, pStart, pLength)) { throw new SAXParseException("Unexpected non-whitespace characters", getDocumentLocator()); } } else { sb.append(pChars, pStart, pLength); } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { if (level++ == 0) { sb = new StringBuffer(); } else { throw new SAXParseException("Unexpected start tag in atomic element: " + new QName(pURI, pLocalName), getDocumentLocator()); } } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { if (level++ == 0) { sb = new StringBuffer(); } else { throw new SAXParseException("Unexpected start tag in atomic element: " + new QName(pURI, pLocalName), getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { super.setResult((Object) pResult); }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { if (--level == 0) { setResult(sb.toString()); } else { throw new SAXParseException("Unexpected end tag in atomic element: " + new QName(pURI, pLocalName), getDocumentLocator()); } }
public void characters(char[] pChars, int pStart, int pLength) throws SAXException { if (sb == null) { if (!isEmpty(pChars, pStart, pLength)) { throw new SAXParseException("Unexpected non-whitespace characters", getDocumentLocator()); } } else { sb.append(pChars, pStart, pLength); } }
public void startElement(String pURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException { if (level++ == 0) { sb = new StringBuffer(); } else { throw new SAXParseException("Unexpected start tag in atomic element: " + new QName(pURI, pLocalName), getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { super.setResult((Object) pResult); }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { if (--level == 0) { setResult(sb.toString()); } else { throw new SAXParseException("Unexpected end tag in atomic element: " + new QName(pURI, pLocalName), getDocumentLocator()); } }
public void characters(char[] pChars, int pStart, int pLength) throws SAXException { if (sb == null) { if (!isEmpty(pChars, pStart, pLength)) { throw new SAXParseException("Unexpected non-whitespace characters", getDocumentLocator()); } } else { sb.append(pChars, pStart, pLength); } }
protected void setResult(String pResult) throws SAXException { super.setResult((Object) pResult); }
protected void setResult(String pResult) throws SAXException { String s = pResult.trim(); if ("1".equals(s)) { super.setResult(Boolean.TRUE); } else if ("0".equals(s)) { super.setResult(Boolean.FALSE); } else { throw new SAXParseException("Failed to parse boolean value: " + pResult, getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { String s = pResult.trim(); if ("1".equals(s)) { super.setResult(Boolean.TRUE); } else if ("0".equals(s)) { super.setResult(Boolean.FALSE); } else { throw new SAXParseException("Failed to parse boolean value: " + pResult, getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { String s = pResult.trim(); if ("1".equals(s)) { super.setResult(Boolean.TRUE); } else if ("0".equals(s)) { super.setResult(Boolean.FALSE); } else { throw new SAXParseException("Failed to parse boolean value: " + pResult, getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { try { super.setResult(new Float(pResult)); } catch (NumberFormatException e) { throw new SAXParseException("Failed to parse float value: " + pResult, getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { try { super.setResult(new Double(pResult)); } catch (NumberFormatException e) { throw new SAXParseException("Failed to parse double value: " + pResult, getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { try { super.setResult(new Integer(pResult.trim())); } catch (NumberFormatException e) { throw new SAXParseException("Failed to parse integer value: " + pResult, getDocumentLocator()); } } }
protected void setResult(String pResult) throws SAXException { try { super.setResult(new Long(pResult.trim())); } catch (NumberFormatException e) { throw new SAXParseException("Failed to parse long value: " + pResult, getDocumentLocator()); } } }