KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > wsdl > model > Part


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-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.wsdl.model;
21
22 import javax.xml.namespace.QName JavaDoc;
23 import org.netbeans.modules.xml.schema.model.GlobalElement;
24 import org.netbeans.modules.xml.schema.model.GlobalType;
25 import org.netbeans.modules.xml.xam.Nameable;
26 import org.netbeans.modules.xml.xam.dom.NamedComponentReference;
27
28 /**
29  * Represents a message part in the WSDL document
30  * @author rico
31  * @author Nam Nguyen
32  */

33 public interface Part extends Nameable<WSDLComponent>, ReferenceableWSDLComponent {
34     public static final String JavaDoc ELEMENT_PROPERTY = "element";
35     public static final String JavaDoc TYPE_PROPERTY = "type";
36
37     /**
38      * Sets the element attribute value to a GlobalReference to a schema component
39      * @param elementRef GlobalReference to a schema component
40      */

41     void setElement(NamedComponentReference<GlobalElement> elementRef);
42     
43     /**
44      * Retrieves the element attribute value. The attribute value is a GlobalReference to
45      * a schema component.
46      */

47     NamedComponentReference<GlobalElement> getElement();
48     
49     /**
50      * Sets the type attribute value to a GlobalReference to a schema component
51      * @param typeRef GlobalReference to a schema component
52      */

53     void setType(NamedComponentReference<GlobalType> typeRef);
54     
55     /**
56      * Retrieves the type attribute value. The attribute value is a GlobalReference to
57      * a schema component.
58      */

59     NamedComponentReference<GlobalType> getType();
60
61     /**
62      * Returns string value of the attribute from different namespace.
63      * If given QName has prefix, it will be ignored.
64      * @param attr non-null QName represents the attribute name.
65      * @return attribute value
66      */

67     String JavaDoc getAnyAttribute(QName JavaDoc attr);
68
69     /**
70      * Set string value of the attribute identified by given QName.
71      * This will fire property change event using attribute local name.
72      * @param attr non-null QName represents the attribute name.
73      * @param value string value for the attribute.
74      */

75     void setAnyAttribute(QName JavaDoc attr, String JavaDoc value);
76 }
77
Popular Tags