public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException { if (inName) { characters(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } }
protected void addResult(Object pResult) throws SAXException { if (inName) { nameObject = pResult; } else { if (nameObject == null) { throw new SAXParseException("Invalid state: Expected name", getDocumentLocator()); } else { if (map.containsKey(nameObject)) { throw new SAXParseException("Duplicate name: " + nameObject, getDocumentLocator()); } else { map.put(nameObject, pResult); } } } }
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { switch (--level) { case 0: setResult(map); break; case 1: if (!Character.isWhitespace(nameBuffer.charAt(i))) { throw new SAXParseException("Unexpected non-whitespace character in member name", getDocumentLocator()); endValueTag(); doneValue = true; case 3: if (inName && inValue && "".equals(pURI) && TypeSerializerImpl.VALUE_TAG.equals(pLocalName)) { endValueTag(); } else { super.endElement(pURI, pLocalName, pQName);
throw new SAXParseException("Expected " + MapSerializer.STRUCT_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + MapSerializer.MEMBER_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected /" + MapSerializer.MEMBER_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + TypeSerializerImpl.VALUE_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + MapSerializer.NAME_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); } else { inValue = true; startValueTag(); if (cfg.isEnabledForExtensions()) { inValue = true; startValueTag(); } else { throw new SAXParseException("Expected /" + MapSerializer.NAME_TAG + ", got " + new QName(pURI, pLocalName),
return new ObjectArrayParser(pConfig, pContext, this); } else if (MapSerializer.STRUCT_TAG.equals(pLocalName)) { return new MapParser(pConfig, pContext, this); } else if (ByteArraySerializer.BASE_64_TAG.equals(pLocalName)) { return new ByteArrayParser();
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { switch (--level) { case 0: setResult(map); break; case 1: if (!Character.isWhitespace(nameBuffer.charAt(i))) { throw new SAXParseException("Unexpected non-whitespace character in member name", getDocumentLocator()); endValueTag(); doneValue = true; case 3: if (inName && inValue && "".equals(pURI) && TypeSerializerImpl.VALUE_TAG.equals(pLocalName)) { endValueTag(); } else { super.endElement(pURI, pLocalName, pQName);
throw new SAXParseException("Expected " + MapSerializer.STRUCT_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + MapSerializer.MEMBER_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected /" + MapSerializer.MEMBER_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + TypeSerializerImpl.VALUE_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + MapSerializer.NAME_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); } else { inValue = true; startValueTag(); if (cfg.isEnabledForExtensions()) { inValue = true; startValueTag(); } else { throw new SAXParseException("Expected /" + MapSerializer.NAME_TAG + ", got " + new QName(pURI, pLocalName),
return new ObjectArrayParser(pConfig, pContext, this); } else if (MapSerializer.STRUCT_TAG.equals(pLocalName)) { return new MapParser(pConfig, pContext, this); } else if (ByteArraySerializer.BASE_64_TAG.equals(pLocalName)) { return new ByteArrayParser();
public void endElement(String pURI, String pLocalName, String pQName) throws SAXException { switch (--level) { case 0: setResult(map); break; case 1: if (!Character.isWhitespace(nameBuffer.charAt(i))) { throw new SAXParseException("Unexpected non-whitespace character in member name", getDocumentLocator()); endValueTag(); doneValue = true; case 3: if (inName && inValue && "".equals(pURI) && TypeSerializerImpl.VALUE_TAG.equals(pLocalName)) { endValueTag(); } else { super.endElement(pURI, pLocalName, pQName);
throw new SAXParseException("Expected " + MapSerializer.STRUCT_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + MapSerializer.MEMBER_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected /" + MapSerializer.MEMBER_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + TypeSerializerImpl.VALUE_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); throw new SAXParseException("Expected " + MapSerializer.NAME_TAG + ", got " + new QName(pURI, pLocalName), getDocumentLocator()); } else { inValue = true; startValueTag(); if (cfg.isEnabledForExtensions()) { inValue = true; startValueTag(); } else { throw new SAXParseException("Expected /" + MapSerializer.NAME_TAG + ", got " + new QName(pURI, pLocalName),
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException { if (inName) { characters(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } }
protected void addResult(Object pResult) throws SAXException { if (inName) { nameObject = pResult; } else { if (nameObject == null) { throw new SAXParseException("Invalid state: Expected name", getDocumentLocator()); } else { if (map.containsKey(nameObject)) { throw new SAXParseException("Duplicate name: " + nameObject, getDocumentLocator()); } else { map.put(nameObject, pResult); } } } }
return new ObjectArrayParser(pConfig, pContext, this); } else if (MapSerializer.STRUCT_TAG.equals(pLocalName)) { return new MapParser(pConfig, pContext, this); } else if (ByteArraySerializer.BASE_64_TAG.equals(pLocalName)) { return new ByteArrayParser();
public void ignorableWhitespace(char[] pChars, int pOffset, int pLength) throws SAXException { if (inName) { characters(pChars, pOffset, pLength); } else { super.ignorableWhitespace(pChars, pOffset, pLength); } }
protected void addResult(Object pResult) throws SAXException { if (inName) { nameObject = pResult; } else { if (nameObject == null) { throw new SAXParseException("Invalid state: Expected name", getDocumentLocator()); } else { if (map.containsKey(nameObject)) { throw new SAXParseException("Duplicate name: " + nameObject, getDocumentLocator()); } else { map.put(nameObject, pResult); } } } }