@Override public boolean endElement(XMLElement element) { return element.equals(getXMLRootTag()); }
/** * receives notification of the end of an XML element by the Parser * * @param element the xml tag identification * @return true if this node is done processing the XML sub tree */ public boolean endElement(XMLElement element) { return element.equals(getXMLRootTag()); }
/** * receives notification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (element.equals(getXMLRootTag())) { localizedValue=value; } else super.setElementValue(element, value); }
/** * receives notification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { if (element.equals(getXMLRootTag())) { localizedValue=value; } else super.setElementValue(element, value); }
/** * SAX Parser API implementation, we don't really care for now. */ public void startElement(XMLElement element, Attributes attributes) { //DOLUtils.getDefaultLogger().finer("STARTELEMENT : " + "in " + getXMLRootTag() + " Node, startElement " + element.getQName()); if (!this.getXMLRootTag().equals(element)) return; if (attributes.getLength()>0) { for (int i=0;i<attributes.getLength();i++) { if (DOLUtils.getDefaultLogger().isLoggable(Level.FINER)) { DOLUtils.getDefaultLogger().finer("With attribute " + attributes.getQName(i)); DOLUtils.getDefaultLogger().finer("With value " + attributes.getValue(i)); } // we try the setAttributeValue first, if not processed then the setElement if (!setAttributeValue(element, new XMLElement(attributes.getQName(i)), attributes.getValue(i))) { setElementValue(new XMLElement(attributes.getQName(i)), attributes.getValue(i)); } } } }
/** * SAX Parser API implementation, we don't really care for now. */ public void startElement(XMLElement element, Attributes attributes) { //DOLUtils.getDefaultLogger().finer("STARTELEMENT : " + "in " + getXMLRootTag() + " Node, startElement " + element.getQName()); if (!this.getXMLRootTag().equals(element)) return; if (attributes.getLength()>0) { for (int i=0;i<attributes.getLength();i++) { if (DOLUtils.getDefaultLogger().isLoggable(Level.FINER)) { DOLUtils.getDefaultLogger().finer("With attribute " + attributes.getQName(i)); DOLUtils.getDefaultLogger().finer("With value " + attributes.getValue(i)); } // we try the setAttributeValue first, if not processed then the setElement if (!setAttributeValue(element, new XMLElement(attributes.getQName(i)), attributes.getValue(i))) { setElementValue(new XMLElement(attributes.getQName(i)), attributes.getValue(i)); } } } }
/** * receives notification of the end of an XML element by the Parser * * @param element the xml tag identification * @return true if this node is done processing the XML sub tree */ public boolean endElement(XMLElement element) { //DOLUtils.getDefaultLogger().finer("ENDELEMENT : " + "in " + getXMLRootTag() + " Node, endElement " + element.getQName()); boolean allDone = element.equals(getXMLRootTag()); if (allDone) { postParsing(); if (getParentNode()!=null && getDescriptor()!=null) { ((DeploymentDescriptorNode) getParentNode()).addNodeDescriptor(this); } } return allDone; }
/** * receives notification of the end of an XML element by the Parser * * @param element the xml tag identification * @return true if this node is done processing the XML sub tree */ public boolean endElement(XMLElement element) { //DOLUtils.getDefaultLogger().finer("ENDELEMENT : " + "in " + getXMLRootTag() + " Node, endElement " + element.getQName()); boolean allDone = element.equals(getXMLRootTag()); if (allDone) { postParsing(); if (getParentNode()!=null && getDescriptor()!=null) { ((DeploymentDescriptorNode) getParentNode()).addNodeDescriptor(this); } } return allDone; }