1 package org.codehaus.xfire.wsdl; 2 3 import java.util.Set; 4 5 import javax.xml.namespace.QName; 6 7 import org.dom4j.Element; 8 9 /*** 10 * An XSD type. 11 * 12 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a> 13 */ 14 public interface SchemaType 15 { 16 /*** 17 * Whether or not this a complex type. If true then 18 * the schema for this type is written out. 19 * 20 * @return 21 */ 22 boolean isComplex(); 23 24 /*** 25 * The types that this type references. 26 * 27 * @return 28 */ 29 Set getDependencies(); 30 31 /*** 32 * Write the type schema (if complex) to the element. 33 * 34 * @param element 35 */ 36 void writeSchema( Element element ); 37 38 /*** 39 * The schema type that this SchemaType represents. 40 * 41 * @return 42 */ 43 QName getSchemaType(); 44 }