1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.dom.AbstractDocument; 21 import org.apache.batik.dom.util.XMLSupport; 22 23 30 public abstract class SVGDescriptiveElement extends SVGStylableElement { 31 32 35 protected SVGDescriptiveElement() { 36 } 37 38 43 protected SVGDescriptiveElement(String prefix, AbstractDocument owner) { 44 super(prefix, owner); 45 } 46 47 49 52 public String getXMLlang() { 53 return XMLSupport.getXMLLang(this); 54 } 55 56 59 public void setXMLlang(String lang) { 60 setAttributeNS(XMLSupport.XML_NAMESPACE_URI, 61 XMLSupport.XML_LANG_ATTRIBUTE, 62 lang); 63 } 64 65 68 public String getXMLspace() { 69 return XMLSupport.getXMLSpace(this); 70 } 71 72 75 public void setXMLspace(String space) { 76 setAttributeNS(XMLSupport.XML_NAMESPACE_URI, 77 XMLSupport.XML_SPACE_ATTRIBUTE, 78 space); 79 } 80 } 81 | Popular Tags |