1 19 20 package org.netbeans.modules.xml.api.model; 21 22 import java.util.Enumeration ; 23 import org.openide.filesystems.FileObject; 24 import org.xml.sax.InputSource ; 25 26 34 public final class GrammarEnvironment { 35 36 private final FileObject fileObject; 37 private final InputSource inputSource; 38 private final Enumeration documentChildren; 39 40 47 public GrammarEnvironment(Enumeration documentChildren, InputSource inputSource, FileObject fileObject) { 48 if (inputSource == null) throw new NullPointerException (); 49 if (documentChildren == null) throw new NullPointerException (); 50 this.inputSource = inputSource; 51 this.fileObject = fileObject; 52 this.documentChildren = documentChildren; 53 } 54 55 61 public InputSource getInputSource() { 62 return inputSource; 63 } 64 65 72 public FileObject getFileObject() { 73 return fileObject; 74 } 75 76 84 public Enumeration getDocumentChildren() { 85 return documentChildren; 86 } 87 } 88 | Popular Tags |