1 23 24 package org.enhydra.xml.xmlc.metadata; 25 26 import org.w3c.dom.Document ; 27 28 32 public class DOMEdits extends MetaDataElement { 33 36 public static final String TAG_NAME = "domEdits"; 37 38 41 public DOMEdits(Document ownerDoc) { 42 super(ownerDoc, TAG_NAME); 43 } 44 45 48 public URLMapping[] getURLMappings() { 49 return (URLMapping[])getChildren(URLMapping.class); 50 } 51 52 55 public void addURLMapping(URLMapping urlMapping) { 56 appendChild(urlMapping); 57 } 58 59 62 public URLMapping addURLMapping() { 63 URLMapping urlMapping = new URLMapping(getOwnerDocument()); 64 appendChild(urlMapping); 65 return urlMapping; 66 } 67 68 71 public void deleteURLMapping(URLMapping urlMapping) { 72 removeChild(urlMapping); 73 } 74 75 78 public URLRegExpMapping[] getURLRegExpMappings() { 79 return (URLRegExpMapping[])getChildren(URLRegExpMapping.class); 80 } 81 82 85 public void addURLRegExpMapping(URLRegExpMapping urlRegExpMapping) { 86 appendChild(urlRegExpMapping); 87 } 88 89 92 public URLRegExpMapping addURLRegExpMapping() { 93 URLRegExpMapping urlRegExpMapping 94 = new URLRegExpMapping(getOwnerDocument()); 95 appendChild(urlRegExpMapping); 96 return urlRegExpMapping; 97 } 98 99 102 public void deleteURLRegExpMapping(URLRegExpMapping urlRegExpMapping) { 103 removeChild(urlRegExpMapping); 104 } 105 106 109 public DeleteElement[] getDeleteElements() { 110 return (DeleteElement[])getChildren(DeleteElement.class); 111 } 112 113 116 public void addDeleteElement(DeleteElement deleteElement) { 117 appendChild(deleteElement); 118 } 119 120 123 public DeleteElement addDeleteElement() { 124 DeleteElement deleteElement = new DeleteElement(getOwnerDocument()); 125 appendChild(deleteElement); 126 return deleteElement; 127 } 128 129 132 public void deleteDeleteElement(DeleteElement deleteElement) { 133 removeChild(deleteElement); 134 } 135 } 136 | Popular Tags |