1 19 package org.netbeans.tax.spec; 20 21 import org.netbeans.tax.TreeAttlistDecl; 22 import org.netbeans.tax.TreeException; 23 import org.netbeans.tax.InvalidArgumentException; 24 25 30 public interface AttlistDecl { 31 32 36 39 public static interface Constraints { 40 41 public void checkAttlistDeclElementName (String elementName) throws InvalidArgumentException; 42 43 public boolean isValidAttlistDeclElementName (String elementName); 44 45 46 public void checkAttlistDeclAttributeName (String attributeName) throws InvalidArgumentException; 47 48 public boolean isValidAttlistDeclAttributeName (String attributeName); 49 50 51 public void checkAttlistDeclAttributeType (short type) throws InvalidArgumentException; 52 53 public boolean isValidAttlistDeclAttributeType (short type); 54 55 56 public void checkAttlistDeclAttributeEnumeratedType (String [] enumeratedType) throws InvalidArgumentException; 57 58 public boolean isValidAttlistDeclAttributeEnumeratedType (String [] enumeratedType); 59 60 61 public void checkAttlistDeclAttributeDefaultType (short defaultType) throws InvalidArgumentException; 62 63 public boolean isValidAttlistDeclAttributeDefaultType (short defaultType); 64 65 66 public void checkAttlistDeclAttributeDefaultValue (String defaultValue) throws InvalidArgumentException; 67 68 public boolean isValidAttlistDeclAttributeDefaultValue (String defaultValue); 69 70 } 72 73 77 80 public static interface Creator { 81 82 85 public TreeAttlistDecl createAttlistDecl (String elementName); 86 87 } 89 90 94 97 public static interface Writer { 98 99 public void writeAttlistDecl (TreeAttlistDecl attlistDecl) throws TreeException; 100 101 } 103 } 104 | Popular Tags |