private static void parseProperty(XMLStreamReader reader, AdminObjectImpl anObj) throws XMLStreamException { boolean text = false; if (reader.getAttributeCount() > 0) { String key = null; String value = null; for(int i=0; i<reader.getAttributeCount(); i++) { String attrName = reader.getAttributeLocalName(i); String attrValue = reader.getAttributeValue(i); if (attrName.equals(Element.NAME.getLocalName())) { key = attrValue; } else if (attrName.equals(Element.VALUE.getLocalName())) { value = attrValue; } } if (value == null) { value = reader.getElementText(); text = true; } anObj.addProperty(key, value); } if (!text) { ignoreTillEnd(reader); } }
private static void parseProperty(XMLStreamReader reader, AdminObjectImpl anObj) throws XMLStreamException { boolean text = false; if (reader.getAttributeCount() > 0) { String key = null; String value = null; for(int i=0; i<reader.getAttributeCount(); i++) { String attrName = reader.getAttributeLocalName(i); String attrValue = reader.getAttributeValue(i); if (attrName.equals(Element.NAME.getLocalName())) { key = attrValue; } else if (attrName.equals(Element.VALUE.getLocalName())) { value = attrValue; } } if (value == null) { value = reader.getElementText(); text = true; } anObj.addProperty(key, value); } if (!text) { ignoreTillEnd(reader); } }
String connectionName = sourceProps.getProperty(Element.SOURCE_CONNECTION_JNDI_NAME_ATTR.getLocalName()); model.addSourceMapping(name, translatorName, connectionName); ignoreTillEnd(reader); break; case VALIDATION_ERROR:
String connectionName = sourceProps.getProperty(Element.SOURCE_CONNECTION_JNDI_NAME_ATTR.getLocalName()); model.addSourceMapping(name, translatorName, connectionName); ignoreTillEnd(reader); break; case VALIDATION_ERROR:
ignoreTillEnd(reader); break; case ENTRY:
ignoreTillEnd(reader); break; case ENTRY: