1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.util.SVGConstants; 21 import org.w3c.dom.svg.SVGAnimatedBoolean; 22 23 29 public class SVGExternalResourcesRequiredSupport implements SVGConstants { 30 31 private final static String ATTR_NAME = 32 SVG_EXTERNAL_RESOURCES_REQUIRED_ATTRIBUTE; 33 34 38 public static SVGAnimatedBoolean 39 getExternalResourcesRequired(AbstractElement elt) { 40 LiveAttributeValue lav; 41 lav = elt.getLiveAttributeValue(null, ATTR_NAME); 42 if (lav == null) { 43 lav = new SVGOMAnimatedBoolean(elt, null, ATTR_NAME, 44 elt.getAttributeNodeNS(null, 45 ATTR_NAME), 46 "false"); 47 elt.putLiveAttributeValue(null, ATTR_NAME, lav); 48 } 49 return (SVGAnimatedBoolean)lav; 50 } 51 } 52 | Popular Tags |