1 23 24 package org.enhydra.xml.xmlc.metadata; 25 26 import org.w3c.dom.Document ; 27 28 34 35 36 42 public class MetaData extends MetaDataElement { 43 46 public static final String TAG_NAME = "xmlc"; 47 48 51 public MetaData(Document ownerDoc) { 52 super(ownerDoc, TAG_NAME); 53 } 54 55 58 public Parser getParser() { 59 return (Parser)getCreateChild(Parser.class); 60 } 61 62 65 public void setParser(Parser parser) { 66 if (parser == null) { 67 deleteChild(Parser.class); 68 } else { 69 setChild(parser); 70 } 71 } 72 73 76 public DocumentClass getDocumentClass() { 77 return (DocumentClass)getCreateChild(DocumentClass.class); 78 } 79 80 83 public void setDocumentClass(DocumentClass documentClass) { 84 if (documentClass == null) { 85 deleteChild(DocumentClass.class); 86 } else { 87 setChild(documentClass); 88 } 89 } 90 91 94 public HTMLSection getHTMLSection() { 95 return (HTMLSection)getCreateChild(HTMLSection.class); 96 } 97 98 101 public void setHTMLSection(HTMLSection htmlMetaData) { 102 if (htmlMetaData == null) { 103 deleteChild(HTMLSection.class); 104 } else { 105 setChild(htmlMetaData); 106 } 107 } 108 109 112 public DOMEdits getDOMEdits() { 113 return (DOMEdits)getCreateChild(DOMEdits.class); 114 } 115 116 119 public void setDOMEdits(DOMEdits domEditsMetaData) { 120 if (domEditsMetaData == null) { 121 deleteChild(DOMEdits.class); 122 } else { 123 setChild(domEditsMetaData); 124 } 125 } 126 127 130 public JavaCompilerSection getJavaCompilerSection() { 131 return (JavaCompilerSection)getCreateChild(JavaCompilerSection.class); 132 } 133 134 137 public void setJavaCompiler(JavaCompilerSection compilerSection) { 138 if (compilerSection == null) { 139 deleteChild(JavaCompilerSection.class); 140 } else { 141 setChild(compilerSection); 142 } 143 } 144 145 148 public DocumentSection getDocumentSection() { 149 return (DocumentSection)getCreateChild(DocumentSection.class); 150 } 151 152 155 public void setDocumentSection(DocumentSection documentMetaData) { 156 if (documentMetaData == null) { 157 deleteChild(DocumentSection.class); 158 } else { 159 setChild(documentMetaData); 160 } 161 } 162 163 166 public CompileOptions getCompileOptions() { 167 return (CompileOptions)getCreateChild(CompileOptions.class); 168 } 169 170 173 public void setCompileOptions(CompileOptions compileOptions) { 174 if (compileOptions == null) { 175 deleteChild(CompileOptions.class); 176 } else { 177 setChild(compileOptions); 178 } 179 } 180 181 184 public InputDocument getInputDocument() { 185 return (InputDocument)getCreateChild(InputDocument.class); 186 } 187 188 191 public void setInputDocument(InputDocument inputDocument) { 192 if (inputDocument == null) { 193 deleteChild(InputDocument.class); 194 } else { 195 setChild(inputDocument); 196 } 197 } 198 199 203 protected void mergeElement(MetaDataElement srcElement) { 204 mergeAttributes(srcElement); 205 mergeSingletonChild(Parser.class, srcElement); 206 mergeSingletonChild(DocumentClass.class, srcElement); 207 mergeSingletonChild(HTMLSection.class, srcElement); 208 mergeSingletonChild(DOMEdits.class, srcElement); 209 mergeSingletonChild(JavaCompilerSection.class, srcElement); 210 mergeSingletonChild(DocumentSection.class, srcElement); 211 mergeSingletonChild(CompileOptions.class, srcElement); 212 mergeSingletonChild(InputDocument.class, srcElement); 213 } 214 } 215 | Popular Tags |