1 23 24 package org.enhydra.xml.xmlc.metadata; 25 26 import org.w3c.dom.Document ; 27 28 31 public class Include extends MetaDataElement { 32 35 public static final String TAG_NAME = "include"; 36 37 40 private static final String URL_ATTR = "url"; 41 42 45 public Include(Document ownerDoc) { 46 super(ownerDoc, TAG_NAME); 47 } 48 49 52 public Include(Document ownerDoc, 53 String tagName) { 54 super(ownerDoc, tagName); 55 } 56 57 60 public String getUrl() { 61 return getAttributeNull(URL_ATTR); 62 } 63 64 67 public void setUrl(String value) { 68 setRemoveAttribute(URL_ATTR, value); 69 } 70 71 74 public Include[] getIncludes() { 75 return (Include[])getChildren(Include.class); 76 } 77 78 81 public void addInclude(Include include) { 82 appendChild(include); 83 } 84 } 85 | Popular Tags |