/** * <b>DOM</b>: Implements {@link SVGDocument#getRootElement()}. */ public SVGSVGElement getRootElement() { return (SVGSVGElement)getDocumentElement(); }
/** * <b>DOM</b>: Implements {@link SVGDocument#getRootElement()}. */ public SVGSVGElement getRootElement() { return (SVGSVGElement)getDocumentElement(); }
/** * <b>DOM</b>: Implements {@link SVGDocument#getRootElement()}. */ public SVGSVGElement getRootElement() { return (SVGSVGElement)getDocumentElement(); }
/** * <b>DOM</b>: Implements {@link SVGDocument#getTitle()}. */ public String getTitle() { StringBuffer sb = new StringBuffer(); boolean preserve = false; for (Node n = getDocumentElement().getFirstChild(); n != null; n = n.getNextSibling()) { String ns = n.getNamespaceURI(); if (ns != null && ns.equals(SVG_NAMESPACE_URI)) { if (n.getLocalName().equals(SVG_TITLE_TAG)) { preserve = ((SVGLangSpace)n).getXMLspace().equals("preserve"); for (n = n.getFirstChild(); n != null; n = n.getNextSibling()) { if (n.getNodeType() == Node.TEXT_NODE) { sb.append(n.getNodeValue()); } } break; } } } String s = sb.toString(); return (preserve) ? XMLSupport.preserveXMLSpace(s) : XMLSupport.defaultXMLSpace(s); }
/** * <b>DOM</b>: Implements {@link SVGDocument#getTitle()}. */ public String getTitle() { StringBuffer sb = new StringBuffer(); boolean preserve = false; for (Node n = getDocumentElement().getFirstChild(); n != null; n = n.getNextSibling()) { String ns = n.getNamespaceURI(); if (ns != null && ns.equals(SVG_NAMESPACE_URI)) { if (n.getLocalName().equals(SVG_TITLE_TAG)) { preserve = ((SVGLangSpace)n).getXMLspace().equals("preserve"); for (n = n.getFirstChild(); n != null; n = n.getNextSibling()) { if (n.getNodeType() == Node.TEXT_NODE) { sb.append(n.getNodeValue()); } } break; } } } String s = sb.toString(); return (preserve) ? XMLSupport.preserveXMLSpace(s) : XMLSupport.defaultXMLSpace(s); }
/** * <b>DOM</b>: Implements {@link SVGDocument#getTitle()}. */ public String getTitle() { StringBuffer sb = new StringBuffer(); boolean preserve = false; for (Node n = getDocumentElement().getFirstChild(); n != null; n = n.getNextSibling()) { String ns = n.getNamespaceURI(); if (ns != null && ns.equals(SVG_NAMESPACE_URI)) { if (n.getLocalName().equals(SVG_TITLE_TAG)) { preserve = ((SVGLangSpace)n).getXMLspace().equals("preserve"); for (n = n.getFirstChild(); n != null; n = n.getNextSibling()) { if (n.getNodeType() == Node.TEXT_NODE) { sb.append(n.getNodeValue()); } } break; } } } String s = sb.toString(); return (preserve) ? XMLSupport.preserveXMLSpace(s) : XMLSupport.defaultXMLSpace(s); }