KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wsdl > Component


1 /*
2  * Copyright 2004,2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.wsdl;
17
18 import java.util.HashMap JavaDoc;
19 import java.util.List JavaDoc;
20
21 /**
22  * @author chathura@opensource.lk
23  */

24 public interface Component {
25     /**
26      * Returns the properties that are specific to this WSDL Component.
27      *
28      * @return
29      */

30     public HashMap JavaDoc getComponentProperties();
31
32     /**
33      * Sets the properties of the Component if any.
34      *
35      * @param properties
36      */

37     public void setComponentProperties(HashMap JavaDoc properties);
38
39     /**
40      * Will set the property keyed with the relavent key
41      *
42      * @param key Key in the map
43      * @param obj Object to be put
44      */

45     public void setComponentProperty(Object JavaDoc key, Object JavaDoc obj);
46
47     /**
48      * Gets the component property
49      *
50      * @param key key for the map search.
51      * @return
52      */

53     public Object JavaDoc getComponentProperty(Object JavaDoc key);
54     
55     /**
56      * Adds the <code>ExtensibilityElement</code> to the Extensible Component.
57      * @param element
58      */

59     public void addExtensibilityElement(WSDLExtensibilityElement element);
60     
61     /**
62      * Returns the Extensibility Elements of the Extensible component;
63      * @return List of <code>Element</code>s
64      */

65     public List JavaDoc getExtensibilityElements();
66     
67     /**
68      * Returns a <code>List</code> of ExtensibleAttributes of this component.
69      * @return <code>List</code>
70      */

71     public List JavaDoc getExtensibilityAttributes() ;
72     
73     /**
74      * Adds the <code>ExtensibilityAttribute</code> as a attrebute of this
75      * Component.
76      * @param attribute <code>ExtensibilityAttribute</code>
77      */

78     public void addExtensibleAttributes(WSDLExtensibilityAttribute attribute) ;
79 }
80
Popular Tags