01: /**
02: * $Id: TypeDescriptor.java,v 1.5 2003/06/03 10:49:22 sy131129 Exp $
03: * Copyright 2002-2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.providers.simplewebservice.wsdl;
14:
15: import java.util.Map;
16: import java.util.List;
17:
18: /**
19: * This interface describes a type used for defining complex types in
20: * the definition.
21: *
22: */
23: public interface TypeDescriptor {
24:
25: /**
26: * Get the name of this TypeDescriptor.
27: *
28: * @return the TypeDescriptor name.
29: */
30: public String getName();
31:
32: /**
33: * Get the specified TypeElementDescriptor.
34: *
35: * @param name the name of the desired TypeElementDescriptor.
36: *
37: * @return the corresponding TypeElementDescriptor, or null if there wasn't
38: * any matching TypeElementDescriptor.
39: */
40: public TypeElementDescriptor getTypeElementDescriptor(String name);
41:
42: /**
43: * Get all the TypeElementDescriptor defined here.
44: *
45: * @return all the TypeElementDescriptors.
46: */
47: public Map getTypeElementDescriptors();
48:
49: /**
50: * Get an ordered list of TypeElementDescriptor names.
51: *
52: * @return the list of TypeElementDescriptor names.
53: */
54: public List getOrderedTypeElementDescriptors();
55:
56: /**
57: * Get the Target Namesapce of this TypeDescriptor.
58: *
59: * @return the TypeDescriptor Target Namespace.
60: */
61: public String getSchemaTargetNamespace();
62:
63: // Added for arrays support.
64: public boolean isArrayType();
65:
66: public void setArrayType(boolean arrayType);
67:
68: public String getArrayTypeName();
69:
70: public void setArrayTypeName(String arrayTypeName);
71:
72: }
|