1 19 20 package org.netbeans.modules.schema2beansdev; 21 22 import java.util.*; 23 import java.io.*; 24 25 import org.netbeans.modules.schema2beans.*; 26 27 30 public interface DocDefHandler { 31 37 public void startDocument(String root); 38 public void endDocument(); 39 40 48 public void startElement(String uniqueName, 49 String typeName, int type); 50 public void endElement(); 51 52 56 public boolean doesElementExist(String typeName); 57 58 66 public void startGroupElements(); 67 public void endGroupElements(int instance); 68 69 72 public void character(char c); 73 74 85 public void element(String uniqueName, String typeName, 86 String attrName, String attrNamespace, 87 int instance, boolean externalType, String defaultValue); 88 public void element(String uniqueName, String name, int instance); 89 90 public void setUnion(String uniqueName, String typeName, boolean value) throws Schema2BeansException; 91 92 public void addExtraDataNode(String uniqueName, String typeName, Object data) throws Schema2BeansException; 93 public void addExtraDataCurLink(Object data); 94 public void setExtension(String uniqueName, String typeName, String extendsName) throws Schema2BeansException; 95 96 public void nillable(boolean value); 97 98 103 public void javaType(String uniqueName, String name, String javaType); 104 105 public void setAbstract(String uniqueName, String name, boolean value); 106 109 public void setDefaultNamespace(String ns); 110 111 114 public void setExtendedProperty(String uniqueName, String typeName, String propertyName, 115 Object value) throws Schema2BeansException; 116 117 120 public void setPrefixGuesser(PrefixGuesser guesser); 121 } 122 | Popular Tags |