001: /**
002: * $Id: DefinitionDescriptor.java,v 1.5 2003/06/03 10:49:22 sy131129 Exp $
003: * Copyright 2002-2003 Sun Microsystems, Inc. All
004: * rights reserved. Use of this product is subject
005: * to license terms. Federal Acquisitions:
006: * Commercial Software -- Government Users
007: * Subject to Standard License Terms and
008: * Conditions.
009: *
010: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
011: * are trademarks or registered trademarks of Sun Microsystems,
012: * Inc. in the United States and other countries.
013: */package com.sun.portal.providers.simplewebservice.wsdl;
014:
015: import java.util.List;
016: import java.util.Map;
017:
018: /**
019: * The DefinitonDescriptor represents a WSDL definition.
020: *
021: */
022: public interface DefinitionDescriptor {
023:
024: /**
025: * Get the name of this definition.
026: *
027: * @return the definition name
028: */
029: public String getName();
030:
031: /**
032: * Get the target namespace in which the WSDL elements
033: * are defined.
034: *
035: * @return the target namespace.
036: */
037: public String getTargetNamespace();
038:
039: /**
040: * Get the namespace URI associated with this prefix. Or null if
041: * there is no namespace URI associated with this prefix.
042: *
043: * @param prefix the prefix for which to fetch the namespace URI for.
044: *
045: * @return the target namespace.
046: */
047: public String getNamespace(String prefix);
048:
049: /**
050: * Get a prefix associated with this namespace URI. Or null if
051: * there are no prefixes associated with this namespace URI.
052: *
053: * @param namespaceURI the namespace URI for which to fetch the prefix for.
054: *
055: * @return the target prefix.
056: */
057: public String getPrefix(String namespaceURI);
058:
059: /**
060: * Get all namespace associations in this definition. The keys are
061: * the prefixes, and the namespace URIs are the values.
062: *
063: * @return all the Namespaces
064: */
065: public Map getNamespaces();
066:
067: /**
068: * Get the specified TypeDescriptor.
069: *
070: * @param name the name of the desired TypeDescriptor.
071: *
072: * @return the corresponding TypeDescriptor, or null if there wasn't
073: * any matching TypeDescriptor.
074: */
075: public TypeDescriptor getTypeDescriptor(String name);
076:
077: /**
078: * Get all the TypeDescriptors defined here.
079: *
080: * @return all the TypeDescriptors.
081: */
082: public Map getTypeDescriptors();
083:
084: /**
085: * Get the specified MessageDescriptor.
086: *
087: * @param name the name of the desired MessageDescriptor.
088: *
089: * @return the corresponding MessageDescriptor, or null if there wasn't
090: * any matching MessageDescriptor.
091: */
092: public MessageDescriptor getMessageDescriptor(String name);
093:
094: /**
095: * Get all the MessageDescriptors defined here.
096: *
097: * @return all the MessageDescriptors.
098: */
099: public Map getMessageDescriptors();
100:
101: /**
102: * Get the specified PortTypeDescriptor.
103: *
104: * @param name the name of the desired PortTypeDescriptor.
105: *
106: * @return the corresponding PortTypeDescriptor, or null if there wasn't
107: * any matching PortTypeDescriptor
108: */
109: public PortTypeDescriptor getPortTypeDescriptor(String name);
110:
111: /**
112: * Get all the PortTypeDescriptors defined here.
113: *
114: * @return all the PortTypeDescriptors.
115: */
116: public Map getPortTypeDescriptors();
117:
118: /**
119: * Get the specified BindingDescriptor.
120: *
121: * @param name the name of the desired BindingDescriptor.
122: *
123: * @return the corresponding BindingDescriptor, or null if there wasn't
124: * any matching BindingDescriptor.
125: */
126: public BindingDescriptor getBindingDescriptor(String name);
127:
128: /**
129: * Get all the BindingDescriptor defined here.
130: *
131: * @return all the BindingDesciptors.
132: */
133: public Map getBindingDescriptors();
134:
135: /**
136: * Get the specified ServiceDescriptor.
137: *
138: * @param name the name of the desired ServiceDescriptor.
139: *
140: * @return the corresponding ServiceDescriptor, or null if there wasn't
141: * any matching ServiceDescriptor.
142: */
143: public ServiceDescriptor getServiceDescriptor(String name);
144:
145: /**
146: * Get all the ServiceDescriptor defined here.
147: *
148: * @return all the ServiceDescriptors.
149: */
150: public Map getServiceDescriptors();
151: }
|