1 19 package org.netbeans.tax.spec; 20 21 import org.netbeans.tax.TreeDocument; 22 import org.netbeans.tax.TreeException; 23 import org.netbeans.tax.InvalidArgumentException; 24 25 30 public interface Document { 31 32 36 39 public static interface Constraints { 40 41 public void checkDocumentVersion (String version) throws InvalidArgumentException; 42 43 public boolean isValidDocumentVersion (String version); 44 45 46 public void checkDocumentEncoding (String encoding) throws InvalidArgumentException; 47 48 public boolean isValidDocumentEncoding (String encoding); 49 50 51 public void checkDocumentStandalone (String standalone) throws InvalidArgumentException; 52 53 public boolean isValidDocumentStandalone (String standalone); 54 55 } 57 58 62 65 public static interface Creator { 66 67 70 public TreeDocument createDocument (String version, String encoding, String standalone); 71 72 } 74 75 79 82 public static interface Writer { 83 84 public void writeDocument (TreeDocument document) throws TreeException; 85 86 } 88 89 93 96 public static interface Child { 97 98 } 100 } 101 | Popular Tags |