KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > wsdl > ui > property > model > ElementOrTypeOrMessagePartChooser


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 /**
21  * This generated bean class ElementOrTypeOrMessagePartChooser
22  * matches the schema element 'ElementOrTypeOrMessagePartChooser'.
23  * The root bean class is ElementProperties
24  *
25  * ===============================================================
26  * Shows a Tree based selector, which shows all the elements/types from Inline/Imported schemas and also the messages from all imported and existing wsdls.
27  * elementAttributeName : the attribute on which GlobalElement data type would be set.
28  * typeAttributeName : the attribute on which GlobalType data type would be set.
29  * messageAttributeName : the attribute on which Message data type would be set.
30  * partAttributeName : the attribute on which part would be set.
31  * This chooser can select between a GlobalElement or GlobalType or a wsdl Part.
32  *
33  *
34  * ===============================================================
35  * Generated on Mon Feb 05 17:54:51 PST 2007
36  * @Generated
37  */

38
39 package org.netbeans.modules.xml.wsdl.ui.property.model;
40
41 public class ElementOrTypeOrMessagePartChooser {
42     public static final String JavaDoc ELEMENTATTRIBUTENAME = "ElementAttributeName"; // NOI18N
43
public static final String JavaDoc TYPEATTRIBUTENAME = "TypeAttributeName"; // NOI18N
44
public static final String JavaDoc MESSAGEATTRIBUTENAME = "MessageAttributeName"; // NOI18N
45
public static final String JavaDoc PARTATTRIBUTENAME = "PartAttributeName"; // NOI18N
46

47     private java.lang.String JavaDoc _ElementAttributeName;
48     private java.lang.String JavaDoc _TypeAttributeName;
49     private java.lang.String JavaDoc _MessageAttributeName;
50     private java.lang.String JavaDoc _PartAttributeName;
51
52     /**
53      * Normal starting point constructor.
54      */

55     public ElementOrTypeOrMessagePartChooser() {
56     }
57
58     /**
59      * Deep copy
60      */

61     public ElementOrTypeOrMessagePartChooser(org.netbeans.modules.xml.wsdl.ui.property.model.ElementOrTypeOrMessagePartChooser source) {
62         this(source, false);
63     }
64
65     /**
66      * Deep copy
67      * @param justData just copy the XML relevant data
68      */

69     public ElementOrTypeOrMessagePartChooser(org.netbeans.modules.xml.wsdl.ui.property.model.ElementOrTypeOrMessagePartChooser source, boolean justData) {
70         _ElementAttributeName = source._ElementAttributeName;
71         _TypeAttributeName = source._TypeAttributeName;
72         _MessageAttributeName = source._MessageAttributeName;
73         _PartAttributeName = source._PartAttributeName;
74     }
75
76     // This attribute is optional
77
public void setElementAttributeName(java.lang.String JavaDoc value) {
78         _ElementAttributeName = value;
79     }
80
81     public java.lang.String JavaDoc getElementAttributeName() {
82         return _ElementAttributeName;
83     }
84
85     // This attribute is optional
86
public void setTypeAttributeName(java.lang.String JavaDoc value) {
87         _TypeAttributeName = value;
88     }
89
90     public java.lang.String JavaDoc getTypeAttributeName() {
91         return _TypeAttributeName;
92     }
93
94     // This attribute is optional
95
public void setMessageAttributeName(java.lang.String JavaDoc value) {
96         _MessageAttributeName = value;
97     }
98
99     public java.lang.String JavaDoc getMessageAttributeName() {
100         return _MessageAttributeName;
101     }
102
103     // This attribute is optional
104
public void setPartAttributeName(java.lang.String JavaDoc value) {
105         _PartAttributeName = value;
106     }
107
108     public java.lang.String JavaDoc getPartAttributeName() {
109         return _PartAttributeName;
110     }
111
112     public void writeNode(java.io.Writer JavaDoc out) throws java.io.IOException JavaDoc {
113         String JavaDoc myName;
114         myName = "ElementOrTypeOrMessagePartChooser";
115         writeNode(out, myName, ""); // NOI18N
116
}
117
118     public void writeNode(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc indent) throws java.io.IOException JavaDoc {
119         writeNode(out, nodeName, null, indent, new java.util.HashMap JavaDoc());
120     }
121
122     /**
123      * It's not recommended to call this method directly.
124      */

125     public void writeNode(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc namespace, String JavaDoc indent, java.util.Map JavaDoc namespaceMap) throws java.io.IOException JavaDoc {
126         out.write(indent);
127         out.write("<");
128         if (namespace != null) {
129             out.write((String JavaDoc)namespaceMap.get(namespace));
130             out.write(":");
131         }
132         out.write(nodeName);
133         writeNodeAttributes(out, nodeName, namespace, indent, namespaceMap);
134         writeNodeChildren(out, nodeName, namespace, indent, namespaceMap);
135         out.write("/>\n");
136     }
137
138     protected void writeNodeAttributes(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc namespace, String JavaDoc indent, java.util.Map JavaDoc namespaceMap) throws java.io.IOException JavaDoc {
139         // elementAttributeName is an attribute with namespace http://xml.netbeans.org/schema/wsdlui/property
140
if (_ElementAttributeName != null) {
141             out.write(" elementAttributeName='");
142             org.netbeans.modules.xml.wsdl.ui.property.model.ElementProperties.writeXML(out, _ElementAttributeName, true);
143             out.write("'"); // NOI18N
144
}
145         // typeAttributeName is an attribute with namespace http://xml.netbeans.org/schema/wsdlui/property
146
if (_TypeAttributeName != null) {
147             out.write(" typeAttributeName='");
148             org.netbeans.modules.xml.wsdl.ui.property.model.ElementProperties.writeXML(out, _TypeAttributeName, true);
149             out.write("'"); // NOI18N
150
}
151         // messageAttributeName is an attribute with namespace http://xml.netbeans.org/schema/wsdlui/property
152
if (_MessageAttributeName != null) {
153             out.write(" messageAttributeName='");
154             org.netbeans.modules.xml.wsdl.ui.property.model.ElementProperties.writeXML(out, _MessageAttributeName, true);
155             out.write("'"); // NOI18N
156
}
157         // partAttributeName is an attribute with namespace http://xml.netbeans.org/schema/wsdlui/property
158
if (_PartAttributeName != null) {
159             out.write(" partAttributeName='");
160             org.netbeans.modules.xml.wsdl.ui.property.model.ElementProperties.writeXML(out, _PartAttributeName, true);
161             out.write("'"); // NOI18N
162
}
163     }
164
165     protected void writeNodeChildren(java.io.Writer JavaDoc out, String JavaDoc nodeName, String JavaDoc namespace, String JavaDoc indent, java.util.Map JavaDoc namespaceMap) throws java.io.IOException JavaDoc {
166     }
167
168     public void readNode(org.w3c.dom.Node JavaDoc node) {
169         readNode(node, new java.util.HashMap JavaDoc());
170     }
171
172     public void readNode(org.w3c.dom.Node JavaDoc node, java.util.Map JavaDoc namespacePrefixes) {
173         if (node.hasAttributes()) {
174             org.w3c.dom.NamedNodeMap JavaDoc attrs = node.getAttributes();
175             org.w3c.dom.Attr JavaDoc attr;
176             java.lang.String JavaDoc attrValue;
177             boolean firstNamespaceDef = true;
178             for (int attrNum = 0; attrNum < attrs.getLength(); ++attrNum) {
179                 attr = (org.w3c.dom.Attr JavaDoc) attrs.item(attrNum);
180                 String JavaDoc attrName = attr.getName();
181                 if (attrName.startsWith("xmlns:")) {
182                     if (firstNamespaceDef) {
183                         firstNamespaceDef = false;
184                         // Dup prefix map, so as to not write over previous values, and to make it easy to clear out our entries.
185
namespacePrefixes = new java.util.HashMap JavaDoc(namespacePrefixes);
186                     }
187                     String JavaDoc attrNSPrefix = attrName.substring(6, attrName.length());
188                     namespacePrefixes.put(attrNSPrefix, attr.getValue());
189                 }
190             }
191             readNodeAttributes(node, namespacePrefixes, attrs);
192         }
193         readNodeChildren(node, namespacePrefixes);
194     }
195
196     protected void readNodeAttributes(org.w3c.dom.Node JavaDoc node, java.util.Map JavaDoc namespacePrefixes, org.w3c.dom.NamedNodeMap JavaDoc attrs) {
197         org.w3c.dom.Attr JavaDoc attr;
198         java.lang.String JavaDoc attrValue;
199         attr = (org.w3c.dom.Attr JavaDoc) attrs.getNamedItem("elementAttributeName");
200         if (attr != null) {
201             attrValue = attr.getValue();
202             _ElementAttributeName = attrValue;
203         }
204         attr = (org.w3c.dom.Attr JavaDoc) attrs.getNamedItem("typeAttributeName");
205         if (attr != null) {
206             attrValue = attr.getValue();
207             _TypeAttributeName = attrValue;
208         }
209         attr = (org.w3c.dom.Attr JavaDoc) attrs.getNamedItem("messageAttributeName");
210         if (attr != null) {
211             attrValue = attr.getValue();
212             _MessageAttributeName = attrValue;
213         }
214         attr = (org.w3c.dom.Attr JavaDoc) attrs.getNamedItem("partAttributeName");
215         if (attr != null) {
216             attrValue = attr.getValue();
217             _PartAttributeName = attrValue;
218         }
219     }
220
221     protected void readNodeChildren(org.w3c.dom.Node JavaDoc node, java.util.Map JavaDoc namespacePrefixes) {
222     }
223
224     public void changePropertyByName(String JavaDoc name, Object JavaDoc value) {
225         if (name == null) return;
226         name = name.intern();
227         if (name == "elementAttributeName")
228             setElementAttributeName((java.lang.String JavaDoc)value);
229         else if (name == "typeAttributeName")
230             setTypeAttributeName((java.lang.String JavaDoc)value);
231         else if (name == "messageAttributeName")
232             setMessageAttributeName((java.lang.String JavaDoc)value);
233         else if (name == "partAttributeName")
234             setPartAttributeName((java.lang.String JavaDoc)value);
235         else
236             throw new IllegalArgumentException JavaDoc(name+" is not a valid property name for ElementOrTypeOrMessagePartChooser");
237     }
238
239     public Object JavaDoc fetchPropertyByName(String JavaDoc name) {
240         if (name == "elementAttributeName")
241             return getElementAttributeName();
242         if (name == "typeAttributeName")
243             return getTypeAttributeName();
244         if (name == "messageAttributeName")
245             return getMessageAttributeName();
246         if (name == "partAttributeName")
247             return getPartAttributeName();
248         throw new IllegalArgumentException JavaDoc(name+" is not a valid property name for ElementOrTypeOrMessagePartChooser");
249     }
250
251     public String JavaDoc nameSelf() {
252         return "ElementOrTypeOrMessagePartChooser";
253     }
254
255     public String JavaDoc nameChild(Object JavaDoc childObj) {
256         return nameChild(childObj, false, false);
257     }
258
259     /**
260      * @param childObj The child object to search for
261      * @param returnSchemaName Whether or not the schema name should be returned or the property name
262      * @return null if not found
263      */

264     public String JavaDoc nameChild(Object JavaDoc childObj, boolean returnConstName, boolean returnSchemaName) {
265         return nameChild(childObj, returnConstName, returnSchemaName, false);
266     }
267
268     /**
269      * @param childObj The child object to search for
270      * @param returnSchemaName Whether or not the schema name should be returned or the property name
271      * @return null if not found
272      */

273     public String JavaDoc nameChild(Object JavaDoc childObj, boolean returnConstName, boolean returnSchemaName, boolean returnXPathName) {
274         if (childObj instanceof java.lang.String JavaDoc) {
275             java.lang.String JavaDoc child = (java.lang.String JavaDoc) childObj;
276             if (child == _ElementAttributeName) {
277                 if (returnConstName) {
278                     return ELEMENTATTRIBUTENAME;
279                 } else if (returnSchemaName) {
280                     return "elementAttributeName";
281                 } else if (returnXPathName) {
282                     return "@elementAttributeName";
283                 } else {
284                     return "ElementAttributeName";
285                 }
286             }
287             if (child == _TypeAttributeName) {
288                 if (returnConstName) {
289                     return TYPEATTRIBUTENAME;
290                 } else if (returnSchemaName) {
291                     return "typeAttributeName";
292                 } else if (returnXPathName) {
293                     return "@typeAttributeName";
294                 } else {
295                     return "TypeAttributeName";
296                 }
297             }
298             if (child == _MessageAttributeName) {
299                 if (returnConstName) {
300                     return MESSAGEATTRIBUTENAME;
301                 } else if (returnSchemaName) {
302                     return "messageAttributeName";
303                 } else if (returnXPathName) {
304                     return "@messageAttributeName";
305                 } else {
306                     return "MessageAttributeName";
307                 }
308             }
309             if (child == _PartAttributeName) {
310                 if (returnConstName) {
311                     return PARTATTRIBUTENAME;
312                 } else if (returnSchemaName) {
313                     return "partAttributeName";
314                 } else if (returnXPathName) {
315                     return "@partAttributeName";
316                 } else {
317                     return "PartAttributeName";
318                 }
319             }
320         }
321         return null;
322     }
323
324     /**
325      * Return an array of all of the properties that are beans and are set.
326      */

327     public java.lang.Object JavaDoc[] childBeans(boolean recursive) {
328         java.util.List JavaDoc children = new java.util.LinkedList JavaDoc();
329         childBeans(recursive, children);
330         java.lang.Object JavaDoc[] result = new java.lang.Object JavaDoc[children.size()];
331         return (java.lang.Object JavaDoc[]) children.toArray(result);
332     }
333
334     /**
335      * Put all child beans into the beans list.
336      */

337     public void childBeans(boolean recursive, java.util.List JavaDoc beans) {
338     }
339
340     public boolean equals(Object JavaDoc o) {
341         return o instanceof org.netbeans.modules.xml.wsdl.ui.property.model.ElementOrTypeOrMessagePartChooser && equals((org.netbeans.modules.xml.wsdl.ui.property.model.ElementOrTypeOrMessagePartChooser) o);
342     }
343
344     public boolean equals(org.netbeans.modules.xml.wsdl.ui.property.model.ElementOrTypeOrMessagePartChooser inst) {
345         if (inst == this) {
346             return true;
347         }
348         if (inst == null) {
349             return false;
350         }
351         if (!(_ElementAttributeName == null ? inst._ElementAttributeName == null : _ElementAttributeName.equals(inst._ElementAttributeName))) {
352             return false;
353         }
354         if (!(_TypeAttributeName == null ? inst._TypeAttributeName == null : _TypeAttributeName.equals(inst._TypeAttributeName))) {
355             return false;
356         }
357         if (!(_MessageAttributeName == null ? inst._MessageAttributeName == null : _MessageAttributeName.equals(inst._MessageAttributeName))) {
358             return false;
359         }
360         if (!(_PartAttributeName == null ? inst._PartAttributeName == null : _PartAttributeName.equals(inst._PartAttributeName))) {
361             return false;
362         }
363         return true;
364     }
365
366     public int hashCode() {
367         int result = 17;
368         result = 37*result + (_ElementAttributeName == null ? 0 : _ElementAttributeName.hashCode());
369         result = 37*result + (_TypeAttributeName == null ? 0 : _TypeAttributeName.hashCode());
370         result = 37*result + (_MessageAttributeName == null ? 0 : _MessageAttributeName.hashCode());
371         result = 37*result + (_PartAttributeName == null ? 0 : _PartAttributeName.hashCode());
372         return result;
373     }
374
375 }
376
377
378 /*
379         The following schema file has been used for generation:
380
381 <?xml version="1.0" encoding="UTF-8"?>
382
383 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
384             targetNamespace="http://xml.netbeans.org/schema/wsdlui/property"
385             xmlns:tns="http://xml.netbeans.org/schema/wsdlui/property"
386             elementFormDefault="qualified">
387     <xsd:element name="ElementProperties">
388         <xsd:annotation>
389             <xsd:documentation xml:lang="en-US">Root node for specifying customizers for a element.
390                 This needs to be on the GlobalElement which would represent the node in the WSDL tree.
391             If this is defined in local elements it is ignored.</xsd:documentation>
392         </xsd:annotation>
393         <xsd:complexType>
394             <xsd:sequence>
395                 <xsd:element ref="tns:PropertyGroup" maxOccurs="unbounded" />
396                 <xsd:element ref="tns:Property" maxOccurs="unbounded" />
397                 <xsd:element ref="tns:GroupedProperty" maxOccurs="unbounded" />
398             </xsd:sequence>
399         </xsd:complexType>
400     </xsd:element>
401     
402     <xsd:element name="PropertyGroup">
403         <xsd:annotation>
404             <xsd:documentation xml:lang="en-US">Used to create groups in the property sheet.
405                 By default, if no groups are defined all the properties will be shown
406                 in the default Property sheet called "Properties".
407                 name : defines the name of the Group.
408                 groupOrder : defines the order in which the groups will be created. The groupOrder starts with 1.
409                 isDefault : overrides the default property sheet to be this group rather than "Properties".
410                 This enables the user to put non-customized properties (which do not have a Property defined in this xml) to go into this property sheet.
411                 
412                 
413             </xsd:documentation>
414         </xsd:annotation>
415         <xsd:complexType>
416             <xsd:attribute name="name" type="xsd:string" use="required"/>
417             <xsd:attribute name="groupOrder" type="xsd:int"/>
418             <xsd:attribute name="isDefault" type="xsd:boolean" default="false"/>
419         </xsd:complexType>
420     </xsd:element>
421     <xsd:element name="Property">
422         <xsd:annotation>
423             <xsd:documentation xml:lang="en-US">Property represents each attribute that would be created for the Node in the wsdleditor tree.
424                 It defines a way to specify customizers for attributes.
425                 There are 3 types of Property customizers:
426                 SchemaCustomizer : The default Customizer is the SchemaCustomizer, which shows drop downs for enumerations and boolean attributes,
427                 and String customizer for all other types. So if there is no Property defined for a attribute, it will have
428                 SchemaCustomizer.
429                 BuiltInCustomizer : specifies a way to put already defined customizer to be shown. Examples are part chooser, message chooser etc.
430                 NewCustomizer : provides a way to create a custom customizer specific to the user requirement. When using this the developer has
431                 to implement the SPI org.netbeans.modules.xml.wsdl.ui.spi.WSDLLookupProvider, and add a implementation of
432                 org.netbeans.modules.xml.wsdl.ui.spi.NewCustomizerProvider, which will provide the custom Node.Property to be shown in the
433                 wsdl editor property sheet.
434             </xsd:documentation>
435         </xsd:annotation>
436         <xsd:complexType>
437             <xsd:choice>
438                 <xsd:element name="SchemaCustomizer"/>
439                 <xsd:element name="BuiltInCustomizer">
440                     <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
441                         <xsd:choice>
442                             <xsd:element name="DependsOnCustomizer">
443                                 <xsd:annotation>
444                                     <xsd:documentation xml:lang="en-US">Use a built-in customizer whose value(s) depend on some other attribute
445                                         of the the same element or some other source.
446                                     </xsd:documentation>
447                                 </xsd:annotation>
448                                 <xsd:complexType>
449                                     <xsd:choice>
450                                         <xsd:element name="StaticCustomizer">
451                                             <xsd:annotation>
452                                                 <xsd:documentation xml:lang="en-US">dependsOnAttributeName : the attribute on which the value(s) of the chooser would depend on.
453                                                     For example: some elements may have a attribute for message and another for part, and the PartsChooser should show parts from the message that is selected in the message attribute.
454                                                     In that the dependsOnAttributeName for PartChooser would be message.
455                                                 </xsd:documentation>
456                                             </xsd:annotation>
457                                             <xsd:complexType>
458                                                 <xsd:attribute name="dependsOnAttributeName" type="xsd:QName"/>
459                                             </xsd:complexType>
460                                         </xsd:element>
461                                         <!--No use case as of yet, xsd:element name="DynamicCustomizer">
462                                             <xsd:annotation>
463                                                 <xsd:documentation xml:lang="en-US">
464                                                     
465                                                 </xsd:documentation>
466                                             </xsd:annotation>
467                                             <xsd:complexType>
468                                                 <xsd:attribute name="dependsOnAttributeValueType" type="xsd:string"/>
469                                                 <xsd:attribute name="attributeValueProviderClass" type="xsd:string"/>
470                                             </xsd:complexType>
471                                         </xsd:element-->
472                                     </xsd:choice>
473                                     <xsd:attribute name="name" type="tns:builtInCustomizerTypes"/>
474                                 </xsd:complexType>
475                             </xsd:element>
476                             <xsd:element name="SimpleCustomizer">
477                                 <xsd:annotation>
478                                     <xsd:documentation xml:lang="en-US">
479                                         Use the builtin chooser that are available (the names are defined under builtInCustomizerTypes simple type as enumerations,
480                                         name: specifies which builtin chooser to use.
481                                     </xsd:documentation>
482                                 </xsd:annotation>
483                                 <xsd:complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
484                                     <xsd:sequence/>
485                                     <xsd:attribute name="name" type="tns:builtInCustomizerTypes"/>
486                                 </xsd:complexType>
487                             </xsd:element>
488                         </xsd:choice>
489                     </xsd:complexType>
490                 </xsd:element>
491                 <xsd:element ref="tns:NewCustomizer"/>
492             </xsd:choice>
493             <xsd:attribute name="attributeName" type="xsd:string" use="required"/>
494             <xsd:attribute name="isNameableAttribute" type="xsd:boolean" default="false"/>
495             <xsd:attribute name="decoratorAttribute" type="xsd:QName"/>
496             <xsd:attribute name="groupName" type="xsd:string"/>
497             <xsd:attribute name="propertyOrder" type="xsd:int"/>
498         </xsd:complexType>
499     </xsd:element>
500     <xsd:element name="GroupedProperty">
501         <xsd:annotation>
502             <xsd:documentation xml:lang="en-US">Some attributes in a element are mutually exclusive, so in the UI, for unambiguous usage, the user may want to add a single property chooser for 2 or more attributes, which will set the appropriate attribute depending on some criteria that the customizer may determine.
503                 groupedAttributeNames : specify all the mutually exclusive attributes. There will be a single customizer for all these attributes.
504                 groupName : specifies which PropertyGroup this belongs to.
505                 propertyOrder : specifies the order in the PropertyGroup where this property would be placed.
506                 displayName: specifies the Display name of the combined chooser.
507             </xsd:documentation>
508         </xsd:annotation>
509         <xsd:complexType>
510             <xsd:choice>
511                 <xsd:element name="BuiltInCustomizer" >
512                     <xsd:annotation>
513                         <xsd:documentation xml:lang="en-US">To use pre-built customizers.
514                         </xsd:documentation>
515                     </xsd:annotation>
516                     <xsd:complexType>
517                         <xsd:choice>
518                             <xsd:element name="ElementOrTypeChooser">
519                                 <xsd:annotation>
520                                     <xsd:documentation xml:lang="en-US">Shows a Tree based selector, which shows all the elements/types from Inline/Imported schemas.
521                                         elementAttributeName : the attribute on which GlobalElement data type would be set.
522                                         typeAttributeName : the attribute on which GlobalType data type would be set.
523                                     </xsd:documentation>
524                                 </xsd:annotation>
525                                 <xsd:complexType>
526                                     <xsd:attribute name="elementAttributeName" type="xsd:NCName"/>
527                                     <xsd:attribute name="typeAttributeName" type="xsd:NCName"/>
528                                 </xsd:complexType>
529                             </xsd:element>
530                             <xsd:element name="ElementOrTypeOrMessagePartChooser">
531                                 <xsd:annotation>
532                                     <xsd:documentation xml:lang="en-US">Shows a Tree based selector, which shows all the elements/types from Inline/Imported schemas and also the messages from all imported and existing wsdls.
533                                         elementAttributeName : the attribute on which GlobalElement data type would be set.
534                                         typeAttributeName : the attribute on which GlobalType data type would be set.
535                                         messageAttributeName : the attribute on which Message data type would be set.
536                                         partAttributeName : the attribute on which part would be set.
537                                         This chooser can select between a GlobalElement or GlobalType or a wsdl Part.
538                                         
539                                     </xsd:documentation>
540                                 </xsd:annotation>
541                                 <xsd:complexType>
542                                     <xsd:attribute name="elementAttributeName" type="xsd:NCName"/>
543                                     <xsd:attribute name="typeAttributeName" type="xsd:NCName"/>
544                                     <xsd:attribute name="messageAttributeName" type="xsd:NCName"/>
545                                     <xsd:attribute name="partAttributeName" type="xsd:NCName"/>
546                                 </xsd:complexType>
547                             </xsd:element>
548                         </xsd:choice>
549                     </xsd:complexType>
550                 </xsd:element>
551                 <xsd:element ref="tns:NewCustomizer"/>
552             </xsd:choice>
553             <xsd:attribute name="groupedAttributeNames" type="tns:attributeList" use="required"/>
554             <xsd:attribute name="groupName" type="xsd:string"/>
555             <xsd:attribute name="propertyOrder" type="xsd:int"/>
556             <xsd:attribute name="displayName" type="xsd:NCName" use="required"/>
557         </xsd:complexType>
558     </xsd:element>
559     
560     
561     <xsd:element name="NewCustomizer">
562         <xsd:annotation>
563             <xsd:documentation xml:lang="en-US">Provides a way for developer to provide a custom property customizer for the attribute, if the builtin chooser dont satisfy their requirements.
564 When using this the developer has to implement the SPI org.netbeans.modules.xml.wsdl.ui.spi.WSDLLookupProvider, and add a implementation of org.netbeans.modules.xml.wsdl.ui.spi.NewCustomizerProvider, which will provide the custom Node.Property to be shown in the wsdl editor property sheet.
565             </xsd:documentation>
566         </xsd:annotation>
567     </xsd:element>
568     
569     
570     <xsd:simpleType name="builtInCustomizerTypes">
571         <xsd:restriction base="xsd:string">
572             <xsd:enumeration value="MessageChooser">
573                 <xsd:annotation>
574                     <xsd:documentation xml:lang="en-US">Shows a drop down of all messages in the current WSDL document and also ones in imported WSDL documents.</xsd:documentation>
575                 </xsd:annotation>
576             </xsd:enumeration>
577             <xsd:enumeration value="PartChooser">
578                 <xsd:annotation>
579                     <xsd:documentation xml:lang="en-US">Show a drop down of all parts for a message. By default, the chooser assumes that it is in the binding section under input/output/fault, and shows all the parts for the message selected in the input/output/fault.
580     If not, then the dependsOnCustomizer needs to be used to specify the attribute which represents the message, whose parts will be shown</xsd:documentation>
581                 </xsd:annotation>
582             </xsd:enumeration>
583             <xsd:enumeration value="PortTypeChooser">
584                 <xsd:annotation>
585                     <xsd:documentation xml:lang="en-US">Show a drop down of all port types in the WSDL Document/Imported WSDL Documents.</xsd:documentation>
586                 </xsd:annotation>
587             </xsd:enumeration>
588             <xsd:enumeration value="PartsChooser">
589                 <xsd:annotation>
590                     <xsd:documentation xml:lang="en-US">Show a dialog of all parts for a message, from which multiple parts can be selected. By default, the chooser assumes that it is in the binding section under input/output/fault, and shows all the parts for the message selected in the input/output/fault.
591     If not, then the dependsOnCustomizer needs to be used to specify the attribute which represents the message, whose parts will be shown</xsd:documentation>
592                 </xsd:annotation>
593             </xsd:enumeration>
594         </xsd:restriction>
595     </xsd:simpleType>
596     
597     <xsd:simpleType name="attributeList">
598         <xsd:list itemType="xsd:string"/>
599     </xsd:simpleType>
600     
601 </xsd:schema>
602
603 */

604
Popular Tags