1 19 package org.netbeans.tax.spec; 20 21 import org.netbeans.tax.TreeEntityDecl; 22 import org.netbeans.tax.TreeException; 23 import org.netbeans.tax.InvalidArgumentException; 24 25 30 public interface EntityDecl { 31 32 36 39 public static interface Constraints { 40 41 public void checkEntityDeclName (String name) throws InvalidArgumentException; 42 43 public boolean isValidEntityDeclName (String name); 44 45 46 public void checkEntityDeclInternalText (String internalText) throws InvalidArgumentException; 47 48 public boolean isValidEntityDeclInternalText (String internalText); 49 50 51 public void checkEntityDeclPublicId (String publicId) throws InvalidArgumentException; 52 53 public boolean isValidEntityDeclPublicId (String publicId); 54 55 56 public void checkEntityDeclSystemId (String systemId) throws InvalidArgumentException; 57 58 public boolean isValidEntityDeclSystemId (String systemId); 59 60 61 public void checkEntityDeclNotationName (String notationName) throws InvalidArgumentException; 62 63 public boolean isValidEntityDeclNotationName (String notationName); 64 65 } 67 68 72 75 public static interface Creator { 76 77 80 public TreeEntityDecl createEntityDecl (String name, String internalText); 81 82 85 public TreeEntityDecl createEntityDecl (boolean parameter, String name, String internalText); 86 87 90 public TreeEntityDecl createEntityDecl (String name, String publicId, String systemId); 91 92 95 public TreeEntityDecl createEntityDecl (boolean parameter, String name, String publicId, String systemId); 96 97 100 public TreeEntityDecl createEntityDecl (String name, String publicId, String systemId, String notationName); 101 102 } 104 105 109 112 public static interface Writer { 113 114 public void writeEntityDecl (TreeEntityDecl entityDecl) throws TreeException; 115 116 } 118 } 119 | Popular Tags |