Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 118087 | Differences between
and this patch

Collapse All | Expand All

(-)META-INF/MANIFEST.MF (-2 / +20 lines)
Lines 6-17 Link Here
6
Bundle-Activator: org.eclipse.wst.ws.internal.plugin.WSPlugin
6
Bundle-Activator: org.eclipse.wst.ws.internal.plugin.WSPlugin
7
Bundle-Vendor: %PLUGIN_PROVIDER
7
Bundle-Vendor: %PLUGIN_PROVIDER
8
Bundle-Localization: plugin
8
Bundle-Localization: plugin
9
Export-Package: org.eclipse.wst.ws.internal.common,
9
Export-Package: org.eclipse.wst.ws.internal,
10
 org.eclipse.wst.ws.internal.common,
11
 org.eclipse.wst.ws.internal.data,
10
 org.eclipse.wst.ws.internal.datamodel,
12
 org.eclipse.wst.ws.internal.datamodel,
13
 org.eclipse.wst.ws.internal.ext,
11
 org.eclipse.wst.ws.internal.extensions,
14
 org.eclipse.wst.ws.internal.extensions,
15
 org.eclipse.wst.ws.internal.model.v10.registry,
16
 org.eclipse.wst.ws.internal.model.v10.registry.impl,
17
 org.eclipse.wst.ws.internal.model.v10.registry.util,
18
 org.eclipse.wst.ws.internal.model.v10.rtindex,
19
 org.eclipse.wst.ws.internal.model.v10.rtindex.impl,
20
 org.eclipse.wst.ws.internal.model.v10.rtindex.util,
21
 org.eclipse.wst.ws.internal.model.v10.taxonomy,
22
 org.eclipse.wst.ws.internal.model.v10.taxonomy.impl,
23
 org.eclipse.wst.ws.internal.model.v10.taxonomy.util,
24
 org.eclipse.wst.ws.internal.model.v10.uddiregistry,
25
 org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl,
26
 org.eclipse.wst.ws.internal.model.v10.uddiregistry.util,
12
 org.eclipse.wst.ws.internal.monitor,
27
 org.eclipse.wst.ws.internal.monitor,
13
 org.eclipse.wst.ws.internal.plugin,
28
 org.eclipse.wst.ws.internal.plugin,
14
 org.eclipse.wst.ws.internal.preferences,
29
 org.eclipse.wst.ws.internal.preferences,
30
 org.eclipse.wst.ws.internal.registry,
15
 org.eclipse.wst.ws.internal.wsfinder,
31
 org.eclipse.wst.ws.internal.wsfinder,
16
 org.eclipse.wst.ws.internal.wsil,
32
 org.eclipse.wst.ws.internal.wsil,
17
 org.eclipse.wst.ws.internal.wsrt
33
 org.eclipse.wst.ws.internal.wsrt
Lines 27-31 Link Here
27
 org.eclipse.wst.command.env,
43
 org.eclipse.wst.command.env,
28
 org.eclipse.wst.common.frameworks,
44
 org.eclipse.wst.common.frameworks,
29
 org.eclipse.core.commands,
45
 org.eclipse.core.commands,
30
 org.eclipse.wst.common.environment
46
 org.eclipse.wst.common.environment,
47
 org.eclipse.emf.ecore,
48
 org.eclipse.emf.ecore.xmi
31
Eclipse-AutoStart: true
49
Eclipse-AutoStart: true
(-)src/org/eclipse/wst/ws/internal/plugin/WSPlugin.java (-1 / +1 lines)
Lines 38-44 Link Here
38
	private PersistentWSDLValidationContext wsdlValidationContext_;
38
	private PersistentWSDLValidationContext wsdlValidationContext_;
39
	private PersistentWaitForWSDLValidationContext waitForWsdlValidationContext_;
39
	private PersistentWaitForWSDLValidationContext waitForWsdlValidationContext_;
40
40
41
	public static final String ID = "org.eclipse.wst.ws.ui";
41
	public static final String ID = "org.eclipse.wst.ws";
42
	
42
	
43
	/**
43
	/**
44
	 * The constructor.
44
	 * The constructor.
(-)model/Index.xsd (+52 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsd:schema
3
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
xmlns:rti="http://eclipse.org/wst/ws/internal/model/v10/rtindex"
5
xmlns:reg="http://eclipse.org/wst/ws/internal/model/v10/registry"
6
xmlns:tax="http://eclipse.org/wst/ws/internal/model/v10/taxonomy"
7
targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/rtindex">
8
9
	<xsd:import
10
	namespace="http://www.w3.org/XML/1998/namespace"
11
	schemaLocation="http://www.w3.org/2001/xml.xsd"/>
12
13
	<xsd:import
14
	namespace="http://eclipse.org/wst/ws/internal/model/v10/registry"
15
	schemaLocation="./Registry.xsd"/>
16
17
	<xsd:import
18
	namespace="http://eclipse.org/wst/ws/internal/model/v10/taxonomy"
19
	schemaLocation="./Taxonomy.xsd"/>
20
21
	<xsd:element name="index" type="rti:Index"/>
22
	
23
	<xsd:complexType name="Index">
24
		<xsd:sequence>
25
			<xsd:element name="name" type="rti:Name" minOccurs="1" maxOccurs="unbounded"/>
26
			<xsd:element name="description" type="rti:Description" minOccurs="1" maxOccurs="unbounded"/>
27
			<xsd:element ref="reg:registry" minOccurs="0" maxOccurs="unbounded"/>
28
			<xsd:element ref="tax:taxonomy" minOccurs="0" maxOccurs="unbounded"/>
29
		</xsd:sequence>
30
	</xsd:complexType>
31
32
	<xsd:element name="name" type="rti:Name"/>
33
34
	<xsd:complexType name="Name">
35
		<xsd:simpleContent>
36
			<xsd:extension base="xsd:string">
37
				<xsd:attribute ref="xml:lang" use="optional"/>
38
			</xsd:extension>
39
		</xsd:simpleContent>
40
	</xsd:complexType>
41
42
	<xsd:element name="description" type="rti:Description"/>
43
44
	<xsd:complexType name="Description">
45
		<xsd:simpleContent>
46
			<xsd:extension base="xsd:string">
47
				<xsd:attribute ref="xml:lang" use="optional"/>
48
			</xsd:extension>
49
		</xsd:simpleContent>
50
	</xsd:complexType>
51
52
</xsd:schema>
(-)model/Registry.xsd (+43 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsd:schema
3
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
xmlns:reg="http://eclipse.org/wst/ws/internal/model/v10/registry"
5
targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/registry">
6
7
	<xsd:import
8
	namespace="http://www.w3.org/XML/1998/namespace"
9
	schemaLocation="http://www.w3.org/2001/xml.xsd"/>
10
11
	<xsd:element name="registry" type="reg:Registry"/>
12
	
13
	<xsd:complexType name="Registry">
14
		<xsd:sequence>
15
			<xsd:element name="name" type="reg:Name" minOccurs="1" maxOccurs="unbounded"/>
16
			<xsd:element name="description" type="reg:Description" minOccurs="1" maxOccurs="unbounded"/>
17
		</xsd:sequence>
18
		<xsd:attribute name="id" type="xsd:anyURI" use="required"/>
19
		<xsd:attribute name="ref" type="xsd:anyURI" use="optional"/>
20
		<xsd:attribute name="location" type="xsd:anyURI" use="optional"/>
21
	</xsd:complexType>
22
23
	<xsd:element name="name" type="reg:Name"/>
24
25
	<xsd:complexType name="Name">
26
		<xsd:simpleContent>
27
			<xsd:extension base="xsd:string">
28
				<xsd:attribute ref="xml:lang" use="optional"/>
29
			</xsd:extension>
30
		</xsd:simpleContent>
31
	</xsd:complexType>
32
33
	<xsd:element name="description" type="reg:Description"/>
34
35
	<xsd:complexType name="Description">
36
		<xsd:simpleContent>
37
			<xsd:extension base="xsd:string">
38
				<xsd:attribute ref="xml:lang" use="optional"/>
39
			</xsd:extension>
40
		</xsd:simpleContent>
41
	</xsd:complexType>
42
43
</xsd:schema>
(-)model/Taxonomy.xsd (+45 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsd:schema
3
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
xmlns:tax="http://eclipse.org/wst/ws/internal/model/v10/taxonomy"
5
targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/taxonomy">
6
7
	<xsd:import
8
	namespace="http://www.w3.org/XML/1998/namespace"
9
	schemaLocation="http://www.w3.org/2001/xml.xsd"/>
10
11
	<xsd:element name="taxonomy" type="tax:Taxonomy"/>
12
13
	<xsd:complexType name="Taxonomy">
14
		<xsd:sequence>
15
			<xsd:element name="nlname" type="tax:Name" minOccurs="0" maxOccurs="unbounded"/>
16
			<xsd:element name="category" type="tax:Category" minOccurs="0" maxOccurs="unbounded"/>
17
		</xsd:sequence>
18
		<xsd:attribute name="id" type="xsd:anyURI" use="required"/>
19
		<xsd:attribute name="ref" type="xsd:anyURI" use="optional"/>
20
		<xsd:attribute name="location" type="xsd:anyURI" use="optional"/>
21
		<xsd:attribute name="name" type="xsd:string" use="optional"/>
22
	</xsd:complexType>
23
24
	<xsd:element name="category" type="tax:Category"/>
25
26
	<xsd:complexType name="Category">
27
		<xsd:sequence>
28
			<xsd:element name="nlname" type="tax:Name" minOccurs="0" maxOccurs="unbounded"/>
29
			<xsd:element name="category" type="tax:Category" minOccurs="0" maxOccurs="unbounded"/>
30
		</xsd:sequence>
31
		<xsd:attribute name="name" type="xsd:string"/>
32
		<xsd:attribute name="code" type="xsd:string"/>
33
	</xsd:complexType>
34
35
	<xsd:element name="name" type="tax:Name"/>
36
37
	<xsd:complexType name="Name">
38
		<xsd:simpleContent>
39
			<xsd:extension base="xsd:string">
40
				<xsd:attribute ref="xml:lang" use="optional"/>
41
			</xsd:extension>
42
		</xsd:simpleContent>
43
	</xsd:complexType>
44
45
</xsd:schema>
(-)model/UDDIRegistry.xsd (+48 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsd:schema
3
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
xmlns:urg="http://eclipse.org/wst/ws/internal/model/v10/uddiregistry"
5
xmlns:reg="http://eclipse.org/wst/ws/internal/model/v10/registry"
6
xmlns:tax="http://eclipse.org/wst/ws/internal/model/v10/taxonomy"
7
targetNamespace="http://eclipse.org/wst/ws/internal/model/v10/uddiregistry">
8
9
	<xsd:import
10
	namespace="http://www.w3.org/XML/1998/namespace"
11
	schemaLocation="http://www.w3.org/2001/xml.xsd"/>
12
	
13
	<xsd:import
14
	namespace="http://eclipse.org/wst/ws/internal/model/v10/registry"
15
	schemaLocation="./Registry.xsd"/>
16
17
	<xsd:import
18
	namespace="http://eclipse.org/wst/ws/internal/model/v10/taxonomy"
19
	schemaLocation="./Taxonomy.xsd"/>
20
21
	<xsd:element name="uddiRegistry" type="urg:UDDIRegistry"/>
22
	
23
	<xsd:complexType name="UDDIRegistry">
24
		<xsd:complexContent>
25
			<xsd:extension base="reg:Registry">
26
				<xsd:sequence>
27
					<xsd:element name="version" type="xsd:string" minOccurs="1"/>
28
					<xsd:element name="discoveryURL" type="xsd:anyURI" minOccurs="0"/>
29
					<xsd:element name="publicationURL" type="xsd:anyURI" minOccurs="0"/>
30
					<xsd:element name="securedDiscoveryURL" type="xsd:anyURI" minOccurs="0"/>
31
					<xsd:element name="securedPublicationURL" type="xsd:anyURI" minOccurs="0"/>
32
					<xsd:element name="defaultLogin" type="xsd:string" minOccurs="0"/>
33
					<xsd:element name="defaultPassword" type="xsd:string" minOccurs="0"/>
34
					<xsd:element name="taxonomies" type="urg:Taxonomies" minOccurs="0"/>
35
				</xsd:sequence>
36
			</xsd:extension>
37
		</xsd:complexContent>
38
	</xsd:complexType>
39
	
40
	<xsd:element name="taxonomies" type="urg:Taxonomies"/>
41
	
42
	<xsd:complexType name="Taxonomies">
43
		<xsd:sequence>
44
			<xsd:element ref="tax:taxonomy" minOccurs="0" maxOccurs="unbounded"/>
45
		</xsd:sequence>
46
	</xsd:complexType>
47
48
</xsd:schema>
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/Description.java (+81 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry;
8
9
import org.eclipse.emf.ecore.EObject;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * A representation of the model object '<em><b>Description</b></em>'.
14
 * <!-- end-user-doc -->
15
 *
16
 * <p>
17
 * The following features are supported:
18
 * <ul>
19
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue <em>Value</em>}</li>
20
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang <em>Lang</em>}</li>
21
 * </ul>
22
 * </p>
23
 *
24
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDescription()
25
 * @model 
26
 * @generated
27
 */
28
public interface Description extends EObject {
29
	/**
30
	 * Returns the value of the '<em><b>Value</b></em>' attribute.
31
	 * <!-- begin-user-doc -->
32
	 * <p>
33
	 * If the meaning of the '<em>Value</em>' attribute isn't clear,
34
	 * there really should be more of a description here...
35
	 * </p>
36
	 * <!-- end-user-doc -->
37
	 * @return the value of the '<em>Value</em>' attribute.
38
	 * @see #setValue(String)
39
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDescription_Value()
40
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
41
	 * @generated
42
	 */
43
	String getValue();
44
45
	/**
46
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @param value the new value of the '<em>Value</em>' attribute.
50
	 * @see #getValue()
51
	 * @generated
52
	 */
53
	void setValue(String value);
54
55
	/**
56
	 * Returns the value of the '<em><b>Lang</b></em>' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>Lang</em>' attribute isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>Lang</em>' attribute.
64
	 * @see #setLang(String)
65
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDescription_Lang()
66
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language"
67
	 * @generated
68
	 */
69
	String getLang();
70
71
	/**
72
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang <em>Lang</em>}' attribute.
73
	 * <!-- begin-user-doc -->
74
	 * <!-- end-user-doc -->
75
	 * @param value the new value of the '<em>Lang</em>' attribute.
76
	 * @see #getLang()
77
	 * @generated
78
	 */
79
	void setLang(String value);
80
81
} // Description
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/DocumentRoot.java (+165 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry;
8
9
import org.eclipse.emf.common.util.EMap;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
import org.eclipse.emf.ecore.util.FeatureMap;
14
15
/**
16
 * <!-- begin-user-doc -->
17
 * A representation of the model object '<em><b>Document Root</b></em>'.
18
 * <!-- end-user-doc -->
19
 *
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getMixed <em>Mixed</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
25
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
26
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription <em>Description</em>}</li>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName <em>Name</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry <em>Registry</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot()
33
 * @model 
34
 * @generated
35
 */
36
public interface DocumentRoot extends EObject {
37
	/**
38
	 * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
39
	 * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
40
	 * <!-- begin-user-doc -->
41
	 * <p>
42
	 * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
43
	 * there really should be more of a description here...
44
	 * </p>
45
	 * <!-- end-user-doc -->
46
	 * @return the value of the '<em>Mixed</em>' attribute list.
47
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Mixed()
48
	 * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
49
	 * @generated
50
	 */
51
	FeatureMap getMixed();
52
53
	/**
54
	 * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
55
	 * The key is of type {@link java.lang.String},
56
	 * and the value is of type {@link java.lang.String},
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>XMLNS Prefix Map</em>' map.
64
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_XMLNSPrefixMap()
65
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
66
	 * @generated
67
	 */
68
	EMap getXMLNSPrefixMap();
69
70
	/**
71
	 * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
72
	 * The key is of type {@link java.lang.String},
73
	 * and the value is of type {@link java.lang.String},
74
	 * <!-- begin-user-doc -->
75
	 * <p>
76
	 * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
77
	 * there really should be more of a description here...
78
	 * </p>
79
	 * <!-- end-user-doc -->
80
	 * @return the value of the '<em>XSI Schema Location</em>' map.
81
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_XSISchemaLocation()
82
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
83
	 * @generated
84
	 */
85
	EMap getXSISchemaLocation();
86
87
	/**
88
	 * Returns the value of the '<em><b>Description</b></em>' containment reference.
89
	 * <!-- begin-user-doc -->
90
	 * <p>
91
	 * If the meaning of the '<em>Description</em>' containment reference isn't clear,
92
	 * there really should be more of a description here...
93
	 * </p>
94
	 * <!-- end-user-doc -->
95
	 * @return the value of the '<em>Description</em>' containment reference.
96
	 * @see #setDescription(Description)
97
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Description()
98
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
99
	 * @generated
100
	 */
101
	Description getDescription();
102
103
	/**
104
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription <em>Description</em>}' containment reference.
105
	 * <!-- begin-user-doc -->
106
	 * <!-- end-user-doc -->
107
	 * @param value the new value of the '<em>Description</em>' containment reference.
108
	 * @see #getDescription()
109
	 * @generated
110
	 */
111
	void setDescription(Description value);
112
113
	/**
114
	 * Returns the value of the '<em><b>Name</b></em>' containment reference.
115
	 * <!-- begin-user-doc -->
116
	 * <p>
117
	 * If the meaning of the '<em>Name</em>' containment reference isn't clear,
118
	 * there really should be more of a description here...
119
	 * </p>
120
	 * <!-- end-user-doc -->
121
	 * @return the value of the '<em>Name</em>' containment reference.
122
	 * @see #setName(Name)
123
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Name()
124
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
125
	 * @generated
126
	 */
127
	Name getName();
128
129
	/**
130
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName <em>Name</em>}' containment reference.
131
	 * <!-- begin-user-doc -->
132
	 * <!-- end-user-doc -->
133
	 * @param value the new value of the '<em>Name</em>' containment reference.
134
	 * @see #getName()
135
	 * @generated
136
	 */
137
	void setName(Name value);
138
139
	/**
140
	 * Returns the value of the '<em><b>Registry</b></em>' containment reference.
141
	 * <!-- begin-user-doc -->
142
	 * <p>
143
	 * If the meaning of the '<em>Registry</em>' containment reference isn't clear,
144
	 * there really should be more of a description here...
145
	 * </p>
146
	 * <!-- end-user-doc -->
147
	 * @return the value of the '<em>Registry</em>' containment reference.
148
	 * @see #setRegistry(Registry)
149
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getDocumentRoot_Registry()
150
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
151
	 * @generated
152
	 */
153
	Registry getRegistry();
154
155
	/**
156
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry <em>Registry</em>}' containment reference.
157
	 * <!-- begin-user-doc -->
158
	 * <!-- end-user-doc -->
159
	 * @param value the new value of the '<em>Registry</em>' containment reference.
160
	 * @see #getRegistry()
161
	 * @generated
162
	 */
163
	void setRegistry(Registry value);
164
165
} // DocumentRoot
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/Name.java (+81 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry;
8
9
import org.eclipse.emf.ecore.EObject;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * A representation of the model object '<em><b>Name</b></em>'.
14
 * <!-- end-user-doc -->
15
 *
16
 * <p>
17
 * The following features are supported:
18
 * <ul>
19
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue <em>Value</em>}</li>
20
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang <em>Lang</em>}</li>
21
 * </ul>
22
 * </p>
23
 *
24
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getName_()
25
 * @model 
26
 * @generated
27
 */
28
public interface Name extends EObject {
29
	/**
30
	 * Returns the value of the '<em><b>Value</b></em>' attribute.
31
	 * <!-- begin-user-doc -->
32
	 * <p>
33
	 * If the meaning of the '<em>Value</em>' attribute isn't clear,
34
	 * there really should be more of a description here...
35
	 * </p>
36
	 * <!-- end-user-doc -->
37
	 * @return the value of the '<em>Value</em>' attribute.
38
	 * @see #setValue(String)
39
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getName_Value()
40
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
41
	 * @generated
42
	 */
43
	String getValue();
44
45
	/**
46
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @param value the new value of the '<em>Value</em>' attribute.
50
	 * @see #getValue()
51
	 * @generated
52
	 */
53
	void setValue(String value);
54
55
	/**
56
	 * Returns the value of the '<em><b>Lang</b></em>' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>Lang</em>' attribute isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>Lang</em>' attribute.
64
	 * @see #setLang(String)
65
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getName_Lang()
66
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language"
67
	 * @generated
68
	 */
69
	String getLang();
70
71
	/**
72
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang <em>Lang</em>}' attribute.
73
	 * <!-- begin-user-doc -->
74
	 * <!-- end-user-doc -->
75
	 * @param value the new value of the '<em>Lang</em>' attribute.
76
	 * @see #getLang()
77
	 * @generated
78
	 */
79
	void setLang(String value);
80
81
} // Name
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/Registry.java (+144 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry;
8
9
import org.eclipse.emf.common.util.EList;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * A representation of the model object '<em><b>Registry</b></em>'.
16
 * <!-- end-user-doc -->
17
 *
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getName <em>Name</em>}</li>
22
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getDescription <em>Description</em>}</li>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId <em>Id</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation <em>Location</em>}</li>
25
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef <em>Ref</em>}</li>
26
 * </ul>
27
 * </p>
28
 *
29
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry()
30
 * @model 
31
 * @generated
32
 */
33
public interface Registry extends EObject {
34
	/**
35
	 * Returns the value of the '<em><b>Name</b></em>' containment reference list.
36
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.registry.Name}.
37
	 * <!-- begin-user-doc -->
38
	 * <p>
39
	 * If the meaning of the '<em>Name</em>' containment reference list isn't clear,
40
	 * there really should be more of a description here...
41
	 * </p>
42
	 * <!-- end-user-doc -->
43
	 * @return the value of the '<em>Name</em>' containment reference list.
44
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Name()
45
	 * @model type="org.eclipse.wst.ws.internal.model.v10.registry.Name" containment="true" resolveProxies="false" required="true"
46
	 * @generated
47
	 */
48
	EList getName();
49
50
	/**
51
	 * Returns the value of the '<em><b>Description</b></em>' containment reference list.
52
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.registry.Description}.
53
	 * <!-- begin-user-doc -->
54
	 * <p>
55
	 * If the meaning of the '<em>Description</em>' containment reference list isn't clear,
56
	 * there really should be more of a description here...
57
	 * </p>
58
	 * <!-- end-user-doc -->
59
	 * @return the value of the '<em>Description</em>' containment reference list.
60
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Description()
61
	 * @model type="org.eclipse.wst.ws.internal.model.v10.registry.Description" containment="true" resolveProxies="false" required="true"
62
	 * @generated
63
	 */
64
	EList getDescription();
65
66
	/**
67
	 * Returns the value of the '<em><b>Id</b></em>' attribute.
68
	 * <!-- begin-user-doc -->
69
	 * <p>
70
	 * If the meaning of the '<em>Id</em>' attribute isn't clear,
71
	 * there really should be more of a description here...
72
	 * </p>
73
	 * <!-- end-user-doc -->
74
	 * @return the value of the '<em>Id</em>' attribute.
75
	 * @see #setId(String)
76
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Id()
77
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" required="true"
78
	 * @generated
79
	 */
80
	String getId();
81
82
	/**
83
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId <em>Id</em>}' attribute.
84
	 * <!-- begin-user-doc -->
85
	 * <!-- end-user-doc -->
86
	 * @param value the new value of the '<em>Id</em>' attribute.
87
	 * @see #getId()
88
	 * @generated
89
	 */
90
	void setId(String value);
91
92
	/**
93
	 * Returns the value of the '<em><b>Location</b></em>' attribute.
94
	 * <!-- begin-user-doc -->
95
	 * <p>
96
	 * If the meaning of the '<em>Location</em>' attribute isn't clear,
97
	 * there really should be more of a description here...
98
	 * </p>
99
	 * <!-- end-user-doc -->
100
	 * @return the value of the '<em>Location</em>' attribute.
101
	 * @see #setLocation(String)
102
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Location()
103
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
104
	 * @generated
105
	 */
106
	String getLocation();
107
108
	/**
109
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation <em>Location</em>}' attribute.
110
	 * <!-- begin-user-doc -->
111
	 * <!-- end-user-doc -->
112
	 * @param value the new value of the '<em>Location</em>' attribute.
113
	 * @see #getLocation()
114
	 * @generated
115
	 */
116
	void setLocation(String value);
117
118
	/**
119
	 * Returns the value of the '<em><b>Ref</b></em>' attribute.
120
	 * <!-- begin-user-doc -->
121
	 * <p>
122
	 * If the meaning of the '<em>Ref</em>' attribute isn't clear,
123
	 * there really should be more of a description here...
124
	 * </p>
125
	 * <!-- end-user-doc -->
126
	 * @return the value of the '<em>Ref</em>' attribute.
127
	 * @see #setRef(String)
128
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#getRegistry_Ref()
129
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
130
	 * @generated
131
	 */
132
	String getRef();
133
134
	/**
135
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef <em>Ref</em>}' attribute.
136
	 * <!-- begin-user-doc -->
137
	 * <!-- end-user-doc -->
138
	 * @param value the new value of the '<em>Ref</em>' attribute.
139
	 * @see #getRef()
140
	 * @generated
141
	 */
142
	void setRef(String value);
143
144
} // Registry
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryFactory.java (+73 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry;
8
9
import org.eclipse.emf.ecore.EFactory;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * The <b>Factory</b> for the model.
14
 * It provides a create method for each non-abstract class of the model.
15
 * <!-- end-user-doc -->
16
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage
17
 * @generated
18
 */
19
public interface RegistryFactory extends EFactory {
20
	/**
21
	 * The singleton instance of the factory.
22
	 * <!-- begin-user-doc -->
23
	 * <!-- end-user-doc -->
24
	 * @generated
25
	 */
26
	RegistryFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryFactoryImpl();
27
28
	/**
29
	 * Returns a new object of class '<em>Description</em>'.
30
	 * <!-- begin-user-doc -->
31
	 * <!-- end-user-doc -->
32
	 * @return a new object of class '<em>Description</em>'.
33
	 * @generated
34
	 */
35
	Description createDescription();
36
37
	/**
38
	 * Returns a new object of class '<em>Document Root</em>'.
39
	 * <!-- begin-user-doc -->
40
	 * <!-- end-user-doc -->
41
	 * @return a new object of class '<em>Document Root</em>'.
42
	 * @generated
43
	 */
44
	DocumentRoot createDocumentRoot();
45
46
	/**
47
	 * Returns a new object of class '<em>Name</em>'.
48
	 * <!-- begin-user-doc -->
49
	 * <!-- end-user-doc -->
50
	 * @return a new object of class '<em>Name</em>'.
51
	 * @generated
52
	 */
53
	Name createName();
54
55
	/**
56
	 * Returns a new object of class '<em>Registry</em>'.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @return a new object of class '<em>Registry</em>'.
60
	 * @generated
61
	 */
62
	Registry createRegistry();
63
64
	/**
65
	 * Returns the package supported by this factory.
66
	 * <!-- begin-user-doc -->
67
	 * <!-- end-user-doc -->
68
	 * @return the package supported by this factory.
69
	 * @generated
70
	 */
71
	RegistryPackage getRegistryPackage();
72
73
} //RegistryFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/RegistryPackage.java (+570 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
/**
15
 * <!-- begin-user-doc -->
16
 * The <b>Package</b> for the model.
17
 * It contains accessors for the meta objects to represent
18
 * <ul>
19
 *   <li>each class,</li>
20
 *   <li>each feature of each class,</li>
21
 *   <li>each enum,</li>
22
 *   <li>and each data type</li>
23
 * </ul>
24
 * <!-- end-user-doc -->
25
 * <!-- begin-model-doc -->
26
 * 
27
 *    See http://www.w3.org/XML/1998/namespace.html and
28
 *    http://www.w3.org/TR/REC-xml for information about this namespace.
29
 * 
30
 *     This schema document describes the XML namespace, in a form
31
 *     suitable for import by other schema documents.  
32
 * 
33
 *     Note that local names in this namespace are intended to be defined
34
 *     only by the World Wide Web Consortium or its subgroups.  The
35
 *     following names are currently defined in this namespace and should
36
 *     not be used with conflicting semantics by any Working Group,
37
 *     specification, or document instance:
38
 * 
39
 *     base (as an attribute name): denotes an attribute whose value
40
 *          provides a URI to be used as the base for interpreting any
41
 *          relative URIs in the scope of the element on which it
42
 *          appears; its value is inherited.  This name is reserved
43
 *          by virtue of its definition in the XML Base specification.
44
 * 
45
 *     id   (as an attribute name): denotes an attribute whose value
46
 *          should be interpreted as if declared to be of type ID.
47
 *          The xml:id specification is not yet a W3C Recommendation,
48
 *          but this attribute is included here to facilitate experimentation
49
 *          with the mechanisms it proposes.  Note that it is _not_ included
50
 *          in the specialAttrs attribute group.
51
 * 
52
 *     lang (as an attribute name): denotes an attribute whose value
53
 *          is a language code for the natural language of the content of
54
 *          any element; its value is inherited.  This name is reserved
55
 *          by virtue of its definition in the XML specification.
56
 *   
57
 *     space (as an attribute name): denotes an attribute whose
58
 *          value is a keyword indicating what whitespace processing
59
 *          discipline is intended for the content of the element; its
60
 *          value is inherited.  This name is reserved by virtue of its
61
 *          definition in the XML specification.
62
 * 
63
 *     Father (in any context at all): denotes Jon Bosak, the chair of 
64
 *          the original XML Working Group.  This name is reserved by 
65
 *          the following decision of the W3C XML Plenary and 
66
 *          XML Coordination groups:
67
 * 
68
 *              In appreciation for his vision, leadership and dedication
69
 *              the W3C XML Plenary on this 10th day of February, 2000
70
 *              reserves for Jon Bosak in perpetuity the XML name
71
 *              xml:Father
72
 *   
73
 * This schema defines attributes and an attribute group
74
 *         suitable for use by
75
 *         schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
76
 *         attributes on elements they define.
77
 * 
78
 *         To enable this, such a schema must import this schema
79
 *         for the XML namespace, e.g. as follows:
80
 *         &lt;schema . . .&gt;
81
 *          . . .
82
 *          &lt;import namespace="http://www.w3.org/XML/1998/namespace"
83
 *                     schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;
84
 * 
85
 *         Subsequently, qualified reference to any of the attributes
86
 *         or the group defined below will have the desired effect, e.g.
87
 * 
88
 *         &lt;type . . .&gt;
89
 *          . . .
90
 *          &lt;attributeGroup ref="xml:specialAttrs"/&gt;
91
 *  
92
 *          will define a type which will schema-validate an instance
93
 *          element with any of those attributes
94
 * In keeping with the XML Schema WG's standard versioning
95
 *    policy, this schema document will persist at
96
 *    http://www.w3.org/2005/08/xml.xsd.
97
 *    At the date of issue it can also be found at
98
 *    http://www.w3.org/2001/xml.xsd.
99
 *    The schema document at that URI may however change in the future,
100
 *    in order to remain compatible with the latest version of XML Schema
101
 *    itself, or with the XML namespace itself.  In other words, if the XML
102
 *    Schema or XML namespaces change, the version of this document at
103
 *    http://www.w3.org/2001/xml.xsd will change
104
 *    accordingly; the version at
105
 *    http://www.w3.org/2005/08/xml.xsd will not change.
106
 *   
107
 * <!-- end-model-doc -->
108
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryFactory
109
 * @generated
110
 */
111
public interface RegistryPackage extends EPackage {
112
	/**
113
	 * The package name.
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @generated
117
	 */
118
	String eNAME = "registry";
119
120
	/**
121
	 * The package namespace URI.
122
	 * <!-- begin-user-doc -->
123
	 * <!-- end-user-doc -->
124
	 * @generated
125
	 */
126
	String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/registry";
127
128
	/**
129
	 * The package namespace name.
130
	 * <!-- begin-user-doc -->
131
	 * <!-- end-user-doc -->
132
	 * @generated
133
	 */
134
	String eNS_PREFIX = "registry";
135
136
	/**
137
	 * The singleton instance of the package.
138
	 * <!-- begin-user-doc -->
139
	 * <!-- end-user-doc -->
140
	 * @generated
141
	 */
142
	RegistryPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl.init();
143
144
	/**
145
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl <em>Description</em>}' class.
146
	 * <!-- begin-user-doc -->
147
	 * <!-- end-user-doc -->
148
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl
149
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getDescription()
150
	 * @generated
151
	 */
152
	int DESCRIPTION = 0;
153
154
	/**
155
	 * The feature id for the '<em><b>Value</b></em>' attribute.
156
	 * <!-- begin-user-doc -->
157
	 * <!-- end-user-doc -->
158
	 * @generated
159
	 * @ordered
160
	 */
161
	int DESCRIPTION__VALUE = 0;
162
163
	/**
164
	 * The feature id for the '<em><b>Lang</b></em>' attribute.
165
	 * <!-- begin-user-doc -->
166
	 * <!-- end-user-doc -->
167
	 * @generated
168
	 * @ordered
169
	 */
170
	int DESCRIPTION__LANG = 1;
171
172
	/**
173
	 * The number of structural features of the the '<em>Description</em>' class.
174
	 * <!-- begin-user-doc -->
175
	 * <!-- end-user-doc -->
176
	 * @generated
177
	 * @ordered
178
	 */
179
	int DESCRIPTION_FEATURE_COUNT = 2;
180
181
	/**
182
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl <em>Document Root</em>}' class.
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl
186
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getDocumentRoot()
187
	 * @generated
188
	 */
189
	int DOCUMENT_ROOT = 1;
190
191
	/**
192
	 * The feature id for the '<em><b>Mixed</b></em>' attribute list.
193
	 * <!-- begin-user-doc -->
194
	 * <!-- end-user-doc -->
195
	 * @generated
196
	 * @ordered
197
	 */
198
	int DOCUMENT_ROOT__MIXED = 0;
199
200
	/**
201
	 * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
202
	 * <!-- begin-user-doc -->
203
	 * <!-- end-user-doc -->
204
	 * @generated
205
	 * @ordered
206
	 */
207
	int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
208
209
	/**
210
	 * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
211
	 * <!-- begin-user-doc -->
212
	 * <!-- end-user-doc -->
213
	 * @generated
214
	 * @ordered
215
	 */
216
	int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
217
218
	/**
219
	 * The feature id for the '<em><b>Description</b></em>' containment reference.
220
	 * <!-- begin-user-doc -->
221
	 * <!-- end-user-doc -->
222
	 * @generated
223
	 * @ordered
224
	 */
225
	int DOCUMENT_ROOT__DESCRIPTION = 3;
226
227
	/**
228
	 * The feature id for the '<em><b>Name</b></em>' containment reference.
229
	 * <!-- begin-user-doc -->
230
	 * <!-- end-user-doc -->
231
	 * @generated
232
	 * @ordered
233
	 */
234
	int DOCUMENT_ROOT__NAME = 4;
235
236
	/**
237
	 * The feature id for the '<em><b>Registry</b></em>' containment reference.
238
	 * <!-- begin-user-doc -->
239
	 * <!-- end-user-doc -->
240
	 * @generated
241
	 * @ordered
242
	 */
243
	int DOCUMENT_ROOT__REGISTRY = 5;
244
245
	/**
246
	 * The number of structural features of the the '<em>Document Root</em>' class.
247
	 * <!-- begin-user-doc -->
248
	 * <!-- end-user-doc -->
249
	 * @generated
250
	 * @ordered
251
	 */
252
	int DOCUMENT_ROOT_FEATURE_COUNT = 6;
253
254
	/**
255
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl <em>Name</em>}' class.
256
	 * <!-- begin-user-doc -->
257
	 * <!-- end-user-doc -->
258
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl
259
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getName_()
260
	 * @generated
261
	 */
262
	int NAME = 2;
263
264
	/**
265
	 * The feature id for the '<em><b>Value</b></em>' attribute.
266
	 * <!-- begin-user-doc -->
267
	 * <!-- end-user-doc -->
268
	 * @generated
269
	 * @ordered
270
	 */
271
	int NAME__VALUE = 0;
272
273
	/**
274
	 * The feature id for the '<em><b>Lang</b></em>' attribute.
275
	 * <!-- begin-user-doc -->
276
	 * <!-- end-user-doc -->
277
	 * @generated
278
	 * @ordered
279
	 */
280
	int NAME__LANG = 1;
281
282
	/**
283
	 * The number of structural features of the the '<em>Name</em>' class.
284
	 * <!-- begin-user-doc -->
285
	 * <!-- end-user-doc -->
286
	 * @generated
287
	 * @ordered
288
	 */
289
	int NAME_FEATURE_COUNT = 2;
290
291
	/**
292
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl <em>Registry</em>}' class.
293
	 * <!-- begin-user-doc -->
294
	 * <!-- end-user-doc -->
295
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl
296
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl#getRegistry()
297
	 * @generated
298
	 */
299
	int REGISTRY = 3;
300
301
	/**
302
	 * The feature id for the '<em><b>Name</b></em>' containment reference list.
303
	 * <!-- begin-user-doc -->
304
	 * <!-- end-user-doc -->
305
	 * @generated
306
	 * @ordered
307
	 */
308
	int REGISTRY__NAME = 0;
309
310
	/**
311
	 * The feature id for the '<em><b>Description</b></em>' containment reference list.
312
	 * <!-- begin-user-doc -->
313
	 * <!-- end-user-doc -->
314
	 * @generated
315
	 * @ordered
316
	 */
317
	int REGISTRY__DESCRIPTION = 1;
318
319
	/**
320
	 * The feature id for the '<em><b>Id</b></em>' attribute.
321
	 * <!-- begin-user-doc -->
322
	 * <!-- end-user-doc -->
323
	 * @generated
324
	 * @ordered
325
	 */
326
	int REGISTRY__ID = 2;
327
328
	/**
329
	 * The feature id for the '<em><b>Location</b></em>' attribute.
330
	 * <!-- begin-user-doc -->
331
	 * <!-- end-user-doc -->
332
	 * @generated
333
	 * @ordered
334
	 */
335
	int REGISTRY__LOCATION = 3;
336
337
	/**
338
	 * The feature id for the '<em><b>Ref</b></em>' attribute.
339
	 * <!-- begin-user-doc -->
340
	 * <!-- end-user-doc -->
341
	 * @generated
342
	 * @ordered
343
	 */
344
	int REGISTRY__REF = 4;
345
346
	/**
347
	 * The number of structural features of the the '<em>Registry</em>' class.
348
	 * <!-- begin-user-doc -->
349
	 * <!-- end-user-doc -->
350
	 * @generated
351
	 * @ordered
352
	 */
353
	int REGISTRY_FEATURE_COUNT = 5;
354
355
356
	/**
357
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description <em>Description</em>}'.
358
	 * <!-- begin-user-doc -->
359
	 * <!-- end-user-doc -->
360
	 * @return the meta object for class '<em>Description</em>'.
361
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Description
362
	 * @generated
363
	 */
364
	EClass getDescription();
365
366
	/**
367
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue <em>Value</em>}'.
368
	 * <!-- begin-user-doc -->
369
	 * <!-- end-user-doc -->
370
	 * @return the meta object for the attribute '<em>Value</em>'.
371
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Description#getValue()
372
	 * @see #getDescription()
373
	 * @generated
374
	 */
375
	EAttribute getDescription_Value();
376
377
	/**
378
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang <em>Lang</em>}'.
379
	 * <!-- begin-user-doc -->
380
	 * <!-- end-user-doc -->
381
	 * @return the meta object for the attribute '<em>Lang</em>'.
382
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Description#getLang()
383
	 * @see #getDescription()
384
	 * @generated
385
	 */
386
	EAttribute getDescription_Lang();
387
388
	/**
389
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot <em>Document Root</em>}'.
390
	 * <!-- begin-user-doc -->
391
	 * <!-- end-user-doc -->
392
	 * @return the meta object for class '<em>Document Root</em>'.
393
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot
394
	 * @generated
395
	 */
396
	EClass getDocumentRoot();
397
398
	/**
399
	 * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getMixed <em>Mixed</em>}'.
400
	 * <!-- begin-user-doc -->
401
	 * <!-- end-user-doc -->
402
	 * @return the meta object for the attribute list '<em>Mixed</em>'.
403
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getMixed()
404
	 * @see #getDocumentRoot()
405
	 * @generated
406
	 */
407
	EAttribute getDocumentRoot_Mixed();
408
409
	/**
410
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
411
	 * <!-- begin-user-doc -->
412
	 * <!-- end-user-doc -->
413
	 * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
414
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXMLNSPrefixMap()
415
	 * @see #getDocumentRoot()
416
	 * @generated
417
	 */
418
	EReference getDocumentRoot_XMLNSPrefixMap();
419
420
	/**
421
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
422
	 * <!-- begin-user-doc -->
423
	 * <!-- end-user-doc -->
424
	 * @return the meta object for the map '<em>XSI Schema Location</em>'.
425
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getXSISchemaLocation()
426
	 * @see #getDocumentRoot()
427
	 * @generated
428
	 */
429
	EReference getDocumentRoot_XSISchemaLocation();
430
431
	/**
432
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription <em>Description</em>}'.
433
	 * <!-- begin-user-doc -->
434
	 * <!-- end-user-doc -->
435
	 * @return the meta object for the containment reference '<em>Description</em>'.
436
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getDescription()
437
	 * @see #getDocumentRoot()
438
	 * @generated
439
	 */
440
	EReference getDocumentRoot_Description();
441
442
	/**
443
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName <em>Name</em>}'.
444
	 * <!-- begin-user-doc -->
445
	 * <!-- end-user-doc -->
446
	 * @return the meta object for the containment reference '<em>Name</em>'.
447
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getName()
448
	 * @see #getDocumentRoot()
449
	 * @generated
450
	 */
451
	EReference getDocumentRoot_Name();
452
453
	/**
454
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry <em>Registry</em>}'.
455
	 * <!-- begin-user-doc -->
456
	 * <!-- end-user-doc -->
457
	 * @return the meta object for the containment reference '<em>Registry</em>'.
458
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot#getRegistry()
459
	 * @see #getDocumentRoot()
460
	 * @generated
461
	 */
462
	EReference getDocumentRoot_Registry();
463
464
	/**
465
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name <em>Name</em>}'.
466
	 * <!-- begin-user-doc -->
467
	 * <!-- end-user-doc -->
468
	 * @return the meta object for class '<em>Name</em>'.
469
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Name
470
	 * @generated
471
	 */
472
	EClass getName_();
473
474
	/**
475
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue <em>Value</em>}'.
476
	 * <!-- begin-user-doc -->
477
	 * <!-- end-user-doc -->
478
	 * @return the meta object for the attribute '<em>Value</em>'.
479
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Name#getValue()
480
	 * @see #getName_()
481
	 * @generated
482
	 */
483
	EAttribute getName_Value();
484
485
	/**
486
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang <em>Lang</em>}'.
487
	 * <!-- begin-user-doc -->
488
	 * <!-- end-user-doc -->
489
	 * @return the meta object for the attribute '<em>Lang</em>'.
490
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Name#getLang()
491
	 * @see #getName_()
492
	 * @generated
493
	 */
494
	EAttribute getName_Lang();
495
496
	/**
497
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry <em>Registry</em>}'.
498
	 * <!-- begin-user-doc -->
499
	 * <!-- end-user-doc -->
500
	 * @return the meta object for class '<em>Registry</em>'.
501
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry
502
	 * @generated
503
	 */
504
	EClass getRegistry();
505
506
	/**
507
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getName <em>Name</em>}'.
508
	 * <!-- begin-user-doc -->
509
	 * <!-- end-user-doc -->
510
	 * @return the meta object for the containment reference list '<em>Name</em>'.
511
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getName()
512
	 * @see #getRegistry()
513
	 * @generated
514
	 */
515
	EReference getRegistry_Name();
516
517
	/**
518
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getDescription <em>Description</em>}'.
519
	 * <!-- begin-user-doc -->
520
	 * <!-- end-user-doc -->
521
	 * @return the meta object for the containment reference list '<em>Description</em>'.
522
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getDescription()
523
	 * @see #getRegistry()
524
	 * @generated
525
	 */
526
	EReference getRegistry_Description();
527
528
	/**
529
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId <em>Id</em>}'.
530
	 * <!-- begin-user-doc -->
531
	 * <!-- end-user-doc -->
532
	 * @return the meta object for the attribute '<em>Id</em>'.
533
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getId()
534
	 * @see #getRegistry()
535
	 * @generated
536
	 */
537
	EAttribute getRegistry_Id();
538
539
	/**
540
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation <em>Location</em>}'.
541
	 * <!-- begin-user-doc -->
542
	 * <!-- end-user-doc -->
543
	 * @return the meta object for the attribute '<em>Location</em>'.
544
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getLocation()
545
	 * @see #getRegistry()
546
	 * @generated
547
	 */
548
	EAttribute getRegistry_Location();
549
550
	/**
551
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef <em>Ref</em>}'.
552
	 * <!-- begin-user-doc -->
553
	 * <!-- end-user-doc -->
554
	 * @return the meta object for the attribute '<em>Ref</em>'.
555
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry#getRef()
556
	 * @see #getRegistry()
557
	 * @generated
558
	 */
559
	EAttribute getRegistry_Ref();
560
561
	/**
562
	 * Returns the factory that creates the instances of the model.
563
	 * <!-- begin-user-doc -->
564
	 * <!-- end-user-doc -->
565
	 * @return the factory that creates the instances of the model.
566
	 * @generated
567
	 */
568
	RegistryFactory getRegistryFactory();
569
570
} //RegistryPackage
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DescriptionImpl.java (+216 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.impl;
8
9
import org.eclipse.emf.common.notify.Notification;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EStructuralFeature;
13
14
import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
import org.eclipse.emf.ecore.impl.EObjectImpl;
16
17
import org.eclipse.wst.ws.internal.model.v10.registry.Description;
18
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * An implementation of the model object '<em><b>Description</b></em>'.
23
 * <!-- end-user-doc -->
24
 * <p>
25
 * The following features are implemented:
26
 * <ul>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl#getValue <em>Value</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DescriptionImpl#getLang <em>Lang</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @generated
33
 */
34
public class DescriptionImpl extends EObjectImpl implements Description {
35
	/**
36
	 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @see #getValue()
40
	 * @generated
41
	 * @ordered
42
	 */
43
	protected static final String VALUE_EDEFAULT = null;
44
45
	/**
46
	 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @see #getValue()
50
	 * @generated
51
	 * @ordered
52
	 */
53
	protected String value = VALUE_EDEFAULT;
54
55
	/**
56
	 * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @see #getLang()
60
	 * @generated
61
	 * @ordered
62
	 */
63
	protected static final String LANG_EDEFAULT = null;
64
65
	/**
66
	 * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @see #getLang()
70
	 * @generated
71
	 * @ordered
72
	 */
73
	protected String lang = LANG_EDEFAULT;
74
75
	/**
76
	 * <!-- begin-user-doc -->
77
	 * <!-- end-user-doc -->
78
	 * @generated
79
	 */
80
	protected DescriptionImpl() {
81
		super();
82
	}
83
84
	/**
85
	 * <!-- begin-user-doc -->
86
	 * <!-- end-user-doc -->
87
	 * @generated
88
	 */
89
	protected EClass eStaticClass() {
90
		return RegistryPackage.eINSTANCE.getDescription();
91
	}
92
93
	/**
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @generated
97
	 */
98
	public String getValue() {
99
		return value;
100
	}
101
102
	/**
103
	 * <!-- begin-user-doc -->
104
	 * <!-- end-user-doc -->
105
	 * @generated
106
	 */
107
	public void setValue(String newValue) {
108
		String oldValue = value;
109
		value = newValue;
110
		if (eNotificationRequired())
111
			eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.DESCRIPTION__VALUE, oldValue, value));
112
	}
113
114
	/**
115
	 * <!-- begin-user-doc -->
116
	 * <!-- end-user-doc -->
117
	 * @generated
118
	 */
119
	public String getLang() {
120
		return lang;
121
	}
122
123
	/**
124
	 * <!-- begin-user-doc -->
125
	 * <!-- end-user-doc -->
126
	 * @generated
127
	 */
128
	public void setLang(String newLang) {
129
		String oldLang = lang;
130
		lang = newLang;
131
		if (eNotificationRequired())
132
			eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.DESCRIPTION__LANG, oldLang, lang));
133
	}
134
135
	/**
136
	 * <!-- begin-user-doc -->
137
	 * <!-- end-user-doc -->
138
	 * @generated
139
	 */
140
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
141
		switch (eDerivedStructuralFeatureID(eFeature)) {
142
			case RegistryPackage.DESCRIPTION__VALUE:
143
				return getValue();
144
			case RegistryPackage.DESCRIPTION__LANG:
145
				return getLang();
146
		}
147
		return eDynamicGet(eFeature, resolve);
148
	}
149
150
	/**
151
	 * <!-- begin-user-doc -->
152
	 * <!-- end-user-doc -->
153
	 * @generated
154
	 */
155
	public void eSet(EStructuralFeature eFeature, Object newValue) {
156
		switch (eDerivedStructuralFeatureID(eFeature)) {
157
			case RegistryPackage.DESCRIPTION__VALUE:
158
				setValue((String)newValue);
159
				return;
160
			case RegistryPackage.DESCRIPTION__LANG:
161
				setLang((String)newValue);
162
				return;
163
		}
164
		eDynamicSet(eFeature, newValue);
165
	}
166
167
	/**
168
	 * <!-- begin-user-doc -->
169
	 * <!-- end-user-doc -->
170
	 * @generated
171
	 */
172
	public void eUnset(EStructuralFeature eFeature) {
173
		switch (eDerivedStructuralFeatureID(eFeature)) {
174
			case RegistryPackage.DESCRIPTION__VALUE:
175
				setValue(VALUE_EDEFAULT);
176
				return;
177
			case RegistryPackage.DESCRIPTION__LANG:
178
				setLang(LANG_EDEFAULT);
179
				return;
180
		}
181
		eDynamicUnset(eFeature);
182
	}
183
184
	/**
185
	 * <!-- begin-user-doc -->
186
	 * <!-- end-user-doc -->
187
	 * @generated
188
	 */
189
	public boolean eIsSet(EStructuralFeature eFeature) {
190
		switch (eDerivedStructuralFeatureID(eFeature)) {
191
			case RegistryPackage.DESCRIPTION__VALUE:
192
				return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
193
			case RegistryPackage.DESCRIPTION__LANG:
194
				return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
195
		}
196
		return eDynamicIsSet(eFeature);
197
	}
198
199
	/**
200
	 * <!-- begin-user-doc -->
201
	 * <!-- end-user-doc -->
202
	 * @generated
203
	 */
204
	public String toString() {
205
		if (eIsProxy()) return super.toString();
206
207
		StringBuffer result = new StringBuffer(super.toString());
208
		result.append(" (value: ");
209
		result.append(value);
210
		result.append(", lang: ");
211
		result.append(lang);
212
		result.append(')');
213
		return result.toString();
214
	}
215
216
} //DescriptionImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/impl/DocumentRootImpl.java (+367 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.NotificationChain;
12
13
import org.eclipse.emf.common.util.EMap;
14
15
import org.eclipse.emf.ecore.EClass;
16
import org.eclipse.emf.ecore.EStructuralFeature;
17
import org.eclipse.emf.ecore.EcorePackage;
18
import org.eclipse.emf.ecore.InternalEObject;
19
20
import org.eclipse.emf.ecore.impl.EObjectImpl;
21
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
22
23
import org.eclipse.emf.ecore.util.BasicFeatureMap;
24
import org.eclipse.emf.ecore.util.EcoreEMap;
25
import org.eclipse.emf.ecore.util.FeatureMap;
26
import org.eclipse.emf.ecore.util.InternalEList;
27
28
import org.eclipse.wst.ws.internal.model.v10.registry.Description;
29
import org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot;
30
import org.eclipse.wst.ws.internal.model.v10.registry.Name;
31
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
32
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * An implementation of the model object '<em><b>Document Root</b></em>'.
37
 * <!-- end-user-doc -->
38
 * <p>
39
 * The following features are implemented:
40
 * <ul>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
43
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
44
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getDescription <em>Description</em>}</li>
45
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getName <em>Name</em>}</li>
46
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.DocumentRootImpl#getRegistry <em>Registry</em>}</li>
47
 * </ul>
48
 * </p>
49
 *
50
 * @generated
51
 */
52
public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
53
	/**
54
	 * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
55
	 * <!-- begin-user-doc -->
56
	 * <!-- end-user-doc -->
57
	 * @see #getMixed()
58
	 * @generated
59
	 * @ordered
60
	 */
61
	protected FeatureMap mixed = null;
62
63
	/**
64
	 * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
65
	 * <!-- begin-user-doc -->
66
	 * <!-- end-user-doc -->
67
	 * @see #getXMLNSPrefixMap()
68
	 * @generated
69
	 * @ordered
70
	 */
71
	protected EMap xMLNSPrefixMap = null;
72
73
	/**
74
	 * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
75
	 * <!-- begin-user-doc -->
76
	 * <!-- end-user-doc -->
77
	 * @see #getXSISchemaLocation()
78
	 * @generated
79
	 * @ordered
80
	 */
81
	protected EMap xSISchemaLocation = null;
82
83
	/**
84
	 * <!-- begin-user-doc -->
85
	 * <!-- end-user-doc -->
86
	 * @generated
87
	 */
88
	protected DocumentRootImpl() {
89
		super();
90
	}
91
92
	/**
93
	 * <!-- begin-user-doc -->
94
	 * <!-- end-user-doc -->
95
	 * @generated
96
	 */
97
	protected EClass eStaticClass() {
98
		return RegistryPackage.eINSTANCE.getDocumentRoot();
99
	}
100
101
	/**
102
	 * <!-- begin-user-doc -->
103
	 * <!-- end-user-doc -->
104
	 * @generated
105
	 */
106
	public FeatureMap getMixed() {
107
		if (mixed == null) {
108
			mixed = new BasicFeatureMap(this, RegistryPackage.DOCUMENT_ROOT__MIXED);
109
		}
110
		return mixed;
111
	}
112
113
	/**
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @generated
117
	 */
118
	public EMap getXMLNSPrefixMap() {
119
		if (xMLNSPrefixMap == null) {
120
			xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
121
		}
122
		return xMLNSPrefixMap;
123
	}
124
125
	/**
126
	 * <!-- begin-user-doc -->
127
	 * <!-- end-user-doc -->
128
	 * @generated
129
	 */
130
	public EMap getXSISchemaLocation() {
131
		if (xSISchemaLocation == null) {
132
			xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
133
		}
134
		return xSISchemaLocation;
135
	}
136
137
	/**
138
	 * <!-- begin-user-doc -->
139
	 * <!-- end-user-doc -->
140
	 * @generated
141
	 */
142
	public Description getDescription() {
143
		return (Description)getMixed().get(RegistryPackage.eINSTANCE.getDocumentRoot_Description(), true);
144
	}
145
146
	/**
147
	 * <!-- begin-user-doc -->
148
	 * <!-- end-user-doc -->
149
	 * @generated
150
	 */
151
	public NotificationChain basicSetDescription(Description newDescription, NotificationChain msgs) {
152
		return ((FeatureMap.Internal)getMixed()).basicAdd(RegistryPackage.eINSTANCE.getDocumentRoot_Description(), newDescription, null);
153
	}
154
155
	/**
156
	 * <!-- begin-user-doc -->
157
	 * <!-- end-user-doc -->
158
	 * @generated
159
	 */
160
	public void setDescription(Description newDescription) {
161
		((FeatureMap.Internal)getMixed()).set(RegistryPackage.eINSTANCE.getDocumentRoot_Description(), newDescription);
162
	}
163
164
	/**
165
	 * <!-- begin-user-doc -->
166
	 * <!-- end-user-doc -->
167
	 * @generated
168
	 */
169
	public Name getName() {
170
		return (Name)getMixed().get(RegistryPackage.eINSTANCE.getDocumentRoot_Name(), true);
171
	}
172
173
	/**
174
	 * <!-- begin-user-doc -->
175
	 * <!-- end-user-doc -->
176
	 * @generated
177
	 */
178
	public NotificationChain basicSetName(Name newName, NotificationChain msgs) {
179
		return ((FeatureMap.Internal)getMixed()).basicAdd(RegistryPackage.eINSTANCE.getDocumentRoot_Name(), newName, null);
180
	}
181
182
	/**
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @generated
186
	 */
187
	public void setName(Name newName) {
188
		((FeatureMap.Internal)getMixed()).set(RegistryPackage.eINSTANCE.getDocumentRoot_Name(), newName);
189
	}
190
191
	/**
192
	 * <!-- begin-user-doc -->
193
	 * <!-- end-user-doc -->
194
	 * @generated
195
	 */
196
	public Registry getRegistry() {
197
		return (Registry)getMixed().get(RegistryPackage.eINSTANCE.getDocumentRoot_Registry(), true);
198
	}
199
200
	/**
201
	 * <!-- begin-user-doc -->
202
	 * <!-- end-user-doc -->
203
	 * @generated
204
	 */
205
	public NotificationChain basicSetRegistry(Registry newRegistry, NotificationChain msgs) {
206
		return ((FeatureMap.Internal)getMixed()).basicAdd(RegistryPackage.eINSTANCE.getDocumentRoot_Registry(), newRegistry, null);
207
	}
208
209
	/**
210
	 * <!-- begin-user-doc -->
211
	 * <!-- end-user-doc -->
212
	 * @generated
213
	 */
214
	public void setRegistry(Registry newRegistry) {
215
		((FeatureMap.Internal)getMixed()).set(RegistryPackage.eINSTANCE.getDocumentRoot_Registry(), newRegistry);
216
	}
217
218
	/**
219
	 * <!-- begin-user-doc -->
220
	 * <!-- end-user-doc -->
221
	 * @generated
222
	 */
223
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
224
		if (featureID >= 0) {
225
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
226
				case RegistryPackage.DOCUMENT_ROOT__MIXED:
227
					return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
228
				case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
229
					return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
230
				case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
231
					return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
232
				case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION:
233
					return basicSetDescription(null, msgs);
234
				case RegistryPackage.DOCUMENT_ROOT__NAME:
235
					return basicSetName(null, msgs);
236
				case RegistryPackage.DOCUMENT_ROOT__REGISTRY:
237
					return basicSetRegistry(null, msgs);
238
				default:
239
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
240
			}
241
		}
242
		return eBasicSetContainer(null, featureID, msgs);
243
	}
244
245
	/**
246
	 * <!-- begin-user-doc -->
247
	 * <!-- end-user-doc -->
248
	 * @generated
249
	 */
250
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
251
		switch (eDerivedStructuralFeatureID(eFeature)) {
252
			case RegistryPackage.DOCUMENT_ROOT__MIXED:
253
				return getMixed();
254
			case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
255
				return getXMLNSPrefixMap();
256
			case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
257
				return getXSISchemaLocation();
258
			case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION:
259
				return getDescription();
260
			case RegistryPackage.DOCUMENT_ROOT__NAME:
261
				return getName();
262
			case RegistryPackage.DOCUMENT_ROOT__REGISTRY:
263
				return getRegistry();
264
		}
265
		return eDynamicGet(eFeature, resolve);
266
	}
267
268
	/**
269
	 * <!-- begin-user-doc -->
270
	 * <!-- end-user-doc -->
271
	 * @generated
272
	 */
273
	public void eSet(EStructuralFeature eFeature, Object newValue) {
274
		switch (eDerivedStructuralFeatureID(eFeature)) {
275
			case RegistryPackage.DOCUMENT_ROOT__MIXED:
276
				getMixed().clear();
277
				getMixed().addAll((Collection)newValue);
278
				return;
279
			case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
280
				getXMLNSPrefixMap().clear();
281
				getXMLNSPrefixMap().addAll((Collection)newValue);
282
				return;
283
			case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
284
				getXSISchemaLocation().clear();
285
				getXSISchemaLocation().addAll((Collection)newValue);
286
				return;
287
			case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION:
288
				setDescription((Description)newValue);
289
				return;
290
			case RegistryPackage.DOCUMENT_ROOT__NAME:
291
				setName((Name)newValue);
292
				return;
293
			case RegistryPackage.DOCUMENT_ROOT__REGISTRY:
294
				setRegistry((Registry)newValue);
295
				return;
296
		}
297
		eDynamicSet(eFeature, newValue);
298
	}
299
300
	/**
301
	 * <!-- begin-user-doc -->
302
	 * <!-- end-user-doc -->
303
	 * @generated
304
	 */
305
	public void eUnset(EStructuralFeature eFeature) {
306
		switch (eDerivedStructuralFeatureID(eFeature)) {
307
			case RegistryPackage.DOCUMENT_ROOT__MIXED:
308
				getMixed().clear();
309
				return;
310
			case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
311
				getXMLNSPrefixMap().clear();
312
				return;
313
			case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
314
				getXSISchemaLocation().clear();
315
				return;
316
			case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION:
317
				setDescription((Description)null);
318
				return;
319
			case RegistryPackage.DOCUMENT_ROOT__NAME:
320
				setName((Name)null);
321
				return;
322
			case RegistryPackage.DOCUMENT_ROOT__REGISTRY:
323
				setRegistry((Registry)null);
324
				return;
325
		}
326
		eDynamicUnset(eFeature);
327
	}
328
329
	/**
330
	 * <!-- begin-user-doc -->
331
	 * <!-- end-user-doc -->
332
	 * @generated
333
	 */
334
	public boolean eIsSet(EStructuralFeature eFeature) {
335
		switch (eDerivedStructuralFeatureID(eFeature)) {
336
			case RegistryPackage.DOCUMENT_ROOT__MIXED:
337
				return mixed != null && !mixed.isEmpty();
338
			case RegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
339
				return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
340
			case RegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
341
				return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
342
			case RegistryPackage.DOCUMENT_ROOT__DESCRIPTION:
343
				return getDescription() != null;
344
			case RegistryPackage.DOCUMENT_ROOT__NAME:
345
				return getName() != null;
346
			case RegistryPackage.DOCUMENT_ROOT__REGISTRY:
347
				return getRegistry() != null;
348
		}
349
		return eDynamicIsSet(eFeature);
350
	}
351
352
	/**
353
	 * <!-- begin-user-doc -->
354
	 * <!-- end-user-doc -->
355
	 * @generated
356
	 */
357
	public String toString() {
358
		if (eIsProxy()) return super.toString();
359
360
		StringBuffer result = new StringBuffer(super.toString());
361
		result.append(" (mixed: ");
362
		result.append(mixed);
363
		result.append(')');
364
		return result.toString();
365
	}
366
367
} //DocumentRootImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/impl/NameImpl.java (+216 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.impl;
8
9
import org.eclipse.emf.common.notify.Notification;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EStructuralFeature;
13
14
import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
import org.eclipse.emf.ecore.impl.EObjectImpl;
16
17
import org.eclipse.wst.ws.internal.model.v10.registry.Name;
18
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * An implementation of the model object '<em><b>Name</b></em>'.
23
 * <!-- end-user-doc -->
24
 * <p>
25
 * The following features are implemented:
26
 * <ul>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl#getValue <em>Value</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.NameImpl#getLang <em>Lang</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @generated
33
 */
34
public class NameImpl extends EObjectImpl implements Name {
35
	/**
36
	 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @see #getValue()
40
	 * @generated
41
	 * @ordered
42
	 */
43
	protected static final String VALUE_EDEFAULT = null;
44
45
	/**
46
	 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @see #getValue()
50
	 * @generated
51
	 * @ordered
52
	 */
53
	protected String value = VALUE_EDEFAULT;
54
55
	/**
56
	 * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @see #getLang()
60
	 * @generated
61
	 * @ordered
62
	 */
63
	protected static final String LANG_EDEFAULT = null;
64
65
	/**
66
	 * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @see #getLang()
70
	 * @generated
71
	 * @ordered
72
	 */
73
	protected String lang = LANG_EDEFAULT;
74
75
	/**
76
	 * <!-- begin-user-doc -->
77
	 * <!-- end-user-doc -->
78
	 * @generated
79
	 */
80
	protected NameImpl() {
81
		super();
82
	}
83
84
	/**
85
	 * <!-- begin-user-doc -->
86
	 * <!-- end-user-doc -->
87
	 * @generated
88
	 */
89
	protected EClass eStaticClass() {
90
		return RegistryPackage.eINSTANCE.getName_();
91
	}
92
93
	/**
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @generated
97
	 */
98
	public String getValue() {
99
		return value;
100
	}
101
102
	/**
103
	 * <!-- begin-user-doc -->
104
	 * <!-- end-user-doc -->
105
	 * @generated
106
	 */
107
	public void setValue(String newValue) {
108
		String oldValue = value;
109
		value = newValue;
110
		if (eNotificationRequired())
111
			eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.NAME__VALUE, oldValue, value));
112
	}
113
114
	/**
115
	 * <!-- begin-user-doc -->
116
	 * <!-- end-user-doc -->
117
	 * @generated
118
	 */
119
	public String getLang() {
120
		return lang;
121
	}
122
123
	/**
124
	 * <!-- begin-user-doc -->
125
	 * <!-- end-user-doc -->
126
	 * @generated
127
	 */
128
	public void setLang(String newLang) {
129
		String oldLang = lang;
130
		lang = newLang;
131
		if (eNotificationRequired())
132
			eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.NAME__LANG, oldLang, lang));
133
	}
134
135
	/**
136
	 * <!-- begin-user-doc -->
137
	 * <!-- end-user-doc -->
138
	 * @generated
139
	 */
140
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
141
		switch (eDerivedStructuralFeatureID(eFeature)) {
142
			case RegistryPackage.NAME__VALUE:
143
				return getValue();
144
			case RegistryPackage.NAME__LANG:
145
				return getLang();
146
		}
147
		return eDynamicGet(eFeature, resolve);
148
	}
149
150
	/**
151
	 * <!-- begin-user-doc -->
152
	 * <!-- end-user-doc -->
153
	 * @generated
154
	 */
155
	public void eSet(EStructuralFeature eFeature, Object newValue) {
156
		switch (eDerivedStructuralFeatureID(eFeature)) {
157
			case RegistryPackage.NAME__VALUE:
158
				setValue((String)newValue);
159
				return;
160
			case RegistryPackage.NAME__LANG:
161
				setLang((String)newValue);
162
				return;
163
		}
164
		eDynamicSet(eFeature, newValue);
165
	}
166
167
	/**
168
	 * <!-- begin-user-doc -->
169
	 * <!-- end-user-doc -->
170
	 * @generated
171
	 */
172
	public void eUnset(EStructuralFeature eFeature) {
173
		switch (eDerivedStructuralFeatureID(eFeature)) {
174
			case RegistryPackage.NAME__VALUE:
175
				setValue(VALUE_EDEFAULT);
176
				return;
177
			case RegistryPackage.NAME__LANG:
178
				setLang(LANG_EDEFAULT);
179
				return;
180
		}
181
		eDynamicUnset(eFeature);
182
	}
183
184
	/**
185
	 * <!-- begin-user-doc -->
186
	 * <!-- end-user-doc -->
187
	 * @generated
188
	 */
189
	public boolean eIsSet(EStructuralFeature eFeature) {
190
		switch (eDerivedStructuralFeatureID(eFeature)) {
191
			case RegistryPackage.NAME__VALUE:
192
				return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
193
			case RegistryPackage.NAME__LANG:
194
				return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
195
		}
196
		return eDynamicIsSet(eFeature);
197
	}
198
199
	/**
200
	 * <!-- begin-user-doc -->
201
	 * <!-- end-user-doc -->
202
	 * @generated
203
	 */
204
	public String toString() {
205
		if (eIsProxy()) return super.toString();
206
207
		StringBuffer result = new StringBuffer(super.toString());
208
		result.append(" (value: ");
209
		result.append(value);
210
		result.append(", lang: ");
211
		result.append(lang);
212
		result.append(')');
213
		return result.toString();
214
	}
215
216
} //NameImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryFactoryImpl.java (+108 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.impl;
8
9
import org.eclipse.emf.ecore.EClass;
10
import org.eclipse.emf.ecore.EObject;
11
12
import org.eclipse.emf.ecore.impl.EFactoryImpl;
13
14
import org.eclipse.wst.ws.internal.model.v10.registry.*;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * An implementation of the model <b>Factory</b>.
19
 * <!-- end-user-doc -->
20
 * @generated
21
 */
22
public class RegistryFactoryImpl extends EFactoryImpl implements RegistryFactory {
23
	/**
24
	 * Creates and instance of the factory.
25
	 * <!-- begin-user-doc -->
26
	 * <!-- end-user-doc -->
27
	 * @generated
28
	 */
29
	public RegistryFactoryImpl() {
30
		super();
31
	}
32
33
	/**
34
	 * <!-- begin-user-doc -->
35
	 * <!-- end-user-doc -->
36
	 * @generated
37
	 */
38
	public EObject create(EClass eClass) {
39
		switch (eClass.getClassifierID()) {
40
			case RegistryPackage.DESCRIPTION: return createDescription();
41
			case RegistryPackage.DOCUMENT_ROOT: return createDocumentRoot();
42
			case RegistryPackage.NAME: return createName();
43
			case RegistryPackage.REGISTRY: return createRegistry();
44
			default:
45
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
46
		}
47
	}
48
49
	/**
50
	 * <!-- begin-user-doc -->
51
	 * <!-- end-user-doc -->
52
	 * @generated
53
	 */
54
	public Description createDescription() {
55
		DescriptionImpl description = new DescriptionImpl();
56
		return description;
57
	}
58
59
	/**
60
	 * <!-- begin-user-doc -->
61
	 * <!-- end-user-doc -->
62
	 * @generated
63
	 */
64
	public DocumentRoot createDocumentRoot() {
65
		DocumentRootImpl documentRoot = new DocumentRootImpl();
66
		return documentRoot;
67
	}
68
69
	/**
70
	 * <!-- begin-user-doc -->
71
	 * <!-- end-user-doc -->
72
	 * @generated
73
	 */
74
	public Name createName() {
75
		NameImpl name = new NameImpl();
76
		return name;
77
	}
78
79
	/**
80
	 * <!-- begin-user-doc -->
81
	 * <!-- end-user-doc -->
82
	 * @generated
83
	 */
84
	public Registry createRegistry() {
85
		RegistryImpl registry = new RegistryImpl();
86
		return registry;
87
	}
88
89
	/**
90
	 * <!-- begin-user-doc -->
91
	 * <!-- end-user-doc -->
92
	 * @generated
93
	 */
94
	public RegistryPackage getRegistryPackage() {
95
		return (RegistryPackage)getEPackage();
96
	}
97
98
	/**
99
	 * <!-- begin-user-doc -->
100
	 * <!-- end-user-doc -->
101
	 * @deprecated
102
	 * @generated
103
	 */
104
	public static RegistryPackage getPackage() {
105
		return RegistryPackage.eINSTANCE;
106
	}
107
108
} //RegistryFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryImpl.java (+368 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.Notification;
12
import org.eclipse.emf.common.notify.NotificationChain;
13
14
import org.eclipse.emf.common.util.EList;
15
16
import org.eclipse.emf.ecore.EClass;
17
import org.eclipse.emf.ecore.EStructuralFeature;
18
import org.eclipse.emf.ecore.InternalEObject;
19
20
import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
import org.eclipse.emf.ecore.impl.EObjectImpl;
22
23
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24
import org.eclipse.emf.ecore.util.InternalEList;
25
26
import org.eclipse.wst.ws.internal.model.v10.registry.Description;
27
import org.eclipse.wst.ws.internal.model.v10.registry.Name;
28
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
29
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
30
31
/**
32
 * <!-- begin-user-doc -->
33
 * An implementation of the model object '<em><b>Registry</b></em>'.
34
 * <!-- end-user-doc -->
35
 * <p>
36
 * The following features are implemented:
37
 * <ul>
38
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getName <em>Name</em>}</li>
39
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getDescription <em>Description</em>}</li>
40
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getId <em>Id</em>}</li>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getLocation <em>Location</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl#getRef <em>Ref</em>}</li>
43
 * </ul>
44
 * </p>
45
 *
46
 * @generated
47
 */
48
public class RegistryImpl extends EObjectImpl implements Registry {
49
	/**
50
	 * The cached value of the '{@link #getName() <em>Name</em>}' containment reference list.
51
	 * <!-- begin-user-doc -->
52
	 * <!-- end-user-doc -->
53
	 * @see #getName()
54
	 * @generated
55
	 * @ordered
56
	 */
57
	protected EList name = null;
58
59
	/**
60
	 * The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference list.
61
	 * <!-- begin-user-doc -->
62
	 * <!-- end-user-doc -->
63
	 * @see #getDescription()
64
	 * @generated
65
	 * @ordered
66
	 */
67
	protected EList description = null;
68
69
	/**
70
	 * The default value of the '{@link #getId() <em>Id</em>}' attribute.
71
	 * <!-- begin-user-doc -->
72
	 * <!-- end-user-doc -->
73
	 * @see #getId()
74
	 * @generated
75
	 * @ordered
76
	 */
77
	protected static final String ID_EDEFAULT = null;
78
79
	/**
80
	 * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
81
	 * <!-- begin-user-doc -->
82
	 * <!-- end-user-doc -->
83
	 * @see #getId()
84
	 * @generated
85
	 * @ordered
86
	 */
87
	protected String id = ID_EDEFAULT;
88
89
	/**
90
	 * The default value of the '{@link #getLocation() <em>Location</em>}' attribute.
91
	 * <!-- begin-user-doc -->
92
	 * <!-- end-user-doc -->
93
	 * @see #getLocation()
94
	 * @generated
95
	 * @ordered
96
	 */
97
	protected static final String LOCATION_EDEFAULT = null;
98
99
	/**
100
	 * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute.
101
	 * <!-- begin-user-doc -->
102
	 * <!-- end-user-doc -->
103
	 * @see #getLocation()
104
	 * @generated
105
	 * @ordered
106
	 */
107
	protected String location = LOCATION_EDEFAULT;
108
109
	/**
110
	 * The default value of the '{@link #getRef() <em>Ref</em>}' attribute.
111
	 * <!-- begin-user-doc -->
112
	 * <!-- end-user-doc -->
113
	 * @see #getRef()
114
	 * @generated
115
	 * @ordered
116
	 */
117
	protected static final String REF_EDEFAULT = null;
118
119
	/**
120
	 * The cached value of the '{@link #getRef() <em>Ref</em>}' attribute.
121
	 * <!-- begin-user-doc -->
122
	 * <!-- end-user-doc -->
123
	 * @see #getRef()
124
	 * @generated
125
	 * @ordered
126
	 */
127
	protected String ref = REF_EDEFAULT;
128
129
	/**
130
	 * <!-- begin-user-doc -->
131
	 * <!-- end-user-doc -->
132
	 * @generated
133
	 */
134
	protected RegistryImpl() {
135
		super();
136
	}
137
138
	/**
139
	 * <!-- begin-user-doc -->
140
	 * <!-- end-user-doc -->
141
	 * @generated
142
	 */
143
	protected EClass eStaticClass() {
144
		return RegistryPackage.eINSTANCE.getRegistry();
145
	}
146
147
	/**
148
	 * <!-- begin-user-doc -->
149
	 * <!-- end-user-doc -->
150
	 * @generated
151
	 */
152
	public EList getName() {
153
		if (name == null) {
154
			name = new EObjectContainmentEList(Name.class, this, RegistryPackage.REGISTRY__NAME);
155
		}
156
		return name;
157
	}
158
159
	/**
160
	 * <!-- begin-user-doc -->
161
	 * <!-- end-user-doc -->
162
	 * @generated
163
	 */
164
	public EList getDescription() {
165
		if (description == null) {
166
			description = new EObjectContainmentEList(Description.class, this, RegistryPackage.REGISTRY__DESCRIPTION);
167
		}
168
		return description;
169
	}
170
171
	/**
172
	 * <!-- begin-user-doc -->
173
	 * <!-- end-user-doc -->
174
	 * @generated
175
	 */
176
	public String getId() {
177
		return id;
178
	}
179
180
	/**
181
	 * <!-- begin-user-doc -->
182
	 * <!-- end-user-doc -->
183
	 * @generated
184
	 */
185
	public void setId(String newId) {
186
		String oldId = id;
187
		id = newId;
188
		if (eNotificationRequired())
189
			eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.REGISTRY__ID, oldId, id));
190
	}
191
192
	/**
193
	 * <!-- begin-user-doc -->
194
	 * <!-- end-user-doc -->
195
	 * @generated
196
	 */
197
	public String getLocation() {
198
		return location;
199
	}
200
201
	/**
202
	 * <!-- begin-user-doc -->
203
	 * <!-- end-user-doc -->
204
	 * @generated
205
	 */
206
	public void setLocation(String newLocation) {
207
		String oldLocation = location;
208
		location = newLocation;
209
		if (eNotificationRequired())
210
			eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.REGISTRY__LOCATION, oldLocation, location));
211
	}
212
213
	/**
214
	 * <!-- begin-user-doc -->
215
	 * <!-- end-user-doc -->
216
	 * @generated
217
	 */
218
	public String getRef() {
219
		return ref;
220
	}
221
222
	/**
223
	 * <!-- begin-user-doc -->
224
	 * <!-- end-user-doc -->
225
	 * @generated
226
	 */
227
	public void setRef(String newRef) {
228
		String oldRef = ref;
229
		ref = newRef;
230
		if (eNotificationRequired())
231
			eNotify(new ENotificationImpl(this, Notification.SET, RegistryPackage.REGISTRY__REF, oldRef, ref));
232
	}
233
234
	/**
235
	 * <!-- begin-user-doc -->
236
	 * <!-- end-user-doc -->
237
	 * @generated
238
	 */
239
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
240
		if (featureID >= 0) {
241
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
242
				case RegistryPackage.REGISTRY__NAME:
243
					return ((InternalEList)getName()).basicRemove(otherEnd, msgs);
244
				case RegistryPackage.REGISTRY__DESCRIPTION:
245
					return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
246
				default:
247
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
248
			}
249
		}
250
		return eBasicSetContainer(null, featureID, msgs);
251
	}
252
253
	/**
254
	 * <!-- begin-user-doc -->
255
	 * <!-- end-user-doc -->
256
	 * @generated
257
	 */
258
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
259
		switch (eDerivedStructuralFeatureID(eFeature)) {
260
			case RegistryPackage.REGISTRY__NAME:
261
				return getName();
262
			case RegistryPackage.REGISTRY__DESCRIPTION:
263
				return getDescription();
264
			case RegistryPackage.REGISTRY__ID:
265
				return getId();
266
			case RegistryPackage.REGISTRY__LOCATION:
267
				return getLocation();
268
			case RegistryPackage.REGISTRY__REF:
269
				return getRef();
270
		}
271
		return eDynamicGet(eFeature, resolve);
272
	}
273
274
	/**
275
	 * <!-- begin-user-doc -->
276
	 * <!-- end-user-doc -->
277
	 * @generated
278
	 */
279
	public void eSet(EStructuralFeature eFeature, Object newValue) {
280
		switch (eDerivedStructuralFeatureID(eFeature)) {
281
			case RegistryPackage.REGISTRY__NAME:
282
				getName().clear();
283
				getName().addAll((Collection)newValue);
284
				return;
285
			case RegistryPackage.REGISTRY__DESCRIPTION:
286
				getDescription().clear();
287
				getDescription().addAll((Collection)newValue);
288
				return;
289
			case RegistryPackage.REGISTRY__ID:
290
				setId((String)newValue);
291
				return;
292
			case RegistryPackage.REGISTRY__LOCATION:
293
				setLocation((String)newValue);
294
				return;
295
			case RegistryPackage.REGISTRY__REF:
296
				setRef((String)newValue);
297
				return;
298
		}
299
		eDynamicSet(eFeature, newValue);
300
	}
301
302
	/**
303
	 * <!-- begin-user-doc -->
304
	 * <!-- end-user-doc -->
305
	 * @generated
306
	 */
307
	public void eUnset(EStructuralFeature eFeature) {
308
		switch (eDerivedStructuralFeatureID(eFeature)) {
309
			case RegistryPackage.REGISTRY__NAME:
310
				getName().clear();
311
				return;
312
			case RegistryPackage.REGISTRY__DESCRIPTION:
313
				getDescription().clear();
314
				return;
315
			case RegistryPackage.REGISTRY__ID:
316
				setId(ID_EDEFAULT);
317
				return;
318
			case RegistryPackage.REGISTRY__LOCATION:
319
				setLocation(LOCATION_EDEFAULT);
320
				return;
321
			case RegistryPackage.REGISTRY__REF:
322
				setRef(REF_EDEFAULT);
323
				return;
324
		}
325
		eDynamicUnset(eFeature);
326
	}
327
328
	/**
329
	 * <!-- begin-user-doc -->
330
	 * <!-- end-user-doc -->
331
	 * @generated
332
	 */
333
	public boolean eIsSet(EStructuralFeature eFeature) {
334
		switch (eDerivedStructuralFeatureID(eFeature)) {
335
			case RegistryPackage.REGISTRY__NAME:
336
				return name != null && !name.isEmpty();
337
			case RegistryPackage.REGISTRY__DESCRIPTION:
338
				return description != null && !description.isEmpty();
339
			case RegistryPackage.REGISTRY__ID:
340
				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
341
			case RegistryPackage.REGISTRY__LOCATION:
342
				return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
343
			case RegistryPackage.REGISTRY__REF:
344
				return REF_EDEFAULT == null ? ref != null : !REF_EDEFAULT.equals(ref);
345
		}
346
		return eDynamicIsSet(eFeature);
347
	}
348
349
	/**
350
	 * <!-- begin-user-doc -->
351
	 * <!-- end-user-doc -->
352
	 * @generated
353
	 */
354
	public String toString() {
355
		if (eIsProxy()) return super.toString();
356
357
		StringBuffer result = new StringBuffer(super.toString());
358
		result.append(" (id: ");
359
		result.append(id);
360
		result.append(", location: ");
361
		result.append(location);
362
		result.append(", ref: ");
363
		result.append(ref);
364
		result.append(')');
365
		return result.toString();
366
	}
367
368
} //RegistryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/impl/RegistryPackageImpl.java (+586 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.impl;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
import org.eclipse.emf.ecore.impl.EPackageImpl;
15
16
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
17
18
import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl;
19
20
import org.eclipse.wst.ws.internal.model.v10.registry.Description;
21
import org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot;
22
import org.eclipse.wst.ws.internal.model.v10.registry.Name;
23
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryFactory;
24
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
25
26
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
27
28
import org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl;
29
30
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
31
32
import org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl;
33
34
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
35
36
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl;
37
38
/**
39
 * <!-- begin-user-doc -->
40
 * An implementation of the model <b>Package</b>.
41
 * <!-- end-user-doc -->
42
 * @generated
43
 */
44
public class RegistryPackageImpl extends EPackageImpl implements RegistryPackage {
45
	/**
46
	 * <!-- begin-user-doc -->
47
	 * <!-- end-user-doc -->
48
	 * @generated
49
	 */
50
	private EClass descriptionEClass = null;
51
52
	/**
53
	 * <!-- begin-user-doc -->
54
	 * <!-- end-user-doc -->
55
	 * @generated
56
	 */
57
	private EClass documentRootEClass = null;
58
59
	/**
60
	 * <!-- begin-user-doc -->
61
	 * <!-- end-user-doc -->
62
	 * @generated
63
	 */
64
	private EClass nameEClass = null;
65
66
	/**
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @generated
70
	 */
71
	private EClass registryEClass = null;
72
73
	/**
74
	 * Creates an instance of the model <b>Package</b>, registered with
75
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
76
	 * package URI value.
77
	 * <p>Note: the correct way to create the package is via the static
78
	 * factory method {@link #init init()}, which also performs
79
	 * initialization of the package, or returns the registered package,
80
	 * if one already exists.
81
	 * <!-- begin-user-doc -->
82
	 * <!-- end-user-doc -->
83
	 * @see org.eclipse.emf.ecore.EPackage.Registry
84
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage#eNS_URI
85
	 * @see #init()
86
	 * @generated
87
	 */
88
	private RegistryPackageImpl() {
89
		super(eNS_URI, RegistryFactory.eINSTANCE);
90
	}
91
92
	/**
93
	 * <!-- begin-user-doc -->
94
	 * <!-- end-user-doc -->
95
	 * @generated
96
	 */
97
	private static boolean isInited = false;
98
99
	/**
100
	 * Creates, registers, and initializes the <b>Package</b> for this
101
	 * model, and for any others upon which it depends.  Simple
102
	 * dependencies are satisfied by calling this method on all
103
	 * dependent packages before doing anything else.  This method drives
104
	 * initialization for interdependent packages directly, in parallel
105
	 * with this package, itself.
106
	 * <p>Of this package and its interdependencies, all packages which
107
	 * have not yet been registered by their URI values are first created
108
	 * and registered.  The packages are then initialized in two steps:
109
	 * meta-model objects for all of the packages are created before any
110
	 * are initialized, since one package's meta-model objects may refer to
111
	 * those of another.
112
	 * <p>Invocation of this method will not affect any packages that have
113
	 * already been initialized.
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @see #eNS_URI
117
	 * @see #createPackageContents()
118
	 * @see #initializePackageContents()
119
	 * @generated
120
	 */
121
	public static RegistryPackage init() {
122
		if (isInited) return (RegistryPackage)EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI);
123
124
		// Obtain or create and register package
125
		RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new RegistryPackageImpl());
126
127
		isInited = true;
128
129
		// Initialize simple dependencies
130
		XMLTypePackageImpl.init();
131
132
		// Obtain or create and register interdependencies
133
		TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) : TaxonomyPackageImpl.eINSTANCE);
134
		RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) : RTIndexPackageImpl.eINSTANCE);
135
		UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) : UDDIRegistryPackageImpl.eINSTANCE);
136
137
		// Create package meta-data objects
138
		theRegistryPackage.createPackageContents();
139
		theTaxonomyPackage.createPackageContents();
140
		theRTIndexPackage.createPackageContents();
141
		theUDDIRegistryPackage.createPackageContents();
142
143
		// Initialize created meta-data
144
		theRegistryPackage.initializePackageContents();
145
		theTaxonomyPackage.initializePackageContents();
146
		theRTIndexPackage.initializePackageContents();
147
		theUDDIRegistryPackage.initializePackageContents();
148
149
		// Mark meta-data to indicate it can't be changed
150
		theRegistryPackage.freeze();
151
152
		return theRegistryPackage;
153
	}
154
155
	/**
156
	 * <!-- begin-user-doc -->
157
	 * <!-- end-user-doc -->
158
	 * @generated
159
	 */
160
	public EClass getDescription() {
161
		return descriptionEClass;
162
	}
163
164
	/**
165
	 * <!-- begin-user-doc -->
166
	 * <!-- end-user-doc -->
167
	 * @generated
168
	 */
169
	public EAttribute getDescription_Value() {
170
		return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0);
171
	}
172
173
	/**
174
	 * <!-- begin-user-doc -->
175
	 * <!-- end-user-doc -->
176
	 * @generated
177
	 */
178
	public EAttribute getDescription_Lang() {
179
		return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1);
180
	}
181
182
	/**
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @generated
186
	 */
187
	public EClass getDocumentRoot() {
188
		return documentRootEClass;
189
	}
190
191
	/**
192
	 * <!-- begin-user-doc -->
193
	 * <!-- end-user-doc -->
194
	 * @generated
195
	 */
196
	public EAttribute getDocumentRoot_Mixed() {
197
		return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
198
	}
199
200
	/**
201
	 * <!-- begin-user-doc -->
202
	 * <!-- end-user-doc -->
203
	 * @generated
204
	 */
205
	public EReference getDocumentRoot_XMLNSPrefixMap() {
206
		return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
207
	}
208
209
	/**
210
	 * <!-- begin-user-doc -->
211
	 * <!-- end-user-doc -->
212
	 * @generated
213
	 */
214
	public EReference getDocumentRoot_XSISchemaLocation() {
215
		return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
216
	}
217
218
	/**
219
	 * <!-- begin-user-doc -->
220
	 * <!-- end-user-doc -->
221
	 * @generated
222
	 */
223
	public EReference getDocumentRoot_Description() {
224
		return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
225
	}
226
227
	/**
228
	 * <!-- begin-user-doc -->
229
	 * <!-- end-user-doc -->
230
	 * @generated
231
	 */
232
	public EReference getDocumentRoot_Name() {
233
		return (EReference)documentRootEClass.getEStructuralFeatures().get(4);
234
	}
235
236
	/**
237
	 * <!-- begin-user-doc -->
238
	 * <!-- end-user-doc -->
239
	 * @generated
240
	 */
241
	public EReference getDocumentRoot_Registry() {
242
		return (EReference)documentRootEClass.getEStructuralFeatures().get(5);
243
	}
244
245
	/**
246
	 * <!-- begin-user-doc -->
247
	 * <!-- end-user-doc -->
248
	 * @generated
249
	 */
250
	public EClass getName_() {
251
		return nameEClass;
252
	}
253
254
	/**
255
	 * <!-- begin-user-doc -->
256
	 * <!-- end-user-doc -->
257
	 * @generated
258
	 */
259
	public EAttribute getName_Value() {
260
		return (EAttribute)nameEClass.getEStructuralFeatures().get(0);
261
	}
262
263
	/**
264
	 * <!-- begin-user-doc -->
265
	 * <!-- end-user-doc -->
266
	 * @generated
267
	 */
268
	public EAttribute getName_Lang() {
269
		return (EAttribute)nameEClass.getEStructuralFeatures().get(1);
270
	}
271
272
	/**
273
	 * <!-- begin-user-doc -->
274
	 * <!-- end-user-doc -->
275
	 * @generated
276
	 */
277
	public EClass getRegistry() {
278
		return registryEClass;
279
	}
280
281
	/**
282
	 * <!-- begin-user-doc -->
283
	 * <!-- end-user-doc -->
284
	 * @generated
285
	 */
286
	public EReference getRegistry_Name() {
287
		return (EReference)registryEClass.getEStructuralFeatures().get(0);
288
	}
289
290
	/**
291
	 * <!-- begin-user-doc -->
292
	 * <!-- end-user-doc -->
293
	 * @generated
294
	 */
295
	public EReference getRegistry_Description() {
296
		return (EReference)registryEClass.getEStructuralFeatures().get(1);
297
	}
298
299
	/**
300
	 * <!-- begin-user-doc -->
301
	 * <!-- end-user-doc -->
302
	 * @generated
303
	 */
304
	public EAttribute getRegistry_Id() {
305
		return (EAttribute)registryEClass.getEStructuralFeatures().get(2);
306
	}
307
308
	/**
309
	 * <!-- begin-user-doc -->
310
	 * <!-- end-user-doc -->
311
	 * @generated
312
	 */
313
	public EAttribute getRegistry_Location() {
314
		return (EAttribute)registryEClass.getEStructuralFeatures().get(3);
315
	}
316
317
	/**
318
	 * <!-- begin-user-doc -->
319
	 * <!-- end-user-doc -->
320
	 * @generated
321
	 */
322
	public EAttribute getRegistry_Ref() {
323
		return (EAttribute)registryEClass.getEStructuralFeatures().get(4);
324
	}
325
326
	/**
327
	 * <!-- begin-user-doc -->
328
	 * <!-- end-user-doc -->
329
	 * @generated
330
	 */
331
	public RegistryFactory getRegistryFactory() {
332
		return (RegistryFactory)getEFactoryInstance();
333
	}
334
335
	/**
336
	 * <!-- begin-user-doc -->
337
	 * <!-- end-user-doc -->
338
	 * @generated
339
	 */
340
	private boolean isCreated = false;
341
342
	/**
343
	 * Creates the meta-model objects for the package.  This method is
344
	 * guarded to have no affect on any invocation but its first.
345
	 * <!-- begin-user-doc -->
346
	 * <!-- end-user-doc -->
347
	 * @generated
348
	 */
349
	public void createPackageContents() {
350
		if (isCreated) return;
351
		isCreated = true;
352
353
		// Create classes and their features
354
		descriptionEClass = createEClass(DESCRIPTION);
355
		createEAttribute(descriptionEClass, DESCRIPTION__VALUE);
356
		createEAttribute(descriptionEClass, DESCRIPTION__LANG);
357
358
		documentRootEClass = createEClass(DOCUMENT_ROOT);
359
		createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
360
		createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
361
		createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
362
		createEReference(documentRootEClass, DOCUMENT_ROOT__DESCRIPTION);
363
		createEReference(documentRootEClass, DOCUMENT_ROOT__NAME);
364
		createEReference(documentRootEClass, DOCUMENT_ROOT__REGISTRY);
365
366
		nameEClass = createEClass(NAME);
367
		createEAttribute(nameEClass, NAME__VALUE);
368
		createEAttribute(nameEClass, NAME__LANG);
369
370
		registryEClass = createEClass(REGISTRY);
371
		createEReference(registryEClass, REGISTRY__NAME);
372
		createEReference(registryEClass, REGISTRY__DESCRIPTION);
373
		createEAttribute(registryEClass, REGISTRY__ID);
374
		createEAttribute(registryEClass, REGISTRY__LOCATION);
375
		createEAttribute(registryEClass, REGISTRY__REF);
376
	}
377
378
	/**
379
	 * <!-- begin-user-doc -->
380
	 * <!-- end-user-doc -->
381
	 * @generated
382
	 */
383
	private boolean isInitialized = false;
384
385
	/**
386
	 * Complete the initialization of the package and its meta-model.  This
387
	 * method is guarded to have no affect on any invocation but its first.
388
	 * <!-- begin-user-doc -->
389
	 * <!-- end-user-doc -->
390
	 * @generated
391
	 */
392
	public void initializePackageContents() {
393
		if (isInitialized) return;
394
		isInitialized = true;
395
396
		// Initialize package
397
		setName(eNAME);
398
		setNsPrefix(eNS_PREFIX);
399
		setNsURI(eNS_URI);
400
401
		// Obtain other dependent packages
402
		XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
403
404
		// Add supertypes to classes
405
406
		// Initialize classes and features; add operations and parameters
407
		initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
408
		initEAttribute(getDescription_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
409
		initEAttribute(getDescription_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
410
411
		initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
412
		initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
413
		initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
414
		initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
415
		initEReference(getDocumentRoot_Description(), this.getDescription(), null, "description", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
416
		initEReference(getDocumentRoot_Name(), this.getName_(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
417
		initEReference(getDocumentRoot_Registry(), this.getRegistry(), null, "registry", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
418
419
		initEClass(nameEClass, Name.class, "Name", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
420
		initEAttribute(getName_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
421
		initEAttribute(getName_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
422
423
		initEClass(registryEClass, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, "Registry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
424
		initEReference(getRegistry_Name(), this.getName_(), null, "name", null, 1, -1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
425
		initEReference(getRegistry_Description(), this.getDescription(), null, "description", null, 1, -1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
426
		initEAttribute(getRegistry_Id(), theXMLTypePackage.getAnyURI(), "id", null, 1, 1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
427
		initEAttribute(getRegistry_Location(), theXMLTypePackage.getAnyURI(), "location", null, 0, 1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
428
		initEAttribute(getRegistry_Ref(), theXMLTypePackage.getAnyURI(), "ref", null, 0, 1, org.eclipse.wst.ws.internal.model.v10.registry.Registry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
429
430
		// Create resource
431
		createResource(eNS_URI);
432
433
		// Create annotations
434
		// http:///org/eclipse/emf/ecore/util/ExtendedMetaData
435
		createExtendedMetaDataAnnotations();
436
	}
437
438
	/**
439
	 * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
440
	 * <!-- begin-user-doc -->
441
	 * <!-- end-user-doc -->
442
	 * @generated
443
	 */
444
	protected void createExtendedMetaDataAnnotations() {
445
		String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";			
446
		addAnnotation
447
		  (descriptionEClass, 
448
		   source, 
449
		   new String[] {
450
			 "name", "Description",
451
			 "kind", "simple"
452
		   });		
453
		addAnnotation
454
		  (getDescription_Value(), 
455
		   source, 
456
		   new String[] {
457
			 "name", ":0",
458
			 "kind", "simple"
459
		   });		
460
		addAnnotation
461
		  (getDescription_Lang(), 
462
		   source, 
463
		   new String[] {
464
			 "kind", "attribute",
465
			 "name", "lang",
466
			 "namespace", "http://www.w3.org/XML/1998/namespace"
467
		   });		
468
		addAnnotation
469
		  (documentRootEClass, 
470
		   source, 
471
		   new String[] {
472
			 "name", "",
473
			 "kind", "mixed"
474
		   });		
475
		addAnnotation
476
		  (getDocumentRoot_Mixed(), 
477
		   source, 
478
		   new String[] {
479
			 "kind", "elementWildcard",
480
			 "name", ":mixed"
481
		   });		
482
		addAnnotation
483
		  (getDocumentRoot_XMLNSPrefixMap(), 
484
		   source, 
485
		   new String[] {
486
			 "kind", "attribute",
487
			 "name", "xmlns:prefix"
488
		   });		
489
		addAnnotation
490
		  (getDocumentRoot_XSISchemaLocation(), 
491
		   source, 
492
		   new String[] {
493
			 "kind", "attribute",
494
			 "name", "xsi:schemaLocation"
495
		   });		
496
		addAnnotation
497
		  (getDocumentRoot_Description(), 
498
		   source, 
499
		   new String[] {
500
			 "kind", "element",
501
			 "name", "description",
502
			 "namespace", "##targetNamespace"
503
		   });		
504
		addAnnotation
505
		  (getDocumentRoot_Name(), 
506
		   source, 
507
		   new String[] {
508
			 "kind", "element",
509
			 "name", "name",
510
			 "namespace", "##targetNamespace"
511
		   });		
512
		addAnnotation
513
		  (getDocumentRoot_Registry(), 
514
		   source, 
515
		   new String[] {
516
			 "kind", "element",
517
			 "name", "registry",
518
			 "namespace", "##targetNamespace"
519
		   });		
520
		addAnnotation
521
		  (nameEClass, 
522
		   source, 
523
		   new String[] {
524
			 "name", "Name",
525
			 "kind", "simple"
526
		   });		
527
		addAnnotation
528
		  (getName_Value(), 
529
		   source, 
530
		   new String[] {
531
			 "name", ":0",
532
			 "kind", "simple"
533
		   });		
534
		addAnnotation
535
		  (getName_Lang(), 
536
		   source, 
537
		   new String[] {
538
			 "kind", "attribute",
539
			 "name", "lang",
540
			 "namespace", "http://www.w3.org/XML/1998/namespace"
541
		   });		
542
		addAnnotation
543
		  (registryEClass, 
544
		   source, 
545
		   new String[] {
546
			 "name", "Registry",
547
			 "kind", "elementOnly"
548
		   });		
549
		addAnnotation
550
		  (getRegistry_Name(), 
551
		   source, 
552
		   new String[] {
553
			 "kind", "element",
554
			 "name", "name"
555
		   });		
556
		addAnnotation
557
		  (getRegistry_Description(), 
558
		   source, 
559
		   new String[] {
560
			 "kind", "element",
561
			 "name", "description"
562
		   });		
563
		addAnnotation
564
		  (getRegistry_Id(), 
565
		   source, 
566
		   new String[] {
567
			 "kind", "attribute",
568
			 "name", "id"
569
		   });		
570
		addAnnotation
571
		  (getRegistry_Location(), 
572
		   source, 
573
		   new String[] {
574
			 "kind", "attribute",
575
			 "name", "location"
576
		   });		
577
		addAnnotation
578
		  (getRegistry_Ref(), 
579
		   source, 
580
		   new String[] {
581
			 "kind", "attribute",
582
			 "name", "ref"
583
		   });
584
	}
585
586
} //RegistryPackageImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryAdapterFactory.java (+171 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.util;
8
9
import org.eclipse.emf.common.notify.Adapter;
10
import org.eclipse.emf.common.notify.Notifier;
11
12
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13
14
import org.eclipse.emf.ecore.EObject;
15
16
import org.eclipse.wst.ws.internal.model.v10.registry.*;
17
18
/**
19
 * <!-- begin-user-doc -->
20
 * The <b>Adapter Factory</b> for the model.
21
 * It provides an adapter <code>createXXX</code> method for each class of the model.
22
 * <!-- end-user-doc -->
23
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage
24
 * @generated
25
 */
26
public class RegistryAdapterFactory extends AdapterFactoryImpl {
27
	/**
28
	 * The cached model package.
29
	 * <!-- begin-user-doc -->
30
	 * <!-- end-user-doc -->
31
	 * @generated
32
	 */
33
	protected static RegistryPackage modelPackage;
34
35
	/**
36
	 * Creates an instance of the adapter factory.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @generated
40
	 */
41
	public RegistryAdapterFactory() {
42
		if (modelPackage == null) {
43
			modelPackage = RegistryPackage.eINSTANCE;
44
		}
45
	}
46
47
	/**
48
	 * Returns whether this factory is applicable for the type of the object.
49
	 * <!-- begin-user-doc -->
50
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
51
	 * <!-- end-user-doc -->
52
	 * @return whether this factory is applicable for the type of the object.
53
	 * @generated
54
	 */
55
	public boolean isFactoryForType(Object object) {
56
		if (object == modelPackage) {
57
			return true;
58
		}
59
		if (object instanceof EObject) {
60
			return ((EObject)object).eClass().getEPackage() == modelPackage;
61
		}
62
		return false;
63
	}
64
65
	/**
66
	 * The switch the delegates to the <code>createXXX</code> methods.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @generated
70
	 */
71
	protected RegistrySwitch modelSwitch =
72
		new RegistrySwitch() {
73
			public Object caseDescription(Description object) {
74
				return createDescriptionAdapter();
75
			}
76
			public Object caseDocumentRoot(DocumentRoot object) {
77
				return createDocumentRootAdapter();
78
			}
79
			public Object caseName(Name object) {
80
				return createNameAdapter();
81
			}
82
			public Object caseRegistry(Registry object) {
83
				return createRegistryAdapter();
84
			}
85
			public Object defaultCase(EObject object) {
86
				return createEObjectAdapter();
87
			}
88
		};
89
90
	/**
91
	 * Creates an adapter for the <code>target</code>.
92
	 * <!-- begin-user-doc -->
93
	 * <!-- end-user-doc -->
94
	 * @param target the object to adapt.
95
	 * @return the adapter for the <code>target</code>.
96
	 * @generated
97
	 */
98
	public Adapter createAdapter(Notifier target) {
99
		return (Adapter)modelSwitch.doSwitch((EObject)target);
100
	}
101
102
103
	/**
104
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Description <em>Description</em>}'.
105
	 * <!-- begin-user-doc -->
106
	 * This default implementation returns null so that we can easily ignore cases;
107
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
108
	 * <!-- end-user-doc -->
109
	 * @return the new adapter.
110
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Description
111
	 * @generated
112
	 */
113
	public Adapter createDescriptionAdapter() {
114
		return null;
115
	}
116
117
	/**
118
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot <em>Document Root</em>}'.
119
	 * <!-- begin-user-doc -->
120
	 * This default implementation returns null so that we can easily ignore cases;
121
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
122
	 * <!-- end-user-doc -->
123
	 * @return the new adapter.
124
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot
125
	 * @generated
126
	 */
127
	public Adapter createDocumentRootAdapter() {
128
		return null;
129
	}
130
131
	/**
132
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Name <em>Name</em>}'.
133
	 * <!-- begin-user-doc -->
134
	 * This default implementation returns null so that we can easily ignore cases;
135
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
136
	 * <!-- end-user-doc -->
137
	 * @return the new adapter.
138
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Name
139
	 * @generated
140
	 */
141
	public Adapter createNameAdapter() {
142
		return null;
143
	}
144
145
	/**
146
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry <em>Registry</em>}'.
147
	 * <!-- begin-user-doc -->
148
	 * This default implementation returns null so that we can easily ignore cases;
149
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
	 * <!-- end-user-doc -->
151
	 * @return the new adapter.
152
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry
153
	 * @generated
154
	 */
155
	public Adapter createRegistryAdapter() {
156
		return null;
157
	}
158
159
	/**
160
	 * Creates a new adapter for the default case.
161
	 * <!-- begin-user-doc -->
162
	 * This default implementation returns null.
163
	 * <!-- end-user-doc -->
164
	 * @return the new adapter.
165
	 * @generated
166
	 */
167
	public Adapter createEObjectAdapter() {
168
		return null;
169
	}
170
171
} //RegistryAdapterFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceFactoryImpl.java (+63 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.resource.Resource;
12
13
import org.eclipse.emf.ecore.util.ExtendedMetaData;
14
15
import org.eclipse.emf.ecore.xmi.XMLResource;
16
17
import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl;
18
19
/**
20
 * <!-- begin-user-doc -->
21
 * The <b>Resource Factory</b> associated with the package.
22
 * <!-- end-user-doc -->
23
 * @see org.eclipse.wst.ws.internal.model.v10.registry.util.RegistryResourceImpl
24
 * @generated
25
 */
26
public class RegistryResourceFactoryImpl extends XMLResourceFactoryImpl {
27
	/**
28
	 * <!-- begin-user-doc -->
29
	 * <!-- end-user-doc -->
30
	 * @generated
31
	 */
32
	protected ExtendedMetaData extendedMetaData;
33
34
	/**
35
	 * Creates an instance of the resource factory.
36
	 * <!-- begin-user-doc -->
37
	 * <!-- end-user-doc -->
38
	 * @generated
39
	 */
40
	public RegistryResourceFactoryImpl() {
41
		super();
42
		extendedMetaData = ExtendedMetaData.INSTANCE;
43
	}
44
45
	/**
46
	 * Creates an instance of the resource.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @generated
50
	 */
51
	public Resource createResource(URI uri) {
52
		XMLResource result = new RegistryResourceImpl(uri);
53
		result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
54
		result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
55
56
		result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
57
		result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
58
59
		result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
60
		return result;
61
	}
62
63
} //RegistryResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistryResourceImpl.java (+32 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * The <b>Resource </b> associated with the package.
16
 * <!-- end-user-doc -->
17
 * @see org.eclipse.wst.ws.internal.model.v10.registry.util.RegistryResourceFactoryImpl
18
 * @generated
19
 */
20
public class RegistryResourceImpl extends XMLResourceImpl {
21
	/**
22
	 * Creates an instance of the resource.
23
	 * <!-- begin-user-doc -->
24
	 * <!-- end-user-doc -->
25
	 * @param uri the URI of the new resource.
26
	 * @generated
27
	 */
28
	public RegistryResourceImpl(URI uri) {
29
		super(uri);
30
	}
31
32
} //RegistryResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/registry/util/RegistrySwitch.java (+193 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.registry.util;
8
9
import java.util.List;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EObject;
13
14
import org.eclipse.wst.ws.internal.model.v10.registry.*;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * The <b>Switch</b> for the model's inheritance hierarchy.
19
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
20
 * to invoke the <code>caseXXX</code> method for each class of the model,
21
 * starting with the actual class of the object
22
 * and proceeding up the inheritance hierarchy
23
 * until a non-null result is returned,
24
 * which is the result of the switch.
25
 * <!-- end-user-doc -->
26
 * @see org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage
27
 * @generated
28
 */
29
public class RegistrySwitch {
30
	/**
31
	 * The cached model package
32
	 * <!-- begin-user-doc -->
33
	 * <!-- end-user-doc -->
34
	 * @generated
35
	 */
36
	protected static RegistryPackage modelPackage;
37
38
	/**
39
	 * Creates an instance of the switch.
40
	 * <!-- begin-user-doc -->
41
	 * <!-- end-user-doc -->
42
	 * @generated
43
	 */
44
	public RegistrySwitch() {
45
		if (modelPackage == null) {
46
			modelPackage = RegistryPackage.eINSTANCE;
47
		}
48
	}
49
50
	/**
51
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
52
	 * <!-- begin-user-doc -->
53
	 * <!-- end-user-doc -->
54
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
55
	 * @generated
56
	 */
57
	public Object doSwitch(EObject theEObject) {
58
		return doSwitch(theEObject.eClass(), theEObject);
59
	}
60
61
	/**
62
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
63
	 * <!-- begin-user-doc -->
64
	 * <!-- end-user-doc -->
65
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
66
	 * @generated
67
	 */
68
	protected Object doSwitch(EClass theEClass, EObject theEObject) {
69
		if (theEClass.eContainer() == modelPackage) {
70
			return doSwitch(theEClass.getClassifierID(), theEObject);
71
		}
72
		else {
73
			List eSuperTypes = theEClass.getESuperTypes();
74
			return
75
				eSuperTypes.isEmpty() ?
76
					defaultCase(theEObject) :
77
					doSwitch((EClass)eSuperTypes.get(0), theEObject);
78
		}
79
	}
80
81
	/**
82
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
83
	 * <!-- begin-user-doc -->
84
	 * <!-- end-user-doc -->
85
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
86
	 * @generated
87
	 */
88
	protected Object doSwitch(int classifierID, EObject theEObject) {
89
		switch (classifierID) {
90
			case RegistryPackage.DESCRIPTION: {
91
				Description description = (Description)theEObject;
92
				Object result = caseDescription(description);
93
				if (result == null) result = defaultCase(theEObject);
94
				return result;
95
			}
96
			case RegistryPackage.DOCUMENT_ROOT: {
97
				DocumentRoot documentRoot = (DocumentRoot)theEObject;
98
				Object result = caseDocumentRoot(documentRoot);
99
				if (result == null) result = defaultCase(theEObject);
100
				return result;
101
			}
102
			case RegistryPackage.NAME: {
103
				Name name = (Name)theEObject;
104
				Object result = caseName(name);
105
				if (result == null) result = defaultCase(theEObject);
106
				return result;
107
			}
108
			case RegistryPackage.REGISTRY: {
109
				Registry registry = (Registry)theEObject;
110
				Object result = caseRegistry(registry);
111
				if (result == null) result = defaultCase(theEObject);
112
				return result;
113
			}
114
			default: return defaultCase(theEObject);
115
		}
116
	}
117
118
	/**
119
	 * Returns the result of interpretting the object as an instance of '<em>Description</em>'.
120
	 * <!-- begin-user-doc -->
121
	 * This implementation returns null;
122
	 * returning a non-null result will terminate the switch.
123
	 * <!-- end-user-doc -->
124
	 * @param object the target of the switch.
125
	 * @return the result of interpretting the object as an instance of '<em>Description</em>'.
126
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
127
	 * @generated
128
	 */
129
	public Object caseDescription(Description object) {
130
		return null;
131
	}
132
133
	/**
134
	 * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
135
	 * <!-- begin-user-doc -->
136
	 * This implementation returns null;
137
	 * returning a non-null result will terminate the switch.
138
	 * <!-- end-user-doc -->
139
	 * @param object the target of the switch.
140
	 * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
141
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
142
	 * @generated
143
	 */
144
	public Object caseDocumentRoot(DocumentRoot object) {
145
		return null;
146
	}
147
148
	/**
149
	 * Returns the result of interpretting the object as an instance of '<em>Name</em>'.
150
	 * <!-- begin-user-doc -->
151
	 * This implementation returns null;
152
	 * returning a non-null result will terminate the switch.
153
	 * <!-- end-user-doc -->
154
	 * @param object the target of the switch.
155
	 * @return the result of interpretting the object as an instance of '<em>Name</em>'.
156
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
157
	 * @generated
158
	 */
159
	public Object caseName(Name object) {
160
		return null;
161
	}
162
163
	/**
164
	 * Returns the result of interpretting the object as an instance of '<em>Registry</em>'.
165
	 * <!-- begin-user-doc -->
166
	 * This implementation returns null;
167
	 * returning a non-null result will terminate the switch.
168
	 * <!-- end-user-doc -->
169
	 * @param object the target of the switch.
170
	 * @return the result of interpretting the object as an instance of '<em>Registry</em>'.
171
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
172
	 * @generated
173
	 */
174
	public Object caseRegistry(Registry object) {
175
		return null;
176
	}
177
178
	/**
179
	 * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
180
	 * <!-- begin-user-doc -->
181
	 * This implementation returns null;
182
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
183
	 * <!-- end-user-doc -->
184
	 * @param object the target of the switch.
185
	 * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
186
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
187
	 * @generated
188
	 */
189
	public Object defaultCase(EObject object) {
190
		return null;
191
	}
192
193
} //RegistrySwitch
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/Description.java (+81 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex;
8
9
import org.eclipse.emf.ecore.EObject;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * A representation of the model object '<em><b>Description</b></em>'.
14
 * <!-- end-user-doc -->
15
 *
16
 * <p>
17
 * The following features are supported:
18
 * <ul>
19
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue <em>Value</em>}</li>
20
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang <em>Lang</em>}</li>
21
 * </ul>
22
 * </p>
23
 *
24
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDescription()
25
 * @model 
26
 * @generated
27
 */
28
public interface Description extends EObject {
29
	/**
30
	 * Returns the value of the '<em><b>Value</b></em>' attribute.
31
	 * <!-- begin-user-doc -->
32
	 * <p>
33
	 * If the meaning of the '<em>Value</em>' attribute isn't clear,
34
	 * there really should be more of a description here...
35
	 * </p>
36
	 * <!-- end-user-doc -->
37
	 * @return the value of the '<em>Value</em>' attribute.
38
	 * @see #setValue(String)
39
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDescription_Value()
40
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
41
	 * @generated
42
	 */
43
	String getValue();
44
45
	/**
46
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @param value the new value of the '<em>Value</em>' attribute.
50
	 * @see #getValue()
51
	 * @generated
52
	 */
53
	void setValue(String value);
54
55
	/**
56
	 * Returns the value of the '<em><b>Lang</b></em>' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>Lang</em>' attribute isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>Lang</em>' attribute.
64
	 * @see #setLang(String)
65
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDescription_Lang()
66
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language"
67
	 * @generated
68
	 */
69
	String getLang();
70
71
	/**
72
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang <em>Lang</em>}' attribute.
73
	 * <!-- begin-user-doc -->
74
	 * <!-- end-user-doc -->
75
	 * @param value the new value of the '<em>Lang</em>' attribute.
76
	 * @see #getLang()
77
	 * @generated
78
	 */
79
	void setLang(String value);
80
81
} // Description
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/DocumentRoot.java (+165 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex;
8
9
import org.eclipse.emf.common.util.EMap;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
import org.eclipse.emf.ecore.util.FeatureMap;
14
15
/**
16
 * <!-- begin-user-doc -->
17
 * A representation of the model object '<em><b>Document Root</b></em>'.
18
 * <!-- end-user-doc -->
19
 *
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getMixed <em>Mixed</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
25
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
26
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription <em>Description</em>}</li>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex <em>Index</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName <em>Name</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot()
33
 * @model 
34
 * @generated
35
 */
36
public interface DocumentRoot extends EObject {
37
	/**
38
	 * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
39
	 * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
40
	 * <!-- begin-user-doc -->
41
	 * <p>
42
	 * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
43
	 * there really should be more of a description here...
44
	 * </p>
45
	 * <!-- end-user-doc -->
46
	 * @return the value of the '<em>Mixed</em>' attribute list.
47
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Mixed()
48
	 * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
49
	 * @generated
50
	 */
51
	FeatureMap getMixed();
52
53
	/**
54
	 * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
55
	 * The key is of type {@link java.lang.String},
56
	 * and the value is of type {@link java.lang.String},
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>XMLNS Prefix Map</em>' map.
64
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_XMLNSPrefixMap()
65
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
66
	 * @generated
67
	 */
68
	EMap getXMLNSPrefixMap();
69
70
	/**
71
	 * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
72
	 * The key is of type {@link java.lang.String},
73
	 * and the value is of type {@link java.lang.String},
74
	 * <!-- begin-user-doc -->
75
	 * <p>
76
	 * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
77
	 * there really should be more of a description here...
78
	 * </p>
79
	 * <!-- end-user-doc -->
80
	 * @return the value of the '<em>XSI Schema Location</em>' map.
81
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_XSISchemaLocation()
82
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
83
	 * @generated
84
	 */
85
	EMap getXSISchemaLocation();
86
87
	/**
88
	 * Returns the value of the '<em><b>Description</b></em>' containment reference.
89
	 * <!-- begin-user-doc -->
90
	 * <p>
91
	 * If the meaning of the '<em>Description</em>' containment reference isn't clear,
92
	 * there really should be more of a description here...
93
	 * </p>
94
	 * <!-- end-user-doc -->
95
	 * @return the value of the '<em>Description</em>' containment reference.
96
	 * @see #setDescription(Description)
97
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Description()
98
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
99
	 * @generated
100
	 */
101
	Description getDescription();
102
103
	/**
104
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription <em>Description</em>}' containment reference.
105
	 * <!-- begin-user-doc -->
106
	 * <!-- end-user-doc -->
107
	 * @param value the new value of the '<em>Description</em>' containment reference.
108
	 * @see #getDescription()
109
	 * @generated
110
	 */
111
	void setDescription(Description value);
112
113
	/**
114
	 * Returns the value of the '<em><b>Index</b></em>' containment reference.
115
	 * <!-- begin-user-doc -->
116
	 * <p>
117
	 * If the meaning of the '<em>Index</em>' containment reference isn't clear,
118
	 * there really should be more of a description here...
119
	 * </p>
120
	 * <!-- end-user-doc -->
121
	 * @return the value of the '<em>Index</em>' containment reference.
122
	 * @see #setIndex(Index)
123
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Index()
124
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
125
	 * @generated
126
	 */
127
	Index getIndex();
128
129
	/**
130
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex <em>Index</em>}' containment reference.
131
	 * <!-- begin-user-doc -->
132
	 * <!-- end-user-doc -->
133
	 * @param value the new value of the '<em>Index</em>' containment reference.
134
	 * @see #getIndex()
135
	 * @generated
136
	 */
137
	void setIndex(Index value);
138
139
	/**
140
	 * Returns the value of the '<em><b>Name</b></em>' containment reference.
141
	 * <!-- begin-user-doc -->
142
	 * <p>
143
	 * If the meaning of the '<em>Name</em>' containment reference isn't clear,
144
	 * there really should be more of a description here...
145
	 * </p>
146
	 * <!-- end-user-doc -->
147
	 * @return the value of the '<em>Name</em>' containment reference.
148
	 * @see #setName(Name)
149
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getDocumentRoot_Name()
150
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
151
	 * @generated
152
	 */
153
	Name getName();
154
155
	/**
156
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName <em>Name</em>}' containment reference.
157
	 * <!-- begin-user-doc -->
158
	 * <!-- end-user-doc -->
159
	 * @param value the new value of the '<em>Name</em>' containment reference.
160
	 * @see #getName()
161
	 * @generated
162
	 */
163
	void setName(Name value);
164
165
} // DocumentRoot
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/Index.java (+97 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex;
8
9
import org.eclipse.emf.common.util.EList;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * A representation of the model object '<em><b>Index</b></em>'.
16
 * <!-- end-user-doc -->
17
 *
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getName <em>Name</em>}</li>
22
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getDescription <em>Description</em>}</li>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getRegistry <em>Registry</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getTaxonomy <em>Taxonomy</em>}</li>
25
 * </ul>
26
 * </p>
27
 *
28
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex()
29
 * @model 
30
 * @generated
31
 */
32
public interface Index extends EObject {
33
	/**
34
	 * Returns the value of the '<em><b>Name</b></em>' containment reference list.
35
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name}.
36
	 * <!-- begin-user-doc -->
37
	 * <p>
38
	 * If the meaning of the '<em>Name</em>' containment reference list isn't clear,
39
	 * there really should be more of a description here...
40
	 * </p>
41
	 * <!-- end-user-doc -->
42
	 * @return the value of the '<em>Name</em>' containment reference list.
43
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Name()
44
	 * @model type="org.eclipse.wst.ws.internal.model.v10.rtindex.Name" containment="true" resolveProxies="false" required="true"
45
	 * @generated
46
	 */
47
	EList getName();
48
49
	/**
50
	 * Returns the value of the '<em><b>Description</b></em>' containment reference list.
51
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description}.
52
	 * <!-- begin-user-doc -->
53
	 * <p>
54
	 * If the meaning of the '<em>Description</em>' containment reference list isn't clear,
55
	 * there really should be more of a description here...
56
	 * </p>
57
	 * <!-- end-user-doc -->
58
	 * @return the value of the '<em>Description</em>' containment reference list.
59
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Description()
60
	 * @model type="org.eclipse.wst.ws.internal.model.v10.rtindex.Description" containment="true" resolveProxies="false" required="true"
61
	 * @generated
62
	 */
63
	EList getDescription();
64
65
	/**
66
	 * Returns the value of the '<em><b>Registry</b></em>' containment reference list.
67
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.registry.Registry}.
68
	 * <!-- begin-user-doc -->
69
	 * <p>
70
	 * If the meaning of the '<em>Registry</em>' containment reference list isn't clear,
71
	 * there really should be more of a description here...
72
	 * </p>
73
	 * <!-- end-user-doc -->
74
	 * @return the value of the '<em>Registry</em>' containment reference list.
75
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Registry()
76
	 * @model type="org.eclipse.wst.ws.internal.model.v10.registry.Registry" containment="true" resolveProxies="false"
77
	 * @generated
78
	 */
79
	EList getRegistry();
80
81
	/**
82
	 * Returns the value of the '<em><b>Taxonomy</b></em>' containment reference list.
83
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy}.
84
	 * <!-- begin-user-doc -->
85
	 * <p>
86
	 * If the meaning of the '<em>Taxonomy</em>' containment reference list isn't clear,
87
	 * there really should be more of a description here...
88
	 * </p>
89
	 * <!-- end-user-doc -->
90
	 * @return the value of the '<em>Taxonomy</em>' containment reference list.
91
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getIndex_Taxonomy()
92
	 * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy" containment="true" resolveProxies="false"
93
	 * @generated
94
	 */
95
	EList getTaxonomy();
96
97
} // Index
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/Name.java (+81 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex;
8
9
import org.eclipse.emf.ecore.EObject;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * A representation of the model object '<em><b>Name</b></em>'.
14
 * <!-- end-user-doc -->
15
 *
16
 * <p>
17
 * The following features are supported:
18
 * <ul>
19
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue <em>Value</em>}</li>
20
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang <em>Lang</em>}</li>
21
 * </ul>
22
 * </p>
23
 *
24
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getName_()
25
 * @model 
26
 * @generated
27
 */
28
public interface Name extends EObject {
29
	/**
30
	 * Returns the value of the '<em><b>Value</b></em>' attribute.
31
	 * <!-- begin-user-doc -->
32
	 * <p>
33
	 * If the meaning of the '<em>Value</em>' attribute isn't clear,
34
	 * there really should be more of a description here...
35
	 * </p>
36
	 * <!-- end-user-doc -->
37
	 * @return the value of the '<em>Value</em>' attribute.
38
	 * @see #setValue(String)
39
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getName_Value()
40
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
41
	 * @generated
42
	 */
43
	String getValue();
44
45
	/**
46
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @param value the new value of the '<em>Value</em>' attribute.
50
	 * @see #getValue()
51
	 * @generated
52
	 */
53
	void setValue(String value);
54
55
	/**
56
	 * Returns the value of the '<em><b>Lang</b></em>' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>Lang</em>' attribute isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>Lang</em>' attribute.
64
	 * @see #setLang(String)
65
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#getName_Lang()
66
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language"
67
	 * @generated
68
	 */
69
	String getLang();
70
71
	/**
72
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang <em>Lang</em>}' attribute.
73
	 * <!-- begin-user-doc -->
74
	 * <!-- end-user-doc -->
75
	 * @param value the new value of the '<em>Lang</em>' attribute.
76
	 * @see #getLang()
77
	 * @generated
78
	 */
79
	void setLang(String value);
80
81
} // Name
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexFactory.java (+73 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex;
8
9
import org.eclipse.emf.ecore.EFactory;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * The <b>Factory</b> for the model.
14
 * It provides a create method for each non-abstract class of the model.
15
 * <!-- end-user-doc -->
16
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage
17
 * @generated
18
 */
19
public interface RTIndexFactory extends EFactory {
20
	/**
21
	 * The singleton instance of the factory.
22
	 * <!-- begin-user-doc -->
23
	 * <!-- end-user-doc -->
24
	 * @generated
25
	 */
26
	RTIndexFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexFactoryImpl();
27
28
	/**
29
	 * Returns a new object of class '<em>Description</em>'.
30
	 * <!-- begin-user-doc -->
31
	 * <!-- end-user-doc -->
32
	 * @return a new object of class '<em>Description</em>'.
33
	 * @generated
34
	 */
35
	Description createDescription();
36
37
	/**
38
	 * Returns a new object of class '<em>Document Root</em>'.
39
	 * <!-- begin-user-doc -->
40
	 * <!-- end-user-doc -->
41
	 * @return a new object of class '<em>Document Root</em>'.
42
	 * @generated
43
	 */
44
	DocumentRoot createDocumentRoot();
45
46
	/**
47
	 * Returns a new object of class '<em>Index</em>'.
48
	 * <!-- begin-user-doc -->
49
	 * <!-- end-user-doc -->
50
	 * @return a new object of class '<em>Index</em>'.
51
	 * @generated
52
	 */
53
	Index createIndex();
54
55
	/**
56
	 * Returns a new object of class '<em>Name</em>'.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @return a new object of class '<em>Name</em>'.
60
	 * @generated
61
	 */
62
	Name createName();
63
64
	/**
65
	 * Returns the package supported by this factory.
66
	 * <!-- begin-user-doc -->
67
	 * <!-- end-user-doc -->
68
	 * @return the package supported by this factory.
69
	 * @generated
70
	 */
71
	RTIndexPackage getRTIndexPackage();
72
73
} //RTIndexFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/RTIndexPackage.java (+550 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
/**
15
 * <!-- begin-user-doc -->
16
 * The <b>Package</b> for the model.
17
 * It contains accessors for the meta objects to represent
18
 * <ul>
19
 *   <li>each class,</li>
20
 *   <li>each feature of each class,</li>
21
 *   <li>each enum,</li>
22
 *   <li>and each data type</li>
23
 * </ul>
24
 * <!-- end-user-doc -->
25
 * <!-- begin-model-doc -->
26
 * 
27
 *    See http://www.w3.org/XML/1998/namespace.html and
28
 *    http://www.w3.org/TR/REC-xml for information about this namespace.
29
 * 
30
 *     This schema document describes the XML namespace, in a form
31
 *     suitable for import by other schema documents.  
32
 * 
33
 *     Note that local names in this namespace are intended to be defined
34
 *     only by the World Wide Web Consortium or its subgroups.  The
35
 *     following names are currently defined in this namespace and should
36
 *     not be used with conflicting semantics by any Working Group,
37
 *     specification, or document instance:
38
 * 
39
 *     base (as an attribute name): denotes an attribute whose value
40
 *          provides a URI to be used as the base for interpreting any
41
 *          relative URIs in the scope of the element on which it
42
 *          appears; its value is inherited.  This name is reserved
43
 *          by virtue of its definition in the XML Base specification.
44
 * 
45
 *     id   (as an attribute name): denotes an attribute whose value
46
 *          should be interpreted as if declared to be of type ID.
47
 *          The xml:id specification is not yet a W3C Recommendation,
48
 *          but this attribute is included here to facilitate experimentation
49
 *          with the mechanisms it proposes.  Note that it is _not_ included
50
 *          in the specialAttrs attribute group.
51
 * 
52
 *     lang (as an attribute name): denotes an attribute whose value
53
 *          is a language code for the natural language of the content of
54
 *          any element; its value is inherited.  This name is reserved
55
 *          by virtue of its definition in the XML specification.
56
 *   
57
 *     space (as an attribute name): denotes an attribute whose
58
 *          value is a keyword indicating what whitespace processing
59
 *          discipline is intended for the content of the element; its
60
 *          value is inherited.  This name is reserved by virtue of its
61
 *          definition in the XML specification.
62
 * 
63
 *     Father (in any context at all): denotes Jon Bosak, the chair of 
64
 *          the original XML Working Group.  This name is reserved by 
65
 *          the following decision of the W3C XML Plenary and 
66
 *          XML Coordination groups:
67
 * 
68
 *              In appreciation for his vision, leadership and dedication
69
 *              the W3C XML Plenary on this 10th day of February, 2000
70
 *              reserves for Jon Bosak in perpetuity the XML name
71
 *              xml:Father
72
 *   
73
 * This schema defines attributes and an attribute group
74
 *         suitable for use by
75
 *         schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
76
 *         attributes on elements they define.
77
 * 
78
 *         To enable this, such a schema must import this schema
79
 *         for the XML namespace, e.g. as follows:
80
 *         &lt;schema . . .&gt;
81
 *          . . .
82
 *          &lt;import namespace="http://www.w3.org/XML/1998/namespace"
83
 *                     schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;
84
 * 
85
 *         Subsequently, qualified reference to any of the attributes
86
 *         or the group defined below will have the desired effect, e.g.
87
 * 
88
 *         &lt;type . . .&gt;
89
 *          . . .
90
 *          &lt;attributeGroup ref="xml:specialAttrs"/&gt;
91
 *  
92
 *          will define a type which will schema-validate an instance
93
 *          element with any of those attributes
94
 * In keeping with the XML Schema WG's standard versioning
95
 *    policy, this schema document will persist at
96
 *    http://www.w3.org/2005/08/xml.xsd.
97
 *    At the date of issue it can also be found at
98
 *    http://www.w3.org/2001/xml.xsd.
99
 *    The schema document at that URI may however change in the future,
100
 *    in order to remain compatible with the latest version of XML Schema
101
 *    itself, or with the XML namespace itself.  In other words, if the XML
102
 *    Schema or XML namespaces change, the version of this document at
103
 *    http://www.w3.org/2001/xml.xsd will change
104
 *    accordingly; the version at
105
 *    http://www.w3.org/2005/08/xml.xsd will not change.
106
 *   
107
 * <!-- end-model-doc -->
108
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexFactory
109
 * @generated
110
 */
111
public interface RTIndexPackage extends EPackage {
112
	/**
113
	 * The package name.
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @generated
117
	 */
118
	String eNAME = "rtindex";
119
120
	/**
121
	 * The package namespace URI.
122
	 * <!-- begin-user-doc -->
123
	 * <!-- end-user-doc -->
124
	 * @generated
125
	 */
126
	String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/rtindex";
127
128
	/**
129
	 * The package namespace name.
130
	 * <!-- begin-user-doc -->
131
	 * <!-- end-user-doc -->
132
	 * @generated
133
	 */
134
	String eNS_PREFIX = "rtindex";
135
136
	/**
137
	 * The singleton instance of the package.
138
	 * <!-- begin-user-doc -->
139
	 * <!-- end-user-doc -->
140
	 * @generated
141
	 */
142
	RTIndexPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl.init();
143
144
	/**
145
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl <em>Description</em>}' class.
146
	 * <!-- begin-user-doc -->
147
	 * <!-- end-user-doc -->
148
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl
149
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getDescription()
150
	 * @generated
151
	 */
152
	int DESCRIPTION = 0;
153
154
	/**
155
	 * The feature id for the '<em><b>Value</b></em>' attribute.
156
	 * <!-- begin-user-doc -->
157
	 * <!-- end-user-doc -->
158
	 * @generated
159
	 * @ordered
160
	 */
161
	int DESCRIPTION__VALUE = 0;
162
163
	/**
164
	 * The feature id for the '<em><b>Lang</b></em>' attribute.
165
	 * <!-- begin-user-doc -->
166
	 * <!-- end-user-doc -->
167
	 * @generated
168
	 * @ordered
169
	 */
170
	int DESCRIPTION__LANG = 1;
171
172
	/**
173
	 * The number of structural features of the the '<em>Description</em>' class.
174
	 * <!-- begin-user-doc -->
175
	 * <!-- end-user-doc -->
176
	 * @generated
177
	 * @ordered
178
	 */
179
	int DESCRIPTION_FEATURE_COUNT = 2;
180
181
	/**
182
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl <em>Document Root</em>}' class.
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl
186
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getDocumentRoot()
187
	 * @generated
188
	 */
189
	int DOCUMENT_ROOT = 1;
190
191
	/**
192
	 * The feature id for the '<em><b>Mixed</b></em>' attribute list.
193
	 * <!-- begin-user-doc -->
194
	 * <!-- end-user-doc -->
195
	 * @generated
196
	 * @ordered
197
	 */
198
	int DOCUMENT_ROOT__MIXED = 0;
199
200
	/**
201
	 * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
202
	 * <!-- begin-user-doc -->
203
	 * <!-- end-user-doc -->
204
	 * @generated
205
	 * @ordered
206
	 */
207
	int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
208
209
	/**
210
	 * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
211
	 * <!-- begin-user-doc -->
212
	 * <!-- end-user-doc -->
213
	 * @generated
214
	 * @ordered
215
	 */
216
	int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
217
218
	/**
219
	 * The feature id for the '<em><b>Description</b></em>' containment reference.
220
	 * <!-- begin-user-doc -->
221
	 * <!-- end-user-doc -->
222
	 * @generated
223
	 * @ordered
224
	 */
225
	int DOCUMENT_ROOT__DESCRIPTION = 3;
226
227
	/**
228
	 * The feature id for the '<em><b>Index</b></em>' containment reference.
229
	 * <!-- begin-user-doc -->
230
	 * <!-- end-user-doc -->
231
	 * @generated
232
	 * @ordered
233
	 */
234
	int DOCUMENT_ROOT__INDEX = 4;
235
236
	/**
237
	 * The feature id for the '<em><b>Name</b></em>' containment reference.
238
	 * <!-- begin-user-doc -->
239
	 * <!-- end-user-doc -->
240
	 * @generated
241
	 * @ordered
242
	 */
243
	int DOCUMENT_ROOT__NAME = 5;
244
245
	/**
246
	 * The number of structural features of the the '<em>Document Root</em>' class.
247
	 * <!-- begin-user-doc -->
248
	 * <!-- end-user-doc -->
249
	 * @generated
250
	 * @ordered
251
	 */
252
	int DOCUMENT_ROOT_FEATURE_COUNT = 6;
253
254
	/**
255
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl <em>Index</em>}' class.
256
	 * <!-- begin-user-doc -->
257
	 * <!-- end-user-doc -->
258
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl
259
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getIndex()
260
	 * @generated
261
	 */
262
	int INDEX = 2;
263
264
	/**
265
	 * The feature id for the '<em><b>Name</b></em>' containment reference list.
266
	 * <!-- begin-user-doc -->
267
	 * <!-- end-user-doc -->
268
	 * @generated
269
	 * @ordered
270
	 */
271
	int INDEX__NAME = 0;
272
273
	/**
274
	 * The feature id for the '<em><b>Description</b></em>' containment reference list.
275
	 * <!-- begin-user-doc -->
276
	 * <!-- end-user-doc -->
277
	 * @generated
278
	 * @ordered
279
	 */
280
	int INDEX__DESCRIPTION = 1;
281
282
	/**
283
	 * The feature id for the '<em><b>Registry</b></em>' containment reference list.
284
	 * <!-- begin-user-doc -->
285
	 * <!-- end-user-doc -->
286
	 * @generated
287
	 * @ordered
288
	 */
289
	int INDEX__REGISTRY = 2;
290
291
	/**
292
	 * The feature id for the '<em><b>Taxonomy</b></em>' containment reference list.
293
	 * <!-- begin-user-doc -->
294
	 * <!-- end-user-doc -->
295
	 * @generated
296
	 * @ordered
297
	 */
298
	int INDEX__TAXONOMY = 3;
299
300
	/**
301
	 * The number of structural features of the the '<em>Index</em>' class.
302
	 * <!-- begin-user-doc -->
303
	 * <!-- end-user-doc -->
304
	 * @generated
305
	 * @ordered
306
	 */
307
	int INDEX_FEATURE_COUNT = 4;
308
309
	/**
310
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl <em>Name</em>}' class.
311
	 * <!-- begin-user-doc -->
312
	 * <!-- end-user-doc -->
313
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl
314
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl#getName_()
315
	 * @generated
316
	 */
317
	int NAME = 3;
318
319
	/**
320
	 * The feature id for the '<em><b>Value</b></em>' attribute.
321
	 * <!-- begin-user-doc -->
322
	 * <!-- end-user-doc -->
323
	 * @generated
324
	 * @ordered
325
	 */
326
	int NAME__VALUE = 0;
327
328
	/**
329
	 * The feature id for the '<em><b>Lang</b></em>' attribute.
330
	 * <!-- begin-user-doc -->
331
	 * <!-- end-user-doc -->
332
	 * @generated
333
	 * @ordered
334
	 */
335
	int NAME__LANG = 1;
336
337
	/**
338
	 * The number of structural features of the the '<em>Name</em>' class.
339
	 * <!-- begin-user-doc -->
340
	 * <!-- end-user-doc -->
341
	 * @generated
342
	 * @ordered
343
	 */
344
	int NAME_FEATURE_COUNT = 2;
345
346
347
	/**
348
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description <em>Description</em>}'.
349
	 * <!-- begin-user-doc -->
350
	 * <!-- end-user-doc -->
351
	 * @return the meta object for class '<em>Description</em>'.
352
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Description
353
	 * @generated
354
	 */
355
	EClass getDescription();
356
357
	/**
358
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue <em>Value</em>}'.
359
	 * <!-- begin-user-doc -->
360
	 * <!-- end-user-doc -->
361
	 * @return the meta object for the attribute '<em>Value</em>'.
362
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getValue()
363
	 * @see #getDescription()
364
	 * @generated
365
	 */
366
	EAttribute getDescription_Value();
367
368
	/**
369
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang <em>Lang</em>}'.
370
	 * <!-- begin-user-doc -->
371
	 * <!-- end-user-doc -->
372
	 * @return the meta object for the attribute '<em>Lang</em>'.
373
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Description#getLang()
374
	 * @see #getDescription()
375
	 * @generated
376
	 */
377
	EAttribute getDescription_Lang();
378
379
	/**
380
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot <em>Document Root</em>}'.
381
	 * <!-- begin-user-doc -->
382
	 * <!-- end-user-doc -->
383
	 * @return the meta object for class '<em>Document Root</em>'.
384
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot
385
	 * @generated
386
	 */
387
	EClass getDocumentRoot();
388
389
	/**
390
	 * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getMixed <em>Mixed</em>}'.
391
	 * <!-- begin-user-doc -->
392
	 * <!-- end-user-doc -->
393
	 * @return the meta object for the attribute list '<em>Mixed</em>'.
394
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getMixed()
395
	 * @see #getDocumentRoot()
396
	 * @generated
397
	 */
398
	EAttribute getDocumentRoot_Mixed();
399
400
	/**
401
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
402
	 * <!-- begin-user-doc -->
403
	 * <!-- end-user-doc -->
404
	 * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
405
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXMLNSPrefixMap()
406
	 * @see #getDocumentRoot()
407
	 * @generated
408
	 */
409
	EReference getDocumentRoot_XMLNSPrefixMap();
410
411
	/**
412
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
413
	 * <!-- begin-user-doc -->
414
	 * <!-- end-user-doc -->
415
	 * @return the meta object for the map '<em>XSI Schema Location</em>'.
416
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getXSISchemaLocation()
417
	 * @see #getDocumentRoot()
418
	 * @generated
419
	 */
420
	EReference getDocumentRoot_XSISchemaLocation();
421
422
	/**
423
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription <em>Description</em>}'.
424
	 * <!-- begin-user-doc -->
425
	 * <!-- end-user-doc -->
426
	 * @return the meta object for the containment reference '<em>Description</em>'.
427
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getDescription()
428
	 * @see #getDocumentRoot()
429
	 * @generated
430
	 */
431
	EReference getDocumentRoot_Description();
432
433
	/**
434
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex <em>Index</em>}'.
435
	 * <!-- begin-user-doc -->
436
	 * <!-- end-user-doc -->
437
	 * @return the meta object for the containment reference '<em>Index</em>'.
438
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getIndex()
439
	 * @see #getDocumentRoot()
440
	 * @generated
441
	 */
442
	EReference getDocumentRoot_Index();
443
444
	/**
445
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName <em>Name</em>}'.
446
	 * <!-- begin-user-doc -->
447
	 * <!-- end-user-doc -->
448
	 * @return the meta object for the containment reference '<em>Name</em>'.
449
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot#getName()
450
	 * @see #getDocumentRoot()
451
	 * @generated
452
	 */
453
	EReference getDocumentRoot_Name();
454
455
	/**
456
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index <em>Index</em>}'.
457
	 * <!-- begin-user-doc -->
458
	 * <!-- end-user-doc -->
459
	 * @return the meta object for class '<em>Index</em>'.
460
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index
461
	 * @generated
462
	 */
463
	EClass getIndex();
464
465
	/**
466
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getName <em>Name</em>}'.
467
	 * <!-- begin-user-doc -->
468
	 * <!-- end-user-doc -->
469
	 * @return the meta object for the containment reference list '<em>Name</em>'.
470
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getName()
471
	 * @see #getIndex()
472
	 * @generated
473
	 */
474
	EReference getIndex_Name();
475
476
	/**
477
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getDescription <em>Description</em>}'.
478
	 * <!-- begin-user-doc -->
479
	 * <!-- end-user-doc -->
480
	 * @return the meta object for the containment reference list '<em>Description</em>'.
481
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getDescription()
482
	 * @see #getIndex()
483
	 * @generated
484
	 */
485
	EReference getIndex_Description();
486
487
	/**
488
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getRegistry <em>Registry</em>}'.
489
	 * <!-- begin-user-doc -->
490
	 * <!-- end-user-doc -->
491
	 * @return the meta object for the containment reference list '<em>Registry</em>'.
492
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getRegistry()
493
	 * @see #getIndex()
494
	 * @generated
495
	 */
496
	EReference getIndex_Registry();
497
498
	/**
499
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getTaxonomy <em>Taxonomy</em>}'.
500
	 * <!-- begin-user-doc -->
501
	 * <!-- end-user-doc -->
502
	 * @return the meta object for the containment reference list '<em>Taxonomy</em>'.
503
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index#getTaxonomy()
504
	 * @see #getIndex()
505
	 * @generated
506
	 */
507
	EReference getIndex_Taxonomy();
508
509
	/**
510
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name <em>Name</em>}'.
511
	 * <!-- begin-user-doc -->
512
	 * <!-- end-user-doc -->
513
	 * @return the meta object for class '<em>Name</em>'.
514
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Name
515
	 * @generated
516
	 */
517
	EClass getName_();
518
519
	/**
520
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue <em>Value</em>}'.
521
	 * <!-- begin-user-doc -->
522
	 * <!-- end-user-doc -->
523
	 * @return the meta object for the attribute '<em>Value</em>'.
524
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getValue()
525
	 * @see #getName_()
526
	 * @generated
527
	 */
528
	EAttribute getName_Value();
529
530
	/**
531
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang <em>Lang</em>}'.
532
	 * <!-- begin-user-doc -->
533
	 * <!-- end-user-doc -->
534
	 * @return the meta object for the attribute '<em>Lang</em>'.
535
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Name#getLang()
536
	 * @see #getName_()
537
	 * @generated
538
	 */
539
	EAttribute getName_Lang();
540
541
	/**
542
	 * Returns the factory that creates the instances of the model.
543
	 * <!-- begin-user-doc -->
544
	 * <!-- end-user-doc -->
545
	 * @return the factory that creates the instances of the model.
546
	 * @generated
547
	 */
548
	RTIndexFactory getRTIndexFactory();
549
550
} //RTIndexPackage
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DescriptionImpl.java (+216 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.impl;
8
9
import org.eclipse.emf.common.notify.Notification;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EStructuralFeature;
13
14
import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
import org.eclipse.emf.ecore.impl.EObjectImpl;
16
17
import org.eclipse.wst.ws.internal.model.v10.rtindex.Description;
18
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * An implementation of the model object '<em><b>Description</b></em>'.
23
 * <!-- end-user-doc -->
24
 * <p>
25
 * The following features are implemented:
26
 * <ul>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl#getValue <em>Value</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DescriptionImpl#getLang <em>Lang</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @generated
33
 */
34
public class DescriptionImpl extends EObjectImpl implements Description {
35
	/**
36
	 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @see #getValue()
40
	 * @generated
41
	 * @ordered
42
	 */
43
	protected static final String VALUE_EDEFAULT = null;
44
45
	/**
46
	 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @see #getValue()
50
	 * @generated
51
	 * @ordered
52
	 */
53
	protected String value = VALUE_EDEFAULT;
54
55
	/**
56
	 * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @see #getLang()
60
	 * @generated
61
	 * @ordered
62
	 */
63
	protected static final String LANG_EDEFAULT = null;
64
65
	/**
66
	 * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @see #getLang()
70
	 * @generated
71
	 * @ordered
72
	 */
73
	protected String lang = LANG_EDEFAULT;
74
75
	/**
76
	 * <!-- begin-user-doc -->
77
	 * <!-- end-user-doc -->
78
	 * @generated
79
	 */
80
	protected DescriptionImpl() {
81
		super();
82
	}
83
84
	/**
85
	 * <!-- begin-user-doc -->
86
	 * <!-- end-user-doc -->
87
	 * @generated
88
	 */
89
	protected EClass eStaticClass() {
90
		return RTIndexPackage.eINSTANCE.getDescription();
91
	}
92
93
	/**
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @generated
97
	 */
98
	public String getValue() {
99
		return value;
100
	}
101
102
	/**
103
	 * <!-- begin-user-doc -->
104
	 * <!-- end-user-doc -->
105
	 * @generated
106
	 */
107
	public void setValue(String newValue) {
108
		String oldValue = value;
109
		value = newValue;
110
		if (eNotificationRequired())
111
			eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.DESCRIPTION__VALUE, oldValue, value));
112
	}
113
114
	/**
115
	 * <!-- begin-user-doc -->
116
	 * <!-- end-user-doc -->
117
	 * @generated
118
	 */
119
	public String getLang() {
120
		return lang;
121
	}
122
123
	/**
124
	 * <!-- begin-user-doc -->
125
	 * <!-- end-user-doc -->
126
	 * @generated
127
	 */
128
	public void setLang(String newLang) {
129
		String oldLang = lang;
130
		lang = newLang;
131
		if (eNotificationRequired())
132
			eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.DESCRIPTION__LANG, oldLang, lang));
133
	}
134
135
	/**
136
	 * <!-- begin-user-doc -->
137
	 * <!-- end-user-doc -->
138
	 * @generated
139
	 */
140
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
141
		switch (eDerivedStructuralFeatureID(eFeature)) {
142
			case RTIndexPackage.DESCRIPTION__VALUE:
143
				return getValue();
144
			case RTIndexPackage.DESCRIPTION__LANG:
145
				return getLang();
146
		}
147
		return eDynamicGet(eFeature, resolve);
148
	}
149
150
	/**
151
	 * <!-- begin-user-doc -->
152
	 * <!-- end-user-doc -->
153
	 * @generated
154
	 */
155
	public void eSet(EStructuralFeature eFeature, Object newValue) {
156
		switch (eDerivedStructuralFeatureID(eFeature)) {
157
			case RTIndexPackage.DESCRIPTION__VALUE:
158
				setValue((String)newValue);
159
				return;
160
			case RTIndexPackage.DESCRIPTION__LANG:
161
				setLang((String)newValue);
162
				return;
163
		}
164
		eDynamicSet(eFeature, newValue);
165
	}
166
167
	/**
168
	 * <!-- begin-user-doc -->
169
	 * <!-- end-user-doc -->
170
	 * @generated
171
	 */
172
	public void eUnset(EStructuralFeature eFeature) {
173
		switch (eDerivedStructuralFeatureID(eFeature)) {
174
			case RTIndexPackage.DESCRIPTION__VALUE:
175
				setValue(VALUE_EDEFAULT);
176
				return;
177
			case RTIndexPackage.DESCRIPTION__LANG:
178
				setLang(LANG_EDEFAULT);
179
				return;
180
		}
181
		eDynamicUnset(eFeature);
182
	}
183
184
	/**
185
	 * <!-- begin-user-doc -->
186
	 * <!-- end-user-doc -->
187
	 * @generated
188
	 */
189
	public boolean eIsSet(EStructuralFeature eFeature) {
190
		switch (eDerivedStructuralFeatureID(eFeature)) {
191
			case RTIndexPackage.DESCRIPTION__VALUE:
192
				return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
193
			case RTIndexPackage.DESCRIPTION__LANG:
194
				return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
195
		}
196
		return eDynamicIsSet(eFeature);
197
	}
198
199
	/**
200
	 * <!-- begin-user-doc -->
201
	 * <!-- end-user-doc -->
202
	 * @generated
203
	 */
204
	public String toString() {
205
		if (eIsProxy()) return super.toString();
206
207
		StringBuffer result = new StringBuffer(super.toString());
208
		result.append(" (value: ");
209
		result.append(value);
210
		result.append(", lang: ");
211
		result.append(lang);
212
		result.append(')');
213
		return result.toString();
214
	}
215
216
} //DescriptionImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/DocumentRootImpl.java (+367 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.NotificationChain;
12
13
import org.eclipse.emf.common.util.EMap;
14
15
import org.eclipse.emf.ecore.EClass;
16
import org.eclipse.emf.ecore.EStructuralFeature;
17
import org.eclipse.emf.ecore.EcorePackage;
18
import org.eclipse.emf.ecore.InternalEObject;
19
20
import org.eclipse.emf.ecore.impl.EObjectImpl;
21
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
22
23
import org.eclipse.emf.ecore.util.BasicFeatureMap;
24
import org.eclipse.emf.ecore.util.EcoreEMap;
25
import org.eclipse.emf.ecore.util.FeatureMap;
26
import org.eclipse.emf.ecore.util.InternalEList;
27
28
import org.eclipse.wst.ws.internal.model.v10.rtindex.Description;
29
import org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot;
30
import org.eclipse.wst.ws.internal.model.v10.rtindex.Index;
31
import org.eclipse.wst.ws.internal.model.v10.rtindex.Name;
32
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * An implementation of the model object '<em><b>Document Root</b></em>'.
37
 * <!-- end-user-doc -->
38
 * <p>
39
 * The following features are implemented:
40
 * <ul>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
43
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
44
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getDescription <em>Description</em>}</li>
45
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getIndex <em>Index</em>}</li>
46
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.DocumentRootImpl#getName <em>Name</em>}</li>
47
 * </ul>
48
 * </p>
49
 *
50
 * @generated
51
 */
52
public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
53
	/**
54
	 * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
55
	 * <!-- begin-user-doc -->
56
	 * <!-- end-user-doc -->
57
	 * @see #getMixed()
58
	 * @generated
59
	 * @ordered
60
	 */
61
	protected FeatureMap mixed = null;
62
63
	/**
64
	 * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
65
	 * <!-- begin-user-doc -->
66
	 * <!-- end-user-doc -->
67
	 * @see #getXMLNSPrefixMap()
68
	 * @generated
69
	 * @ordered
70
	 */
71
	protected EMap xMLNSPrefixMap = null;
72
73
	/**
74
	 * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
75
	 * <!-- begin-user-doc -->
76
	 * <!-- end-user-doc -->
77
	 * @see #getXSISchemaLocation()
78
	 * @generated
79
	 * @ordered
80
	 */
81
	protected EMap xSISchemaLocation = null;
82
83
	/**
84
	 * <!-- begin-user-doc -->
85
	 * <!-- end-user-doc -->
86
	 * @generated
87
	 */
88
	protected DocumentRootImpl() {
89
		super();
90
	}
91
92
	/**
93
	 * <!-- begin-user-doc -->
94
	 * <!-- end-user-doc -->
95
	 * @generated
96
	 */
97
	protected EClass eStaticClass() {
98
		return RTIndexPackage.eINSTANCE.getDocumentRoot();
99
	}
100
101
	/**
102
	 * <!-- begin-user-doc -->
103
	 * <!-- end-user-doc -->
104
	 * @generated
105
	 */
106
	public FeatureMap getMixed() {
107
		if (mixed == null) {
108
			mixed = new BasicFeatureMap(this, RTIndexPackage.DOCUMENT_ROOT__MIXED);
109
		}
110
		return mixed;
111
	}
112
113
	/**
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @generated
117
	 */
118
	public EMap getXMLNSPrefixMap() {
119
		if (xMLNSPrefixMap == null) {
120
			xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
121
		}
122
		return xMLNSPrefixMap;
123
	}
124
125
	/**
126
	 * <!-- begin-user-doc -->
127
	 * <!-- end-user-doc -->
128
	 * @generated
129
	 */
130
	public EMap getXSISchemaLocation() {
131
		if (xSISchemaLocation == null) {
132
			xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
133
		}
134
		return xSISchemaLocation;
135
	}
136
137
	/**
138
	 * <!-- begin-user-doc -->
139
	 * <!-- end-user-doc -->
140
	 * @generated
141
	 */
142
	public Description getDescription() {
143
		return (Description)getMixed().get(RTIndexPackage.eINSTANCE.getDocumentRoot_Description(), true);
144
	}
145
146
	/**
147
	 * <!-- begin-user-doc -->
148
	 * <!-- end-user-doc -->
149
	 * @generated
150
	 */
151
	public NotificationChain basicSetDescription(Description newDescription, NotificationChain msgs) {
152
		return ((FeatureMap.Internal)getMixed()).basicAdd(RTIndexPackage.eINSTANCE.getDocumentRoot_Description(), newDescription, null);
153
	}
154
155
	/**
156
	 * <!-- begin-user-doc -->
157
	 * <!-- end-user-doc -->
158
	 * @generated
159
	 */
160
	public void setDescription(Description newDescription) {
161
		((FeatureMap.Internal)getMixed()).set(RTIndexPackage.eINSTANCE.getDocumentRoot_Description(), newDescription);
162
	}
163
164
	/**
165
	 * <!-- begin-user-doc -->
166
	 * <!-- end-user-doc -->
167
	 * @generated
168
	 */
169
	public Index getIndex() {
170
		return (Index)getMixed().get(RTIndexPackage.eINSTANCE.getDocumentRoot_Index(), true);
171
	}
172
173
	/**
174
	 * <!-- begin-user-doc -->
175
	 * <!-- end-user-doc -->
176
	 * @generated
177
	 */
178
	public NotificationChain basicSetIndex(Index newIndex, NotificationChain msgs) {
179
		return ((FeatureMap.Internal)getMixed()).basicAdd(RTIndexPackage.eINSTANCE.getDocumentRoot_Index(), newIndex, null);
180
	}
181
182
	/**
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @generated
186
	 */
187
	public void setIndex(Index newIndex) {
188
		((FeatureMap.Internal)getMixed()).set(RTIndexPackage.eINSTANCE.getDocumentRoot_Index(), newIndex);
189
	}
190
191
	/**
192
	 * <!-- begin-user-doc -->
193
	 * <!-- end-user-doc -->
194
	 * @generated
195
	 */
196
	public Name getName() {
197
		return (Name)getMixed().get(RTIndexPackage.eINSTANCE.getDocumentRoot_Name(), true);
198
	}
199
200
	/**
201
	 * <!-- begin-user-doc -->
202
	 * <!-- end-user-doc -->
203
	 * @generated
204
	 */
205
	public NotificationChain basicSetName(Name newName, NotificationChain msgs) {
206
		return ((FeatureMap.Internal)getMixed()).basicAdd(RTIndexPackage.eINSTANCE.getDocumentRoot_Name(), newName, null);
207
	}
208
209
	/**
210
	 * <!-- begin-user-doc -->
211
	 * <!-- end-user-doc -->
212
	 * @generated
213
	 */
214
	public void setName(Name newName) {
215
		((FeatureMap.Internal)getMixed()).set(RTIndexPackage.eINSTANCE.getDocumentRoot_Name(), newName);
216
	}
217
218
	/**
219
	 * <!-- begin-user-doc -->
220
	 * <!-- end-user-doc -->
221
	 * @generated
222
	 */
223
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
224
		if (featureID >= 0) {
225
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
226
				case RTIndexPackage.DOCUMENT_ROOT__MIXED:
227
					return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
228
				case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
229
					return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
230
				case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
231
					return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
232
				case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION:
233
					return basicSetDescription(null, msgs);
234
				case RTIndexPackage.DOCUMENT_ROOT__INDEX:
235
					return basicSetIndex(null, msgs);
236
				case RTIndexPackage.DOCUMENT_ROOT__NAME:
237
					return basicSetName(null, msgs);
238
				default:
239
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
240
			}
241
		}
242
		return eBasicSetContainer(null, featureID, msgs);
243
	}
244
245
	/**
246
	 * <!-- begin-user-doc -->
247
	 * <!-- end-user-doc -->
248
	 * @generated
249
	 */
250
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
251
		switch (eDerivedStructuralFeatureID(eFeature)) {
252
			case RTIndexPackage.DOCUMENT_ROOT__MIXED:
253
				return getMixed();
254
			case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
255
				return getXMLNSPrefixMap();
256
			case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
257
				return getXSISchemaLocation();
258
			case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION:
259
				return getDescription();
260
			case RTIndexPackage.DOCUMENT_ROOT__INDEX:
261
				return getIndex();
262
			case RTIndexPackage.DOCUMENT_ROOT__NAME:
263
				return getName();
264
		}
265
		return eDynamicGet(eFeature, resolve);
266
	}
267
268
	/**
269
	 * <!-- begin-user-doc -->
270
	 * <!-- end-user-doc -->
271
	 * @generated
272
	 */
273
	public void eSet(EStructuralFeature eFeature, Object newValue) {
274
		switch (eDerivedStructuralFeatureID(eFeature)) {
275
			case RTIndexPackage.DOCUMENT_ROOT__MIXED:
276
				getMixed().clear();
277
				getMixed().addAll((Collection)newValue);
278
				return;
279
			case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
280
				getXMLNSPrefixMap().clear();
281
				getXMLNSPrefixMap().addAll((Collection)newValue);
282
				return;
283
			case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
284
				getXSISchemaLocation().clear();
285
				getXSISchemaLocation().addAll((Collection)newValue);
286
				return;
287
			case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION:
288
				setDescription((Description)newValue);
289
				return;
290
			case RTIndexPackage.DOCUMENT_ROOT__INDEX:
291
				setIndex((Index)newValue);
292
				return;
293
			case RTIndexPackage.DOCUMENT_ROOT__NAME:
294
				setName((Name)newValue);
295
				return;
296
		}
297
		eDynamicSet(eFeature, newValue);
298
	}
299
300
	/**
301
	 * <!-- begin-user-doc -->
302
	 * <!-- end-user-doc -->
303
	 * @generated
304
	 */
305
	public void eUnset(EStructuralFeature eFeature) {
306
		switch (eDerivedStructuralFeatureID(eFeature)) {
307
			case RTIndexPackage.DOCUMENT_ROOT__MIXED:
308
				getMixed().clear();
309
				return;
310
			case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
311
				getXMLNSPrefixMap().clear();
312
				return;
313
			case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
314
				getXSISchemaLocation().clear();
315
				return;
316
			case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION:
317
				setDescription((Description)null);
318
				return;
319
			case RTIndexPackage.DOCUMENT_ROOT__INDEX:
320
				setIndex((Index)null);
321
				return;
322
			case RTIndexPackage.DOCUMENT_ROOT__NAME:
323
				setName((Name)null);
324
				return;
325
		}
326
		eDynamicUnset(eFeature);
327
	}
328
329
	/**
330
	 * <!-- begin-user-doc -->
331
	 * <!-- end-user-doc -->
332
	 * @generated
333
	 */
334
	public boolean eIsSet(EStructuralFeature eFeature) {
335
		switch (eDerivedStructuralFeatureID(eFeature)) {
336
			case RTIndexPackage.DOCUMENT_ROOT__MIXED:
337
				return mixed != null && !mixed.isEmpty();
338
			case RTIndexPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
339
				return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
340
			case RTIndexPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
341
				return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
342
			case RTIndexPackage.DOCUMENT_ROOT__DESCRIPTION:
343
				return getDescription() != null;
344
			case RTIndexPackage.DOCUMENT_ROOT__INDEX:
345
				return getIndex() != null;
346
			case RTIndexPackage.DOCUMENT_ROOT__NAME:
347
				return getName() != null;
348
		}
349
		return eDynamicIsSet(eFeature);
350
	}
351
352
	/**
353
	 * <!-- begin-user-doc -->
354
	 * <!-- end-user-doc -->
355
	 * @generated
356
	 */
357
	public String toString() {
358
		if (eIsProxy()) return super.toString();
359
360
		StringBuffer result = new StringBuffer(super.toString());
361
		result.append(" (mixed: ");
362
		result.append(mixed);
363
		result.append(')');
364
		return result.toString();
365
	}
366
367
} //DocumentRootImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/IndexImpl.java (+267 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.NotificationChain;
12
13
import org.eclipse.emf.common.util.EList;
14
15
import org.eclipse.emf.ecore.EClass;
16
import org.eclipse.emf.ecore.EStructuralFeature;
17
import org.eclipse.emf.ecore.InternalEObject;
18
19
import org.eclipse.emf.ecore.impl.EObjectImpl;
20
21
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
22
import org.eclipse.emf.ecore.util.InternalEList;
23
24
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
25
26
import org.eclipse.wst.ws.internal.model.v10.rtindex.Description;
27
import org.eclipse.wst.ws.internal.model.v10.rtindex.Index;
28
import org.eclipse.wst.ws.internal.model.v10.rtindex.Name;
29
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
30
31
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
32
33
/**
34
 * <!-- begin-user-doc -->
35
 * An implementation of the model object '<em><b>Index</b></em>'.
36
 * <!-- end-user-doc -->
37
 * <p>
38
 * The following features are implemented:
39
 * <ul>
40
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getName <em>Name</em>}</li>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getDescription <em>Description</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getRegistry <em>Registry</em>}</li>
43
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.IndexImpl#getTaxonomy <em>Taxonomy</em>}</li>
44
 * </ul>
45
 * </p>
46
 *
47
 * @generated
48
 */
49
public class IndexImpl extends EObjectImpl implements Index {
50
	/**
51
	 * The cached value of the '{@link #getName() <em>Name</em>}' containment reference list.
52
	 * <!-- begin-user-doc -->
53
	 * <!-- end-user-doc -->
54
	 * @see #getName()
55
	 * @generated
56
	 * @ordered
57
	 */
58
	protected EList name = null;
59
60
	/**
61
	 * The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference list.
62
	 * <!-- begin-user-doc -->
63
	 * <!-- end-user-doc -->
64
	 * @see #getDescription()
65
	 * @generated
66
	 * @ordered
67
	 */
68
	protected EList description = null;
69
70
	/**
71
	 * The cached value of the '{@link #getRegistry() <em>Registry</em>}' containment reference list.
72
	 * <!-- begin-user-doc -->
73
	 * <!-- end-user-doc -->
74
	 * @see #getRegistry()
75
	 * @generated
76
	 * @ordered
77
	 */
78
	protected EList registry = null;
79
80
	/**
81
	 * The cached value of the '{@link #getTaxonomy() <em>Taxonomy</em>}' containment reference list.
82
	 * <!-- begin-user-doc -->
83
	 * <!-- end-user-doc -->
84
	 * @see #getTaxonomy()
85
	 * @generated
86
	 * @ordered
87
	 */
88
	protected EList taxonomy = null;
89
90
	/**
91
	 * <!-- begin-user-doc -->
92
	 * <!-- end-user-doc -->
93
	 * @generated
94
	 */
95
	protected IndexImpl() {
96
		super();
97
	}
98
99
	/**
100
	 * <!-- begin-user-doc -->
101
	 * <!-- end-user-doc -->
102
	 * @generated
103
	 */
104
	protected EClass eStaticClass() {
105
		return RTIndexPackage.eINSTANCE.getIndex();
106
	}
107
108
	/**
109
	 * <!-- begin-user-doc -->
110
	 * <!-- end-user-doc -->
111
	 * @generated
112
	 */
113
	public EList getName() {
114
		if (name == null) {
115
			name = new EObjectContainmentEList(Name.class, this, RTIndexPackage.INDEX__NAME);
116
		}
117
		return name;
118
	}
119
120
	/**
121
	 * <!-- begin-user-doc -->
122
	 * <!-- end-user-doc -->
123
	 * @generated
124
	 */
125
	public EList getDescription() {
126
		if (description == null) {
127
			description = new EObjectContainmentEList(Description.class, this, RTIndexPackage.INDEX__DESCRIPTION);
128
		}
129
		return description;
130
	}
131
132
	/**
133
	 * <!-- begin-user-doc -->
134
	 * <!-- end-user-doc -->
135
	 * @generated
136
	 */
137
	public EList getRegistry() {
138
		if (registry == null) {
139
			registry = new EObjectContainmentEList(Registry.class, this, RTIndexPackage.INDEX__REGISTRY);
140
		}
141
		return registry;
142
	}
143
144
	/**
145
	 * <!-- begin-user-doc -->
146
	 * <!-- end-user-doc -->
147
	 * @generated
148
	 */
149
	public EList getTaxonomy() {
150
		if (taxonomy == null) {
151
			taxonomy = new EObjectContainmentEList(Taxonomy.class, this, RTIndexPackage.INDEX__TAXONOMY);
152
		}
153
		return taxonomy;
154
	}
155
156
	/**
157
	 * <!-- begin-user-doc -->
158
	 * <!-- end-user-doc -->
159
	 * @generated
160
	 */
161
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
162
		if (featureID >= 0) {
163
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
164
				case RTIndexPackage.INDEX__NAME:
165
					return ((InternalEList)getName()).basicRemove(otherEnd, msgs);
166
				case RTIndexPackage.INDEX__DESCRIPTION:
167
					return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
168
				case RTIndexPackage.INDEX__REGISTRY:
169
					return ((InternalEList)getRegistry()).basicRemove(otherEnd, msgs);
170
				case RTIndexPackage.INDEX__TAXONOMY:
171
					return ((InternalEList)getTaxonomy()).basicRemove(otherEnd, msgs);
172
				default:
173
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
174
			}
175
		}
176
		return eBasicSetContainer(null, featureID, msgs);
177
	}
178
179
	/**
180
	 * <!-- begin-user-doc -->
181
	 * <!-- end-user-doc -->
182
	 * @generated
183
	 */
184
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
185
		switch (eDerivedStructuralFeatureID(eFeature)) {
186
			case RTIndexPackage.INDEX__NAME:
187
				return getName();
188
			case RTIndexPackage.INDEX__DESCRIPTION:
189
				return getDescription();
190
			case RTIndexPackage.INDEX__REGISTRY:
191
				return getRegistry();
192
			case RTIndexPackage.INDEX__TAXONOMY:
193
				return getTaxonomy();
194
		}
195
		return eDynamicGet(eFeature, resolve);
196
	}
197
198
	/**
199
	 * <!-- begin-user-doc -->
200
	 * <!-- end-user-doc -->
201
	 * @generated
202
	 */
203
	public void eSet(EStructuralFeature eFeature, Object newValue) {
204
		switch (eDerivedStructuralFeatureID(eFeature)) {
205
			case RTIndexPackage.INDEX__NAME:
206
				getName().clear();
207
				getName().addAll((Collection)newValue);
208
				return;
209
			case RTIndexPackage.INDEX__DESCRIPTION:
210
				getDescription().clear();
211
				getDescription().addAll((Collection)newValue);
212
				return;
213
			case RTIndexPackage.INDEX__REGISTRY:
214
				getRegistry().clear();
215
				getRegistry().addAll((Collection)newValue);
216
				return;
217
			case RTIndexPackage.INDEX__TAXONOMY:
218
				getTaxonomy().clear();
219
				getTaxonomy().addAll((Collection)newValue);
220
				return;
221
		}
222
		eDynamicSet(eFeature, newValue);
223
	}
224
225
	/**
226
	 * <!-- begin-user-doc -->
227
	 * <!-- end-user-doc -->
228
	 * @generated
229
	 */
230
	public void eUnset(EStructuralFeature eFeature) {
231
		switch (eDerivedStructuralFeatureID(eFeature)) {
232
			case RTIndexPackage.INDEX__NAME:
233
				getName().clear();
234
				return;
235
			case RTIndexPackage.INDEX__DESCRIPTION:
236
				getDescription().clear();
237
				return;
238
			case RTIndexPackage.INDEX__REGISTRY:
239
				getRegistry().clear();
240
				return;
241
			case RTIndexPackage.INDEX__TAXONOMY:
242
				getTaxonomy().clear();
243
				return;
244
		}
245
		eDynamicUnset(eFeature);
246
	}
247
248
	/**
249
	 * <!-- begin-user-doc -->
250
	 * <!-- end-user-doc -->
251
	 * @generated
252
	 */
253
	public boolean eIsSet(EStructuralFeature eFeature) {
254
		switch (eDerivedStructuralFeatureID(eFeature)) {
255
			case RTIndexPackage.INDEX__NAME:
256
				return name != null && !name.isEmpty();
257
			case RTIndexPackage.INDEX__DESCRIPTION:
258
				return description != null && !description.isEmpty();
259
			case RTIndexPackage.INDEX__REGISTRY:
260
				return registry != null && !registry.isEmpty();
261
			case RTIndexPackage.INDEX__TAXONOMY:
262
				return taxonomy != null && !taxonomy.isEmpty();
263
		}
264
		return eDynamicIsSet(eFeature);
265
	}
266
267
} //IndexImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/NameImpl.java (+216 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.impl;
8
9
import org.eclipse.emf.common.notify.Notification;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EStructuralFeature;
13
14
import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
import org.eclipse.emf.ecore.impl.EObjectImpl;
16
17
import org.eclipse.wst.ws.internal.model.v10.rtindex.Name;
18
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * An implementation of the model object '<em><b>Name</b></em>'.
23
 * <!-- end-user-doc -->
24
 * <p>
25
 * The following features are implemented:
26
 * <ul>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl#getValue <em>Value</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.rtindex.impl.NameImpl#getLang <em>Lang</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @generated
33
 */
34
public class NameImpl extends EObjectImpl implements Name {
35
	/**
36
	 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @see #getValue()
40
	 * @generated
41
	 * @ordered
42
	 */
43
	protected static final String VALUE_EDEFAULT = null;
44
45
	/**
46
	 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @see #getValue()
50
	 * @generated
51
	 * @ordered
52
	 */
53
	protected String value = VALUE_EDEFAULT;
54
55
	/**
56
	 * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @see #getLang()
60
	 * @generated
61
	 * @ordered
62
	 */
63
	protected static final String LANG_EDEFAULT = null;
64
65
	/**
66
	 * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @see #getLang()
70
	 * @generated
71
	 * @ordered
72
	 */
73
	protected String lang = LANG_EDEFAULT;
74
75
	/**
76
	 * <!-- begin-user-doc -->
77
	 * <!-- end-user-doc -->
78
	 * @generated
79
	 */
80
	protected NameImpl() {
81
		super();
82
	}
83
84
	/**
85
	 * <!-- begin-user-doc -->
86
	 * <!-- end-user-doc -->
87
	 * @generated
88
	 */
89
	protected EClass eStaticClass() {
90
		return RTIndexPackage.eINSTANCE.getName_();
91
	}
92
93
	/**
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @generated
97
	 */
98
	public String getValue() {
99
		return value;
100
	}
101
102
	/**
103
	 * <!-- begin-user-doc -->
104
	 * <!-- end-user-doc -->
105
	 * @generated
106
	 */
107
	public void setValue(String newValue) {
108
		String oldValue = value;
109
		value = newValue;
110
		if (eNotificationRequired())
111
			eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.NAME__VALUE, oldValue, value));
112
	}
113
114
	/**
115
	 * <!-- begin-user-doc -->
116
	 * <!-- end-user-doc -->
117
	 * @generated
118
	 */
119
	public String getLang() {
120
		return lang;
121
	}
122
123
	/**
124
	 * <!-- begin-user-doc -->
125
	 * <!-- end-user-doc -->
126
	 * @generated
127
	 */
128
	public void setLang(String newLang) {
129
		String oldLang = lang;
130
		lang = newLang;
131
		if (eNotificationRequired())
132
			eNotify(new ENotificationImpl(this, Notification.SET, RTIndexPackage.NAME__LANG, oldLang, lang));
133
	}
134
135
	/**
136
	 * <!-- begin-user-doc -->
137
	 * <!-- end-user-doc -->
138
	 * @generated
139
	 */
140
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
141
		switch (eDerivedStructuralFeatureID(eFeature)) {
142
			case RTIndexPackage.NAME__VALUE:
143
				return getValue();
144
			case RTIndexPackage.NAME__LANG:
145
				return getLang();
146
		}
147
		return eDynamicGet(eFeature, resolve);
148
	}
149
150
	/**
151
	 * <!-- begin-user-doc -->
152
	 * <!-- end-user-doc -->
153
	 * @generated
154
	 */
155
	public void eSet(EStructuralFeature eFeature, Object newValue) {
156
		switch (eDerivedStructuralFeatureID(eFeature)) {
157
			case RTIndexPackage.NAME__VALUE:
158
				setValue((String)newValue);
159
				return;
160
			case RTIndexPackage.NAME__LANG:
161
				setLang((String)newValue);
162
				return;
163
		}
164
		eDynamicSet(eFeature, newValue);
165
	}
166
167
	/**
168
	 * <!-- begin-user-doc -->
169
	 * <!-- end-user-doc -->
170
	 * @generated
171
	 */
172
	public void eUnset(EStructuralFeature eFeature) {
173
		switch (eDerivedStructuralFeatureID(eFeature)) {
174
			case RTIndexPackage.NAME__VALUE:
175
				setValue(VALUE_EDEFAULT);
176
				return;
177
			case RTIndexPackage.NAME__LANG:
178
				setLang(LANG_EDEFAULT);
179
				return;
180
		}
181
		eDynamicUnset(eFeature);
182
	}
183
184
	/**
185
	 * <!-- begin-user-doc -->
186
	 * <!-- end-user-doc -->
187
	 * @generated
188
	 */
189
	public boolean eIsSet(EStructuralFeature eFeature) {
190
		switch (eDerivedStructuralFeatureID(eFeature)) {
191
			case RTIndexPackage.NAME__VALUE:
192
				return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
193
			case RTIndexPackage.NAME__LANG:
194
				return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
195
		}
196
		return eDynamicIsSet(eFeature);
197
	}
198
199
	/**
200
	 * <!-- begin-user-doc -->
201
	 * <!-- end-user-doc -->
202
	 * @generated
203
	 */
204
	public String toString() {
205
		if (eIsProxy()) return super.toString();
206
207
		StringBuffer result = new StringBuffer(super.toString());
208
		result.append(" (value: ");
209
		result.append(value);
210
		result.append(", lang: ");
211
		result.append(lang);
212
		result.append(')');
213
		return result.toString();
214
	}
215
216
} //NameImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexFactoryImpl.java (+108 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.impl;
8
9
import org.eclipse.emf.ecore.EClass;
10
import org.eclipse.emf.ecore.EObject;
11
12
import org.eclipse.emf.ecore.impl.EFactoryImpl;
13
14
import org.eclipse.wst.ws.internal.model.v10.rtindex.*;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * An implementation of the model <b>Factory</b>.
19
 * <!-- end-user-doc -->
20
 * @generated
21
 */
22
public class RTIndexFactoryImpl extends EFactoryImpl implements RTIndexFactory {
23
	/**
24
	 * Creates and instance of the factory.
25
	 * <!-- begin-user-doc -->
26
	 * <!-- end-user-doc -->
27
	 * @generated
28
	 */
29
	public RTIndexFactoryImpl() {
30
		super();
31
	}
32
33
	/**
34
	 * <!-- begin-user-doc -->
35
	 * <!-- end-user-doc -->
36
	 * @generated
37
	 */
38
	public EObject create(EClass eClass) {
39
		switch (eClass.getClassifierID()) {
40
			case RTIndexPackage.DESCRIPTION: return createDescription();
41
			case RTIndexPackage.DOCUMENT_ROOT: return createDocumentRoot();
42
			case RTIndexPackage.INDEX: return createIndex();
43
			case RTIndexPackage.NAME: return createName();
44
			default:
45
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
46
		}
47
	}
48
49
	/**
50
	 * <!-- begin-user-doc -->
51
	 * <!-- end-user-doc -->
52
	 * @generated
53
	 */
54
	public Description createDescription() {
55
		DescriptionImpl description = new DescriptionImpl();
56
		return description;
57
	}
58
59
	/**
60
	 * <!-- begin-user-doc -->
61
	 * <!-- end-user-doc -->
62
	 * @generated
63
	 */
64
	public DocumentRoot createDocumentRoot() {
65
		DocumentRootImpl documentRoot = new DocumentRootImpl();
66
		return documentRoot;
67
	}
68
69
	/**
70
	 * <!-- begin-user-doc -->
71
	 * <!-- end-user-doc -->
72
	 * @generated
73
	 */
74
	public Index createIndex() {
75
		IndexImpl index = new IndexImpl();
76
		return index;
77
	}
78
79
	/**
80
	 * <!-- begin-user-doc -->
81
	 * <!-- end-user-doc -->
82
	 * @generated
83
	 */
84
	public Name createName() {
85
		NameImpl name = new NameImpl();
86
		return name;
87
	}
88
89
	/**
90
	 * <!-- begin-user-doc -->
91
	 * <!-- end-user-doc -->
92
	 * @generated
93
	 */
94
	public RTIndexPackage getRTIndexPackage() {
95
		return (RTIndexPackage)getEPackage();
96
	}
97
98
	/**
99
	 * <!-- begin-user-doc -->
100
	 * <!-- end-user-doc -->
101
	 * @deprecated
102
	 * @generated
103
	 */
104
	public static RTIndexPackage getPackage() {
105
		return RTIndexPackage.eINSTANCE;
106
	}
107
108
} //RTIndexFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/impl/RTIndexPackageImpl.java (+573 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.impl;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
import org.eclipse.emf.ecore.impl.EPackageImpl;
15
16
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
17
18
import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl;
19
20
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
21
22
import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl;
23
24
import org.eclipse.wst.ws.internal.model.v10.rtindex.Description;
25
import org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot;
26
import org.eclipse.wst.ws.internal.model.v10.rtindex.Index;
27
import org.eclipse.wst.ws.internal.model.v10.rtindex.Name;
28
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexFactory;
29
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
30
31
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
32
33
import org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl;
34
35
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
36
37
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl;
38
39
/**
40
 * <!-- begin-user-doc -->
41
 * An implementation of the model <b>Package</b>.
42
 * <!-- end-user-doc -->
43
 * @generated
44
 */
45
public class RTIndexPackageImpl extends EPackageImpl implements RTIndexPackage {
46
	/**
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @generated
50
	 */
51
	private EClass descriptionEClass = null;
52
53
	/**
54
	 * <!-- begin-user-doc -->
55
	 * <!-- end-user-doc -->
56
	 * @generated
57
	 */
58
	private EClass documentRootEClass = null;
59
60
	/**
61
	 * <!-- begin-user-doc -->
62
	 * <!-- end-user-doc -->
63
	 * @generated
64
	 */
65
	private EClass indexEClass = null;
66
67
	/**
68
	 * <!-- begin-user-doc -->
69
	 * <!-- end-user-doc -->
70
	 * @generated
71
	 */
72
	private EClass nameEClass = null;
73
74
	/**
75
	 * Creates an instance of the model <b>Package</b>, registered with
76
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
77
	 * package URI value.
78
	 * <p>Note: the correct way to create the package is via the static
79
	 * factory method {@link #init init()}, which also performs
80
	 * initialization of the package, or returns the registered package,
81
	 * if one already exists.
82
	 * <!-- begin-user-doc -->
83
	 * <!-- end-user-doc -->
84
	 * @see org.eclipse.emf.ecore.EPackage.Registry
85
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage#eNS_URI
86
	 * @see #init()
87
	 * @generated
88
	 */
89
	private RTIndexPackageImpl() {
90
		super(eNS_URI, RTIndexFactory.eINSTANCE);
91
	}
92
93
	/**
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @generated
97
	 */
98
	private static boolean isInited = false;
99
100
	/**
101
	 * Creates, registers, and initializes the <b>Package</b> for this
102
	 * model, and for any others upon which it depends.  Simple
103
	 * dependencies are satisfied by calling this method on all
104
	 * dependent packages before doing anything else.  This method drives
105
	 * initialization for interdependent packages directly, in parallel
106
	 * with this package, itself.
107
	 * <p>Of this package and its interdependencies, all packages which
108
	 * have not yet been registered by their URI values are first created
109
	 * and registered.  The packages are then initialized in two steps:
110
	 * meta-model objects for all of the packages are created before any
111
	 * are initialized, since one package's meta-model objects may refer to
112
	 * those of another.
113
	 * <p>Invocation of this method will not affect any packages that have
114
	 * already been initialized.
115
	 * <!-- begin-user-doc -->
116
	 * <!-- end-user-doc -->
117
	 * @see #eNS_URI
118
	 * @see #createPackageContents()
119
	 * @see #initializePackageContents()
120
	 * @generated
121
	 */
122
	public static RTIndexPackage init() {
123
		if (isInited) return (RTIndexPackage)EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI);
124
125
		// Obtain or create and register package
126
		RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new RTIndexPackageImpl());
127
128
		isInited = true;
129
130
		// Initialize simple dependencies
131
		XMLTypePackageImpl.init();
132
133
		// Obtain or create and register interdependencies
134
		TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) : TaxonomyPackageImpl.eINSTANCE);
135
		RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) : RegistryPackageImpl.eINSTANCE);
136
		UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) : UDDIRegistryPackageImpl.eINSTANCE);
137
138
		// Create package meta-data objects
139
		theRTIndexPackage.createPackageContents();
140
		theTaxonomyPackage.createPackageContents();
141
		theRegistryPackage.createPackageContents();
142
		theUDDIRegistryPackage.createPackageContents();
143
144
		// Initialize created meta-data
145
		theRTIndexPackage.initializePackageContents();
146
		theTaxonomyPackage.initializePackageContents();
147
		theRegistryPackage.initializePackageContents();
148
		theUDDIRegistryPackage.initializePackageContents();
149
150
		// Mark meta-data to indicate it can't be changed
151
		theRTIndexPackage.freeze();
152
153
		return theRTIndexPackage;
154
	}
155
156
	/**
157
	 * <!-- begin-user-doc -->
158
	 * <!-- end-user-doc -->
159
	 * @generated
160
	 */
161
	public EClass getDescription() {
162
		return descriptionEClass;
163
	}
164
165
	/**
166
	 * <!-- begin-user-doc -->
167
	 * <!-- end-user-doc -->
168
	 * @generated
169
	 */
170
	public EAttribute getDescription_Value() {
171
		return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0);
172
	}
173
174
	/**
175
	 * <!-- begin-user-doc -->
176
	 * <!-- end-user-doc -->
177
	 * @generated
178
	 */
179
	public EAttribute getDescription_Lang() {
180
		return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1);
181
	}
182
183
	/**
184
	 * <!-- begin-user-doc -->
185
	 * <!-- end-user-doc -->
186
	 * @generated
187
	 */
188
	public EClass getDocumentRoot() {
189
		return documentRootEClass;
190
	}
191
192
	/**
193
	 * <!-- begin-user-doc -->
194
	 * <!-- end-user-doc -->
195
	 * @generated
196
	 */
197
	public EAttribute getDocumentRoot_Mixed() {
198
		return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
199
	}
200
201
	/**
202
	 * <!-- begin-user-doc -->
203
	 * <!-- end-user-doc -->
204
	 * @generated
205
	 */
206
	public EReference getDocumentRoot_XMLNSPrefixMap() {
207
		return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
208
	}
209
210
	/**
211
	 * <!-- begin-user-doc -->
212
	 * <!-- end-user-doc -->
213
	 * @generated
214
	 */
215
	public EReference getDocumentRoot_XSISchemaLocation() {
216
		return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
217
	}
218
219
	/**
220
	 * <!-- begin-user-doc -->
221
	 * <!-- end-user-doc -->
222
	 * @generated
223
	 */
224
	public EReference getDocumentRoot_Description() {
225
		return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
226
	}
227
228
	/**
229
	 * <!-- begin-user-doc -->
230
	 * <!-- end-user-doc -->
231
	 * @generated
232
	 */
233
	public EReference getDocumentRoot_Index() {
234
		return (EReference)documentRootEClass.getEStructuralFeatures().get(4);
235
	}
236
237
	/**
238
	 * <!-- begin-user-doc -->
239
	 * <!-- end-user-doc -->
240
	 * @generated
241
	 */
242
	public EReference getDocumentRoot_Name() {
243
		return (EReference)documentRootEClass.getEStructuralFeatures().get(5);
244
	}
245
246
	/**
247
	 * <!-- begin-user-doc -->
248
	 * <!-- end-user-doc -->
249
	 * @generated
250
	 */
251
	public EClass getIndex() {
252
		return indexEClass;
253
	}
254
255
	/**
256
	 * <!-- begin-user-doc -->
257
	 * <!-- end-user-doc -->
258
	 * @generated
259
	 */
260
	public EReference getIndex_Name() {
261
		return (EReference)indexEClass.getEStructuralFeatures().get(0);
262
	}
263
264
	/**
265
	 * <!-- begin-user-doc -->
266
	 * <!-- end-user-doc -->
267
	 * @generated
268
	 */
269
	public EReference getIndex_Description() {
270
		return (EReference)indexEClass.getEStructuralFeatures().get(1);
271
	}
272
273
	/**
274
	 * <!-- begin-user-doc -->
275
	 * <!-- end-user-doc -->
276
	 * @generated
277
	 */
278
	public EReference getIndex_Registry() {
279
		return (EReference)indexEClass.getEStructuralFeatures().get(2);
280
	}
281
282
	/**
283
	 * <!-- begin-user-doc -->
284
	 * <!-- end-user-doc -->
285
	 * @generated
286
	 */
287
	public EReference getIndex_Taxonomy() {
288
		return (EReference)indexEClass.getEStructuralFeatures().get(3);
289
	}
290
291
	/**
292
	 * <!-- begin-user-doc -->
293
	 * <!-- end-user-doc -->
294
	 * @generated
295
	 */
296
	public EClass getName_() {
297
		return nameEClass;
298
	}
299
300
	/**
301
	 * <!-- begin-user-doc -->
302
	 * <!-- end-user-doc -->
303
	 * @generated
304
	 */
305
	public EAttribute getName_Value() {
306
		return (EAttribute)nameEClass.getEStructuralFeatures().get(0);
307
	}
308
309
	/**
310
	 * <!-- begin-user-doc -->
311
	 * <!-- end-user-doc -->
312
	 * @generated
313
	 */
314
	public EAttribute getName_Lang() {
315
		return (EAttribute)nameEClass.getEStructuralFeatures().get(1);
316
	}
317
318
	/**
319
	 * <!-- begin-user-doc -->
320
	 * <!-- end-user-doc -->
321
	 * @generated
322
	 */
323
	public RTIndexFactory getRTIndexFactory() {
324
		return (RTIndexFactory)getEFactoryInstance();
325
	}
326
327
	/**
328
	 * <!-- begin-user-doc -->
329
	 * <!-- end-user-doc -->
330
	 * @generated
331
	 */
332
	private boolean isCreated = false;
333
334
	/**
335
	 * Creates the meta-model objects for the package.  This method is
336
	 * guarded to have no affect on any invocation but its first.
337
	 * <!-- begin-user-doc -->
338
	 * <!-- end-user-doc -->
339
	 * @generated
340
	 */
341
	public void createPackageContents() {
342
		if (isCreated) return;
343
		isCreated = true;
344
345
		// Create classes and their features
346
		descriptionEClass = createEClass(DESCRIPTION);
347
		createEAttribute(descriptionEClass, DESCRIPTION__VALUE);
348
		createEAttribute(descriptionEClass, DESCRIPTION__LANG);
349
350
		documentRootEClass = createEClass(DOCUMENT_ROOT);
351
		createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
352
		createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
353
		createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
354
		createEReference(documentRootEClass, DOCUMENT_ROOT__DESCRIPTION);
355
		createEReference(documentRootEClass, DOCUMENT_ROOT__INDEX);
356
		createEReference(documentRootEClass, DOCUMENT_ROOT__NAME);
357
358
		indexEClass = createEClass(INDEX);
359
		createEReference(indexEClass, INDEX__NAME);
360
		createEReference(indexEClass, INDEX__DESCRIPTION);
361
		createEReference(indexEClass, INDEX__REGISTRY);
362
		createEReference(indexEClass, INDEX__TAXONOMY);
363
364
		nameEClass = createEClass(NAME);
365
		createEAttribute(nameEClass, NAME__VALUE);
366
		createEAttribute(nameEClass, NAME__LANG);
367
	}
368
369
	/**
370
	 * <!-- begin-user-doc -->
371
	 * <!-- end-user-doc -->
372
	 * @generated
373
	 */
374
	private boolean isInitialized = false;
375
376
	/**
377
	 * Complete the initialization of the package and its meta-model.  This
378
	 * method is guarded to have no affect on any invocation but its first.
379
	 * <!-- begin-user-doc -->
380
	 * <!-- end-user-doc -->
381
	 * @generated
382
	 */
383
	public void initializePackageContents() {
384
		if (isInitialized) return;
385
		isInitialized = true;
386
387
		// Initialize package
388
		setName(eNAME);
389
		setNsPrefix(eNS_PREFIX);
390
		setNsURI(eNS_URI);
391
392
		// Obtain other dependent packages
393
		XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
394
		RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI);
395
		TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI);
396
397
		// Add supertypes to classes
398
399
		// Initialize classes and features; add operations and parameters
400
		initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
401
		initEAttribute(getDescription_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
402
		initEAttribute(getDescription_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
403
404
		initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
405
		initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
406
		initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
407
		initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
408
		initEReference(getDocumentRoot_Description(), this.getDescription(), null, "description", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
409
		initEReference(getDocumentRoot_Index(), this.getIndex(), null, "index", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
410
		initEReference(getDocumentRoot_Name(), this.getName_(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
411
412
		initEClass(indexEClass, Index.class, "Index", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
413
		initEReference(getIndex_Name(), this.getName_(), null, "name", null, 1, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
414
		initEReference(getIndex_Description(), this.getDescription(), null, "description", null, 1, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
415
		initEReference(getIndex_Registry(), theRegistryPackage.getRegistry(), null, "registry", null, 0, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
416
		initEReference(getIndex_Taxonomy(), theTaxonomyPackage.getTaxonomy(), null, "taxonomy", null, 0, -1, Index.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
417
418
		initEClass(nameEClass, Name.class, "Name", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
419
		initEAttribute(getName_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
420
		initEAttribute(getName_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
421
422
		// Create resource
423
		createResource(eNS_URI);
424
425
		// Create annotations
426
		// http:///org/eclipse/emf/ecore/util/ExtendedMetaData
427
		createExtendedMetaDataAnnotations();
428
	}
429
430
	/**
431
	 * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
432
	 * <!-- begin-user-doc -->
433
	 * <!-- end-user-doc -->
434
	 * @generated
435
	 */
436
	protected void createExtendedMetaDataAnnotations() {
437
		String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";			
438
		addAnnotation
439
		  (descriptionEClass, 
440
		   source, 
441
		   new String[] {
442
			 "name", "Description",
443
			 "kind", "simple"
444
		   });		
445
		addAnnotation
446
		  (getDescription_Value(), 
447
		   source, 
448
		   new String[] {
449
			 "name", ":0",
450
			 "kind", "simple"
451
		   });		
452
		addAnnotation
453
		  (getDescription_Lang(), 
454
		   source, 
455
		   new String[] {
456
			 "kind", "attribute",
457
			 "name", "lang",
458
			 "namespace", "http://www.w3.org/XML/1998/namespace"
459
		   });		
460
		addAnnotation
461
		  (documentRootEClass, 
462
		   source, 
463
		   new String[] {
464
			 "name", "",
465
			 "kind", "mixed"
466
		   });		
467
		addAnnotation
468
		  (getDocumentRoot_Mixed(), 
469
		   source, 
470
		   new String[] {
471
			 "kind", "elementWildcard",
472
			 "name", ":mixed"
473
		   });		
474
		addAnnotation
475
		  (getDocumentRoot_XMLNSPrefixMap(), 
476
		   source, 
477
		   new String[] {
478
			 "kind", "attribute",
479
			 "name", "xmlns:prefix"
480
		   });		
481
		addAnnotation
482
		  (getDocumentRoot_XSISchemaLocation(), 
483
		   source, 
484
		   new String[] {
485
			 "kind", "attribute",
486
			 "name", "xsi:schemaLocation"
487
		   });		
488
		addAnnotation
489
		  (getDocumentRoot_Description(), 
490
		   source, 
491
		   new String[] {
492
			 "kind", "element",
493
			 "name", "description",
494
			 "namespace", "##targetNamespace"
495
		   });		
496
		addAnnotation
497
		  (getDocumentRoot_Index(), 
498
		   source, 
499
		   new String[] {
500
			 "kind", "element",
501
			 "name", "index",
502
			 "namespace", "##targetNamespace"
503
		   });		
504
		addAnnotation
505
		  (getDocumentRoot_Name(), 
506
		   source, 
507
		   new String[] {
508
			 "kind", "element",
509
			 "name", "name",
510
			 "namespace", "##targetNamespace"
511
		   });		
512
		addAnnotation
513
		  (indexEClass, 
514
		   source, 
515
		   new String[] {
516
			 "name", "Index",
517
			 "kind", "elementOnly"
518
		   });		
519
		addAnnotation
520
		  (getIndex_Name(), 
521
		   source, 
522
		   new String[] {
523
			 "kind", "element",
524
			 "name", "name"
525
		   });		
526
		addAnnotation
527
		  (getIndex_Description(), 
528
		   source, 
529
		   new String[] {
530
			 "kind", "element",
531
			 "name", "description"
532
		   });		
533
		addAnnotation
534
		  (getIndex_Registry(), 
535
		   source, 
536
		   new String[] {
537
			 "kind", "element",
538
			 "name", "registry",
539
			 "namespace", "http://eclipse.org/wst/ws/internal/model/v10/registry"
540
		   });		
541
		addAnnotation
542
		  (getIndex_Taxonomy(), 
543
		   source, 
544
		   new String[] {
545
			 "kind", "element",
546
			 "name", "taxonomy",
547
			 "namespace", "http://eclipse.org/wst/ws/internal/model/v10/taxonomy"
548
		   });		
549
		addAnnotation
550
		  (nameEClass, 
551
		   source, 
552
		   new String[] {
553
			 "name", "Name",
554
			 "kind", "simple"
555
		   });		
556
		addAnnotation
557
		  (getName_Value(), 
558
		   source, 
559
		   new String[] {
560
			 "name", ":0",
561
			 "kind", "simple"
562
		   });		
563
		addAnnotation
564
		  (getName_Lang(), 
565
		   source, 
566
		   new String[] {
567
			 "kind", "attribute",
568
			 "name", "lang",
569
			 "namespace", "http://www.w3.org/XML/1998/namespace"
570
		   });
571
	}
572
573
} //RTIndexPackageImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexAdapterFactory.java (+171 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.util;
8
9
import org.eclipse.emf.common.notify.Adapter;
10
import org.eclipse.emf.common.notify.Notifier;
11
12
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13
14
import org.eclipse.emf.ecore.EObject;
15
16
import org.eclipse.wst.ws.internal.model.v10.rtindex.*;
17
18
/**
19
 * <!-- begin-user-doc -->
20
 * The <b>Adapter Factory</b> for the model.
21
 * It provides an adapter <code>createXXX</code> method for each class of the model.
22
 * <!-- end-user-doc -->
23
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage
24
 * @generated
25
 */
26
public class RTIndexAdapterFactory extends AdapterFactoryImpl {
27
	/**
28
	 * The cached model package.
29
	 * <!-- begin-user-doc -->
30
	 * <!-- end-user-doc -->
31
	 * @generated
32
	 */
33
	protected static RTIndexPackage modelPackage;
34
35
	/**
36
	 * Creates an instance of the adapter factory.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @generated
40
	 */
41
	public RTIndexAdapterFactory() {
42
		if (modelPackage == null) {
43
			modelPackage = RTIndexPackage.eINSTANCE;
44
		}
45
	}
46
47
	/**
48
	 * Returns whether this factory is applicable for the type of the object.
49
	 * <!-- begin-user-doc -->
50
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
51
	 * <!-- end-user-doc -->
52
	 * @return whether this factory is applicable for the type of the object.
53
	 * @generated
54
	 */
55
	public boolean isFactoryForType(Object object) {
56
		if (object == modelPackage) {
57
			return true;
58
		}
59
		if (object instanceof EObject) {
60
			return ((EObject)object).eClass().getEPackage() == modelPackage;
61
		}
62
		return false;
63
	}
64
65
	/**
66
	 * The switch the delegates to the <code>createXXX</code> methods.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @generated
70
	 */
71
	protected RTIndexSwitch modelSwitch =
72
		new RTIndexSwitch() {
73
			public Object caseDescription(Description object) {
74
				return createDescriptionAdapter();
75
			}
76
			public Object caseDocumentRoot(DocumentRoot object) {
77
				return createDocumentRootAdapter();
78
			}
79
			public Object caseIndex(Index object) {
80
				return createIndexAdapter();
81
			}
82
			public Object caseName(Name object) {
83
				return createNameAdapter();
84
			}
85
			public Object defaultCase(EObject object) {
86
				return createEObjectAdapter();
87
			}
88
		};
89
90
	/**
91
	 * Creates an adapter for the <code>target</code>.
92
	 * <!-- begin-user-doc -->
93
	 * <!-- end-user-doc -->
94
	 * @param target the object to adapt.
95
	 * @return the adapter for the <code>target</code>.
96
	 * @generated
97
	 */
98
	public Adapter createAdapter(Notifier target) {
99
		return (Adapter)modelSwitch.doSwitch((EObject)target);
100
	}
101
102
103
	/**
104
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Description <em>Description</em>}'.
105
	 * <!-- begin-user-doc -->
106
	 * This default implementation returns null so that we can easily ignore cases;
107
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
108
	 * <!-- end-user-doc -->
109
	 * @return the new adapter.
110
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Description
111
	 * @generated
112
	 */
113
	public Adapter createDescriptionAdapter() {
114
		return null;
115
	}
116
117
	/**
118
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot <em>Document Root</em>}'.
119
	 * <!-- begin-user-doc -->
120
	 * This default implementation returns null so that we can easily ignore cases;
121
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
122
	 * <!-- end-user-doc -->
123
	 * @return the new adapter.
124
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.DocumentRoot
125
	 * @generated
126
	 */
127
	public Adapter createDocumentRootAdapter() {
128
		return null;
129
	}
130
131
	/**
132
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Index <em>Index</em>}'.
133
	 * <!-- begin-user-doc -->
134
	 * This default implementation returns null so that we can easily ignore cases;
135
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
136
	 * <!-- end-user-doc -->
137
	 * @return the new adapter.
138
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Index
139
	 * @generated
140
	 */
141
	public Adapter createIndexAdapter() {
142
		return null;
143
	}
144
145
	/**
146
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.rtindex.Name <em>Name</em>}'.
147
	 * <!-- begin-user-doc -->
148
	 * This default implementation returns null so that we can easily ignore cases;
149
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
	 * <!-- end-user-doc -->
151
	 * @return the new adapter.
152
	 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.Name
153
	 * @generated
154
	 */
155
	public Adapter createNameAdapter() {
156
		return null;
157
	}
158
159
	/**
160
	 * Creates a new adapter for the default case.
161
	 * <!-- begin-user-doc -->
162
	 * This default implementation returns null.
163
	 * <!-- end-user-doc -->
164
	 * @return the new adapter.
165
	 * @generated
166
	 */
167
	public Adapter createEObjectAdapter() {
168
		return null;
169
	}
170
171
} //RTIndexAdapterFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceFactoryImpl.java (+63 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.resource.Resource;
12
13
import org.eclipse.emf.ecore.util.ExtendedMetaData;
14
15
import org.eclipse.emf.ecore.xmi.XMLResource;
16
17
import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl;
18
19
/**
20
 * <!-- begin-user-doc -->
21
 * The <b>Resource Factory</b> associated with the package.
22
 * <!-- end-user-doc -->
23
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.util.RTIndexResourceImpl
24
 * @generated
25
 */
26
public class RTIndexResourceFactoryImpl extends XMLResourceFactoryImpl {
27
	/**
28
	 * <!-- begin-user-doc -->
29
	 * <!-- end-user-doc -->
30
	 * @generated
31
	 */
32
	protected ExtendedMetaData extendedMetaData;
33
34
	/**
35
	 * Creates an instance of the resource factory.
36
	 * <!-- begin-user-doc -->
37
	 * <!-- end-user-doc -->
38
	 * @generated
39
	 */
40
	public RTIndexResourceFactoryImpl() {
41
		super();
42
		extendedMetaData = ExtendedMetaData.INSTANCE;
43
	}
44
45
	/**
46
	 * Creates an instance of the resource.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @generated
50
	 */
51
	public Resource createResource(URI uri) {
52
		XMLResource result = new RTIndexResourceImpl(uri);
53
		result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
54
		result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
55
56
		result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
57
		result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
58
59
		result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
60
		return result;
61
	}
62
63
} //RTIndexResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexResourceImpl.java (+32 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * The <b>Resource </b> associated with the package.
16
 * <!-- end-user-doc -->
17
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.util.RTIndexResourceFactoryImpl
18
 * @generated
19
 */
20
public class RTIndexResourceImpl extends XMLResourceImpl {
21
	/**
22
	 * Creates an instance of the resource.
23
	 * <!-- begin-user-doc -->
24
	 * <!-- end-user-doc -->
25
	 * @param uri the URI of the new resource.
26
	 * @generated
27
	 */
28
	public RTIndexResourceImpl(URI uri) {
29
		super(uri);
30
	}
31
32
} //RTIndexResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/rtindex/util/RTIndexSwitch.java (+193 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.rtindex.util;
8
9
import java.util.List;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EObject;
13
14
import org.eclipse.wst.ws.internal.model.v10.rtindex.*;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * The <b>Switch</b> for the model's inheritance hierarchy.
19
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
20
 * to invoke the <code>caseXXX</code> method for each class of the model,
21
 * starting with the actual class of the object
22
 * and proceeding up the inheritance hierarchy
23
 * until a non-null result is returned,
24
 * which is the result of the switch.
25
 * <!-- end-user-doc -->
26
 * @see org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage
27
 * @generated
28
 */
29
public class RTIndexSwitch {
30
	/**
31
	 * The cached model package
32
	 * <!-- begin-user-doc -->
33
	 * <!-- end-user-doc -->
34
	 * @generated
35
	 */
36
	protected static RTIndexPackage modelPackage;
37
38
	/**
39
	 * Creates an instance of the switch.
40
	 * <!-- begin-user-doc -->
41
	 * <!-- end-user-doc -->
42
	 * @generated
43
	 */
44
	public RTIndexSwitch() {
45
		if (modelPackage == null) {
46
			modelPackage = RTIndexPackage.eINSTANCE;
47
		}
48
	}
49
50
	/**
51
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
52
	 * <!-- begin-user-doc -->
53
	 * <!-- end-user-doc -->
54
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
55
	 * @generated
56
	 */
57
	public Object doSwitch(EObject theEObject) {
58
		return doSwitch(theEObject.eClass(), theEObject);
59
	}
60
61
	/**
62
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
63
	 * <!-- begin-user-doc -->
64
	 * <!-- end-user-doc -->
65
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
66
	 * @generated
67
	 */
68
	protected Object doSwitch(EClass theEClass, EObject theEObject) {
69
		if (theEClass.eContainer() == modelPackage) {
70
			return doSwitch(theEClass.getClassifierID(), theEObject);
71
		}
72
		else {
73
			List eSuperTypes = theEClass.getESuperTypes();
74
			return
75
				eSuperTypes.isEmpty() ?
76
					defaultCase(theEObject) :
77
					doSwitch((EClass)eSuperTypes.get(0), theEObject);
78
		}
79
	}
80
81
	/**
82
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
83
	 * <!-- begin-user-doc -->
84
	 * <!-- end-user-doc -->
85
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
86
	 * @generated
87
	 */
88
	protected Object doSwitch(int classifierID, EObject theEObject) {
89
		switch (classifierID) {
90
			case RTIndexPackage.DESCRIPTION: {
91
				Description description = (Description)theEObject;
92
				Object result = caseDescription(description);
93
				if (result == null) result = defaultCase(theEObject);
94
				return result;
95
			}
96
			case RTIndexPackage.DOCUMENT_ROOT: {
97
				DocumentRoot documentRoot = (DocumentRoot)theEObject;
98
				Object result = caseDocumentRoot(documentRoot);
99
				if (result == null) result = defaultCase(theEObject);
100
				return result;
101
			}
102
			case RTIndexPackage.INDEX: {
103
				Index index = (Index)theEObject;
104
				Object result = caseIndex(index);
105
				if (result == null) result = defaultCase(theEObject);
106
				return result;
107
			}
108
			case RTIndexPackage.NAME: {
109
				Name name = (Name)theEObject;
110
				Object result = caseName(name);
111
				if (result == null) result = defaultCase(theEObject);
112
				return result;
113
			}
114
			default: return defaultCase(theEObject);
115
		}
116
	}
117
118
	/**
119
	 * Returns the result of interpretting the object as an instance of '<em>Description</em>'.
120
	 * <!-- begin-user-doc -->
121
	 * This implementation returns null;
122
	 * returning a non-null result will terminate the switch.
123
	 * <!-- end-user-doc -->
124
	 * @param object the target of the switch.
125
	 * @return the result of interpretting the object as an instance of '<em>Description</em>'.
126
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
127
	 * @generated
128
	 */
129
	public Object caseDescription(Description object) {
130
		return null;
131
	}
132
133
	/**
134
	 * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
135
	 * <!-- begin-user-doc -->
136
	 * This implementation returns null;
137
	 * returning a non-null result will terminate the switch.
138
	 * <!-- end-user-doc -->
139
	 * @param object the target of the switch.
140
	 * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
141
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
142
	 * @generated
143
	 */
144
	public Object caseDocumentRoot(DocumentRoot object) {
145
		return null;
146
	}
147
148
	/**
149
	 * Returns the result of interpretting the object as an instance of '<em>Index</em>'.
150
	 * <!-- begin-user-doc -->
151
	 * This implementation returns null;
152
	 * returning a non-null result will terminate the switch.
153
	 * <!-- end-user-doc -->
154
	 * @param object the target of the switch.
155
	 * @return the result of interpretting the object as an instance of '<em>Index</em>'.
156
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
157
	 * @generated
158
	 */
159
	public Object caseIndex(Index object) {
160
		return null;
161
	}
162
163
	/**
164
	 * Returns the result of interpretting the object as an instance of '<em>Name</em>'.
165
	 * <!-- begin-user-doc -->
166
	 * This implementation returns null;
167
	 * returning a non-null result will terminate the switch.
168
	 * <!-- end-user-doc -->
169
	 * @param object the target of the switch.
170
	 * @return the result of interpretting the object as an instance of '<em>Name</em>'.
171
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
172
	 * @generated
173
	 */
174
	public Object caseName(Name object) {
175
		return null;
176
	}
177
178
	/**
179
	 * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
180
	 * <!-- begin-user-doc -->
181
	 * This implementation returns null;
182
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
183
	 * <!-- end-user-doc -->
184
	 * @param object the target of the switch.
185
	 * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
186
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
187
	 * @generated
188
	 */
189
	public Object defaultCase(EObject object) {
190
		return null;
191
	}
192
193
} //RTIndexSwitch
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Category.java (+117 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy;
8
9
import org.eclipse.emf.common.util.EList;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * A representation of the model object '<em><b>Category</b></em>'.
16
 * <!-- end-user-doc -->
17
 *
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getNlname <em>Nlname</em>}</li>
22
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCategory <em>Category</em>}</li>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode <em>Code</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName <em>Name</em>}</li>
25
 * </ul>
26
 * </p>
27
 *
28
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory()
29
 * @model 
30
 * @generated
31
 */
32
public interface Category extends EObject {
33
	/**
34
	 * Returns the value of the '<em><b>Nlname</b></em>' containment reference list.
35
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name}.
36
	 * <!-- begin-user-doc -->
37
	 * <p>
38
	 * If the meaning of the '<em>Nlname</em>' containment reference list isn't clear,
39
	 * there really should be more of a description here...
40
	 * </p>
41
	 * <!-- end-user-doc -->
42
	 * @return the value of the '<em>Nlname</em>' containment reference list.
43
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Nlname()
44
	 * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Name" containment="true" resolveProxies="false"
45
	 * @generated
46
	 */
47
	EList getNlname();
48
49
	/**
50
	 * Returns the value of the '<em><b>Category</b></em>' containment reference list.
51
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category}.
52
	 * <!-- begin-user-doc -->
53
	 * <p>
54
	 * If the meaning of the '<em>Category</em>' containment reference list isn't clear,
55
	 * there really should be more of a description here...
56
	 * </p>
57
	 * <!-- end-user-doc -->
58
	 * @return the value of the '<em>Category</em>' containment reference list.
59
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Category()
60
	 * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Category" containment="true" resolveProxies="false"
61
	 * @generated
62
	 */
63
	EList getCategory();
64
65
	/**
66
	 * Returns the value of the '<em><b>Code</b></em>' attribute.
67
	 * <!-- begin-user-doc -->
68
	 * <p>
69
	 * If the meaning of the '<em>Code</em>' attribute isn't clear,
70
	 * there really should be more of a description here...
71
	 * </p>
72
	 * <!-- end-user-doc -->
73
	 * @return the value of the '<em>Code</em>' attribute.
74
	 * @see #setCode(String)
75
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Code()
76
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
77
	 * @generated
78
	 */
79
	String getCode();
80
81
	/**
82
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode <em>Code</em>}' attribute.
83
	 * <!-- begin-user-doc -->
84
	 * <!-- end-user-doc -->
85
	 * @param value the new value of the '<em>Code</em>' attribute.
86
	 * @see #getCode()
87
	 * @generated
88
	 */
89
	void setCode(String value);
90
91
	/**
92
	 * Returns the value of the '<em><b>Name</b></em>' attribute.
93
	 * <!-- begin-user-doc -->
94
	 * <p>
95
	 * If the meaning of the '<em>Name</em>' attribute isn't clear,
96
	 * there really should be more of a description here...
97
	 * </p>
98
	 * <!-- end-user-doc -->
99
	 * @return the value of the '<em>Name</em>' attribute.
100
	 * @see #setName(String)
101
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getCategory_Name()
102
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
103
	 * @generated
104
	 */
105
	String getName();
106
107
	/**
108
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName <em>Name</em>}' attribute.
109
	 * <!-- begin-user-doc -->
110
	 * <!-- end-user-doc -->
111
	 * @param value the new value of the '<em>Name</em>' attribute.
112
	 * @see #getName()
113
	 * @generated
114
	 */
115
	void setName(String value);
116
117
} // Category
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/DocumentRoot.java (+165 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy;
8
9
import org.eclipse.emf.common.util.EMap;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
import org.eclipse.emf.ecore.util.FeatureMap;
14
15
/**
16
 * <!-- begin-user-doc -->
17
 * A representation of the model object '<em><b>Document Root</b></em>'.
18
 * <!-- end-user-doc -->
19
 *
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getMixed <em>Mixed</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
25
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
26
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory <em>Category</em>}</li>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName <em>Name</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy <em>Taxonomy</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot()
33
 * @model 
34
 * @generated
35
 */
36
public interface DocumentRoot extends EObject {
37
	/**
38
	 * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
39
	 * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
40
	 * <!-- begin-user-doc -->
41
	 * <p>
42
	 * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
43
	 * there really should be more of a description here...
44
	 * </p>
45
	 * <!-- end-user-doc -->
46
	 * @return the value of the '<em>Mixed</em>' attribute list.
47
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Mixed()
48
	 * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
49
	 * @generated
50
	 */
51
	FeatureMap getMixed();
52
53
	/**
54
	 * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
55
	 * The key is of type {@link java.lang.String},
56
	 * and the value is of type {@link java.lang.String},
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>XMLNS Prefix Map</em>' map.
64
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_XMLNSPrefixMap()
65
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
66
	 * @generated
67
	 */
68
	EMap getXMLNSPrefixMap();
69
70
	/**
71
	 * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
72
	 * The key is of type {@link java.lang.String},
73
	 * and the value is of type {@link java.lang.String},
74
	 * <!-- begin-user-doc -->
75
	 * <p>
76
	 * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
77
	 * there really should be more of a description here...
78
	 * </p>
79
	 * <!-- end-user-doc -->
80
	 * @return the value of the '<em>XSI Schema Location</em>' map.
81
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_XSISchemaLocation()
82
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
83
	 * @generated
84
	 */
85
	EMap getXSISchemaLocation();
86
87
	/**
88
	 * Returns the value of the '<em><b>Category</b></em>' containment reference.
89
	 * <!-- begin-user-doc -->
90
	 * <p>
91
	 * If the meaning of the '<em>Category</em>' containment reference isn't clear,
92
	 * there really should be more of a description here...
93
	 * </p>
94
	 * <!-- end-user-doc -->
95
	 * @return the value of the '<em>Category</em>' containment reference.
96
	 * @see #setCategory(Category)
97
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Category()
98
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
99
	 * @generated
100
	 */
101
	Category getCategory();
102
103
	/**
104
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory <em>Category</em>}' containment reference.
105
	 * <!-- begin-user-doc -->
106
	 * <!-- end-user-doc -->
107
	 * @param value the new value of the '<em>Category</em>' containment reference.
108
	 * @see #getCategory()
109
	 * @generated
110
	 */
111
	void setCategory(Category value);
112
113
	/**
114
	 * Returns the value of the '<em><b>Name</b></em>' containment reference.
115
	 * <!-- begin-user-doc -->
116
	 * <p>
117
	 * If the meaning of the '<em>Name</em>' containment reference isn't clear,
118
	 * there really should be more of a description here...
119
	 * </p>
120
	 * <!-- end-user-doc -->
121
	 * @return the value of the '<em>Name</em>' containment reference.
122
	 * @see #setName(Name)
123
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Name()
124
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
125
	 * @generated
126
	 */
127
	Name getName();
128
129
	/**
130
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName <em>Name</em>}' containment reference.
131
	 * <!-- begin-user-doc -->
132
	 * <!-- end-user-doc -->
133
	 * @param value the new value of the '<em>Name</em>' containment reference.
134
	 * @see #getName()
135
	 * @generated
136
	 */
137
	void setName(Name value);
138
139
	/**
140
	 * Returns the value of the '<em><b>Taxonomy</b></em>' containment reference.
141
	 * <!-- begin-user-doc -->
142
	 * <p>
143
	 * If the meaning of the '<em>Taxonomy</em>' containment reference isn't clear,
144
	 * there really should be more of a description here...
145
	 * </p>
146
	 * <!-- end-user-doc -->
147
	 * @return the value of the '<em>Taxonomy</em>' containment reference.
148
	 * @see #setTaxonomy(Taxonomy)
149
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getDocumentRoot_Taxonomy()
150
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
151
	 * @generated
152
	 */
153
	Taxonomy getTaxonomy();
154
155
	/**
156
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy <em>Taxonomy</em>}' containment reference.
157
	 * <!-- begin-user-doc -->
158
	 * <!-- end-user-doc -->
159
	 * @param value the new value of the '<em>Taxonomy</em>' containment reference.
160
	 * @see #getTaxonomy()
161
	 * @generated
162
	 */
163
	void setTaxonomy(Taxonomy value);
164
165
} // DocumentRoot
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Name.java (+81 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy;
8
9
import org.eclipse.emf.ecore.EObject;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * A representation of the model object '<em><b>Name</b></em>'.
14
 * <!-- end-user-doc -->
15
 *
16
 * <p>
17
 * The following features are supported:
18
 * <ul>
19
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue <em>Value</em>}</li>
20
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang <em>Lang</em>}</li>
21
 * </ul>
22
 * </p>
23
 *
24
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getName_()
25
 * @model 
26
 * @generated
27
 */
28
public interface Name extends EObject {
29
	/**
30
	 * Returns the value of the '<em><b>Value</b></em>' attribute.
31
	 * <!-- begin-user-doc -->
32
	 * <p>
33
	 * If the meaning of the '<em>Value</em>' attribute isn't clear,
34
	 * there really should be more of a description here...
35
	 * </p>
36
	 * <!-- end-user-doc -->
37
	 * @return the value of the '<em>Value</em>' attribute.
38
	 * @see #setValue(String)
39
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getName_Value()
40
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
41
	 * @generated
42
	 */
43
	String getValue();
44
45
	/**
46
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @param value the new value of the '<em>Value</em>' attribute.
50
	 * @see #getValue()
51
	 * @generated
52
	 */
53
	void setValue(String value);
54
55
	/**
56
	 * Returns the value of the '<em><b>Lang</b></em>' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <p>
59
	 * If the meaning of the '<em>Lang</em>' attribute isn't clear,
60
	 * there really should be more of a description here...
61
	 * </p>
62
	 * <!-- end-user-doc -->
63
	 * @return the value of the '<em>Lang</em>' attribute.
64
	 * @see #setLang(String)
65
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getName_Lang()
66
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.Language"
67
	 * @generated
68
	 */
69
	String getLang();
70
71
	/**
72
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang <em>Lang</em>}' attribute.
73
	 * <!-- begin-user-doc -->
74
	 * <!-- end-user-doc -->
75
	 * @param value the new value of the '<em>Lang</em>' attribute.
76
	 * @see #getLang()
77
	 * @generated
78
	 */
79
	void setLang(String value);
80
81
} // Name
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/Taxonomy.java (+171 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy;
8
9
import org.eclipse.emf.common.util.EList;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * A representation of the model object '<em><b>Taxonomy</b></em>'.
16
 * <!-- end-user-doc -->
17
 *
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getNlname <em>Nlname</em>}</li>
22
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getCategory <em>Category</em>}</li>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId <em>Id</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation <em>Location</em>}</li>
25
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName <em>Name</em>}</li>
26
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef <em>Ref</em>}</li>
27
 * </ul>
28
 * </p>
29
 *
30
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy()
31
 * @model 
32
 * @generated
33
 */
34
public interface Taxonomy extends EObject {
35
	/**
36
	 * Returns the value of the '<em><b>Nlname</b></em>' containment reference list.
37
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name}.
38
	 * <!-- begin-user-doc -->
39
	 * <p>
40
	 * If the meaning of the '<em>Nlname</em>' containment reference list isn't clear,
41
	 * there really should be more of a description here...
42
	 * </p>
43
	 * <!-- end-user-doc -->
44
	 * @return the value of the '<em>Nlname</em>' containment reference list.
45
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Nlname()
46
	 * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Name" containment="true" resolveProxies="false"
47
	 * @generated
48
	 */
49
	EList getNlname();
50
51
	/**
52
	 * Returns the value of the '<em><b>Category</b></em>' containment reference list.
53
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category}.
54
	 * <!-- begin-user-doc -->
55
	 * <p>
56
	 * If the meaning of the '<em>Category</em>' containment reference list isn't clear,
57
	 * there really should be more of a description here...
58
	 * </p>
59
	 * <!-- end-user-doc -->
60
	 * @return the value of the '<em>Category</em>' containment reference list.
61
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Category()
62
	 * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Category" containment="true" resolveProxies="false"
63
	 * @generated
64
	 */
65
	EList getCategory();
66
67
	/**
68
	 * Returns the value of the '<em><b>Id</b></em>' attribute.
69
	 * <!-- begin-user-doc -->
70
	 * <p>
71
	 * If the meaning of the '<em>Id</em>' attribute isn't clear,
72
	 * there really should be more of a description here...
73
	 * </p>
74
	 * <!-- end-user-doc -->
75
	 * @return the value of the '<em>Id</em>' attribute.
76
	 * @see #setId(String)
77
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Id()
78
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI" required="true"
79
	 * @generated
80
	 */
81
	String getId();
82
83
	/**
84
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId <em>Id</em>}' attribute.
85
	 * <!-- begin-user-doc -->
86
	 * <!-- end-user-doc -->
87
	 * @param value the new value of the '<em>Id</em>' attribute.
88
	 * @see #getId()
89
	 * @generated
90
	 */
91
	void setId(String value);
92
93
	/**
94
	 * Returns the value of the '<em><b>Location</b></em>' attribute.
95
	 * <!-- begin-user-doc -->
96
	 * <p>
97
	 * If the meaning of the '<em>Location</em>' attribute isn't clear,
98
	 * there really should be more of a description here...
99
	 * </p>
100
	 * <!-- end-user-doc -->
101
	 * @return the value of the '<em>Location</em>' attribute.
102
	 * @see #setLocation(String)
103
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Location()
104
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
105
	 * @generated
106
	 */
107
	String getLocation();
108
109
	/**
110
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation <em>Location</em>}' attribute.
111
	 * <!-- begin-user-doc -->
112
	 * <!-- end-user-doc -->
113
	 * @param value the new value of the '<em>Location</em>' attribute.
114
	 * @see #getLocation()
115
	 * @generated
116
	 */
117
	void setLocation(String value);
118
119
	/**
120
	 * Returns the value of the '<em><b>Name</b></em>' attribute.
121
	 * <!-- begin-user-doc -->
122
	 * <p>
123
	 * If the meaning of the '<em>Name</em>' attribute isn't clear,
124
	 * there really should be more of a description here...
125
	 * </p>
126
	 * <!-- end-user-doc -->
127
	 * @return the value of the '<em>Name</em>' attribute.
128
	 * @see #setName(String)
129
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Name()
130
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
131
	 * @generated
132
	 */
133
	String getName();
134
135
	/**
136
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName <em>Name</em>}' attribute.
137
	 * <!-- begin-user-doc -->
138
	 * <!-- end-user-doc -->
139
	 * @param value the new value of the '<em>Name</em>' attribute.
140
	 * @see #getName()
141
	 * @generated
142
	 */
143
	void setName(String value);
144
145
	/**
146
	 * Returns the value of the '<em><b>Ref</b></em>' attribute.
147
	 * <!-- begin-user-doc -->
148
	 * <p>
149
	 * If the meaning of the '<em>Ref</em>' attribute isn't clear,
150
	 * there really should be more of a description here...
151
	 * </p>
152
	 * <!-- end-user-doc -->
153
	 * @return the value of the '<em>Ref</em>' attribute.
154
	 * @see #setRef(String)
155
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#getTaxonomy_Ref()
156
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
157
	 * @generated
158
	 */
159
	String getRef();
160
161
	/**
162
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef <em>Ref</em>}' attribute.
163
	 * <!-- begin-user-doc -->
164
	 * <!-- end-user-doc -->
165
	 * @param value the new value of the '<em>Ref</em>' attribute.
166
	 * @see #getRef()
167
	 * @generated
168
	 */
169
	void setRef(String value);
170
171
} // Taxonomy
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyFactory.java (+73 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy;
8
9
import org.eclipse.emf.ecore.EFactory;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * The <b>Factory</b> for the model.
14
 * It provides a create method for each non-abstract class of the model.
15
 * <!-- end-user-doc -->
16
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage
17
 * @generated
18
 */
19
public interface TaxonomyFactory extends EFactory {
20
	/**
21
	 * The singleton instance of the factory.
22
	 * <!-- begin-user-doc -->
23
	 * <!-- end-user-doc -->
24
	 * @generated
25
	 */
26
	TaxonomyFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyFactoryImpl();
27
28
	/**
29
	 * Returns a new object of class '<em>Category</em>'.
30
	 * <!-- begin-user-doc -->
31
	 * <!-- end-user-doc -->
32
	 * @return a new object of class '<em>Category</em>'.
33
	 * @generated
34
	 */
35
	Category createCategory();
36
37
	/**
38
	 * Returns a new object of class '<em>Document Root</em>'.
39
	 * <!-- begin-user-doc -->
40
	 * <!-- end-user-doc -->
41
	 * @return a new object of class '<em>Document Root</em>'.
42
	 * @generated
43
	 */
44
	DocumentRoot createDocumentRoot();
45
46
	/**
47
	 * Returns a new object of class '<em>Name</em>'.
48
	 * <!-- begin-user-doc -->
49
	 * <!-- end-user-doc -->
50
	 * @return a new object of class '<em>Name</em>'.
51
	 * @generated
52
	 */
53
	Name createName();
54
55
	/**
56
	 * Returns a new object of class '<em>Taxonomy</em>'.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @return a new object of class '<em>Taxonomy</em>'.
60
	 * @generated
61
	 */
62
	Taxonomy createTaxonomy();
63
64
	/**
65
	 * Returns the package supported by this factory.
66
	 * <!-- begin-user-doc -->
67
	 * <!-- end-user-doc -->
68
	 * @return the package supported by this factory.
69
	 * @generated
70
	 */
71
	TaxonomyPackage getTaxonomyPackage();
72
73
} //TaxonomyFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/TaxonomyPackage.java (+630 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
/**
15
 * <!-- begin-user-doc -->
16
 * The <b>Package</b> for the model.
17
 * It contains accessors for the meta objects to represent
18
 * <ul>
19
 *   <li>each class,</li>
20
 *   <li>each feature of each class,</li>
21
 *   <li>each enum,</li>
22
 *   <li>and each data type</li>
23
 * </ul>
24
 * <!-- end-user-doc -->
25
 * <!-- begin-model-doc -->
26
 * 
27
 *    See http://www.w3.org/XML/1998/namespace.html and
28
 *    http://www.w3.org/TR/REC-xml for information about this namespace.
29
 * 
30
 *     This schema document describes the XML namespace, in a form
31
 *     suitable for import by other schema documents.  
32
 * 
33
 *     Note that local names in this namespace are intended to be defined
34
 *     only by the World Wide Web Consortium or its subgroups.  The
35
 *     following names are currently defined in this namespace and should
36
 *     not be used with conflicting semantics by any Working Group,
37
 *     specification, or document instance:
38
 * 
39
 *     base (as an attribute name): denotes an attribute whose value
40
 *          provides a URI to be used as the base for interpreting any
41
 *          relative URIs in the scope of the element on which it
42
 *          appears; its value is inherited.  This name is reserved
43
 *          by virtue of its definition in the XML Base specification.
44
 * 
45
 *     id   (as an attribute name): denotes an attribute whose value
46
 *          should be interpreted as if declared to be of type ID.
47
 *          The xml:id specification is not yet a W3C Recommendation,
48
 *          but this attribute is included here to facilitate experimentation
49
 *          with the mechanisms it proposes.  Note that it is _not_ included
50
 *          in the specialAttrs attribute group.
51
 * 
52
 *     lang (as an attribute name): denotes an attribute whose value
53
 *          is a language code for the natural language of the content of
54
 *          any element; its value is inherited.  This name is reserved
55
 *          by virtue of its definition in the XML specification.
56
 *   
57
 *     space (as an attribute name): denotes an attribute whose
58
 *          value is a keyword indicating what whitespace processing
59
 *          discipline is intended for the content of the element; its
60
 *          value is inherited.  This name is reserved by virtue of its
61
 *          definition in the XML specification.
62
 * 
63
 *     Father (in any context at all): denotes Jon Bosak, the chair of 
64
 *          the original XML Working Group.  This name is reserved by 
65
 *          the following decision of the W3C XML Plenary and 
66
 *          XML Coordination groups:
67
 * 
68
 *              In appreciation for his vision, leadership and dedication
69
 *              the W3C XML Plenary on this 10th day of February, 2000
70
 *              reserves for Jon Bosak in perpetuity the XML name
71
 *              xml:Father
72
 *   
73
 * This schema defines attributes and an attribute group
74
 *         suitable for use by
75
 *         schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
76
 *         attributes on elements they define.
77
 * 
78
 *         To enable this, such a schema must import this schema
79
 *         for the XML namespace, e.g. as follows:
80
 *         &lt;schema . . .&gt;
81
 *          . . .
82
 *          &lt;import namespace="http://www.w3.org/XML/1998/namespace"
83
 *                     schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;
84
 * 
85
 *         Subsequently, qualified reference to any of the attributes
86
 *         or the group defined below will have the desired effect, e.g.
87
 * 
88
 *         &lt;type . . .&gt;
89
 *          . . .
90
 *          &lt;attributeGroup ref="xml:specialAttrs"/&gt;
91
 *  
92
 *          will define a type which will schema-validate an instance
93
 *          element with any of those attributes
94
 * In keeping with the XML Schema WG's standard versioning
95
 *    policy, this schema document will persist at
96
 *    http://www.w3.org/2005/08/xml.xsd.
97
 *    At the date of issue it can also be found at
98
 *    http://www.w3.org/2001/xml.xsd.
99
 *    The schema document at that URI may however change in the future,
100
 *    in order to remain compatible with the latest version of XML Schema
101
 *    itself, or with the XML namespace itself.  In other words, if the XML
102
 *    Schema or XML namespaces change, the version of this document at
103
 *    http://www.w3.org/2001/xml.xsd will change
104
 *    accordingly; the version at
105
 *    http://www.w3.org/2005/08/xml.xsd will not change.
106
 *   
107
 * <!-- end-model-doc -->
108
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyFactory
109
 * @generated
110
 */
111
public interface TaxonomyPackage extends EPackage {
112
	/**
113
	 * The package name.
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @generated
117
	 */
118
	String eNAME = "taxonomy";
119
120
	/**
121
	 * The package namespace URI.
122
	 * <!-- begin-user-doc -->
123
	 * <!-- end-user-doc -->
124
	 * @generated
125
	 */
126
	String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/taxonomy";
127
128
	/**
129
	 * The package namespace name.
130
	 * <!-- begin-user-doc -->
131
	 * <!-- end-user-doc -->
132
	 * @generated
133
	 */
134
	String eNS_PREFIX = "taxonomy";
135
136
	/**
137
	 * The singleton instance of the package.
138
	 * <!-- begin-user-doc -->
139
	 * <!-- end-user-doc -->
140
	 * @generated
141
	 */
142
	TaxonomyPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl.init();
143
144
	/**
145
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl <em>Category</em>}' class.
146
	 * <!-- begin-user-doc -->
147
	 * <!-- end-user-doc -->
148
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl
149
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getCategory()
150
	 * @generated
151
	 */
152
	int CATEGORY = 0;
153
154
	/**
155
	 * The feature id for the '<em><b>Nlname</b></em>' containment reference list.
156
	 * <!-- begin-user-doc -->
157
	 * <!-- end-user-doc -->
158
	 * @generated
159
	 * @ordered
160
	 */
161
	int CATEGORY__NLNAME = 0;
162
163
	/**
164
	 * The feature id for the '<em><b>Category</b></em>' containment reference list.
165
	 * <!-- begin-user-doc -->
166
	 * <!-- end-user-doc -->
167
	 * @generated
168
	 * @ordered
169
	 */
170
	int CATEGORY__CATEGORY = 1;
171
172
	/**
173
	 * The feature id for the '<em><b>Code</b></em>' attribute.
174
	 * <!-- begin-user-doc -->
175
	 * <!-- end-user-doc -->
176
	 * @generated
177
	 * @ordered
178
	 */
179
	int CATEGORY__CODE = 2;
180
181
	/**
182
	 * The feature id for the '<em><b>Name</b></em>' attribute.
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @generated
186
	 * @ordered
187
	 */
188
	int CATEGORY__NAME = 3;
189
190
	/**
191
	 * The number of structural features of the the '<em>Category</em>' class.
192
	 * <!-- begin-user-doc -->
193
	 * <!-- end-user-doc -->
194
	 * @generated
195
	 * @ordered
196
	 */
197
	int CATEGORY_FEATURE_COUNT = 4;
198
199
	/**
200
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl <em>Document Root</em>}' class.
201
	 * <!-- begin-user-doc -->
202
	 * <!-- end-user-doc -->
203
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl
204
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getDocumentRoot()
205
	 * @generated
206
	 */
207
	int DOCUMENT_ROOT = 1;
208
209
	/**
210
	 * The feature id for the '<em><b>Mixed</b></em>' attribute list.
211
	 * <!-- begin-user-doc -->
212
	 * <!-- end-user-doc -->
213
	 * @generated
214
	 * @ordered
215
	 */
216
	int DOCUMENT_ROOT__MIXED = 0;
217
218
	/**
219
	 * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
220
	 * <!-- begin-user-doc -->
221
	 * <!-- end-user-doc -->
222
	 * @generated
223
	 * @ordered
224
	 */
225
	int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
226
227
	/**
228
	 * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
229
	 * <!-- begin-user-doc -->
230
	 * <!-- end-user-doc -->
231
	 * @generated
232
	 * @ordered
233
	 */
234
	int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
235
236
	/**
237
	 * The feature id for the '<em><b>Category</b></em>' containment reference.
238
	 * <!-- begin-user-doc -->
239
	 * <!-- end-user-doc -->
240
	 * @generated
241
	 * @ordered
242
	 */
243
	int DOCUMENT_ROOT__CATEGORY = 3;
244
245
	/**
246
	 * The feature id for the '<em><b>Name</b></em>' containment reference.
247
	 * <!-- begin-user-doc -->
248
	 * <!-- end-user-doc -->
249
	 * @generated
250
	 * @ordered
251
	 */
252
	int DOCUMENT_ROOT__NAME = 4;
253
254
	/**
255
	 * The feature id for the '<em><b>Taxonomy</b></em>' containment reference.
256
	 * <!-- begin-user-doc -->
257
	 * <!-- end-user-doc -->
258
	 * @generated
259
	 * @ordered
260
	 */
261
	int DOCUMENT_ROOT__TAXONOMY = 5;
262
263
	/**
264
	 * The number of structural features of the the '<em>Document Root</em>' class.
265
	 * <!-- begin-user-doc -->
266
	 * <!-- end-user-doc -->
267
	 * @generated
268
	 * @ordered
269
	 */
270
	int DOCUMENT_ROOT_FEATURE_COUNT = 6;
271
272
	/**
273
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl <em>Name</em>}' class.
274
	 * <!-- begin-user-doc -->
275
	 * <!-- end-user-doc -->
276
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl
277
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getName_()
278
	 * @generated
279
	 */
280
	int NAME = 2;
281
282
	/**
283
	 * The feature id for the '<em><b>Value</b></em>' attribute.
284
	 * <!-- begin-user-doc -->
285
	 * <!-- end-user-doc -->
286
	 * @generated
287
	 * @ordered
288
	 */
289
	int NAME__VALUE = 0;
290
291
	/**
292
	 * The feature id for the '<em><b>Lang</b></em>' attribute.
293
	 * <!-- begin-user-doc -->
294
	 * <!-- end-user-doc -->
295
	 * @generated
296
	 * @ordered
297
	 */
298
	int NAME__LANG = 1;
299
300
	/**
301
	 * The number of structural features of the the '<em>Name</em>' class.
302
	 * <!-- begin-user-doc -->
303
	 * <!-- end-user-doc -->
304
	 * @generated
305
	 * @ordered
306
	 */
307
	int NAME_FEATURE_COUNT = 2;
308
309
	/**
310
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl <em>Taxonomy</em>}' class.
311
	 * <!-- begin-user-doc -->
312
	 * <!-- end-user-doc -->
313
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl
314
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl#getTaxonomy()
315
	 * @generated
316
	 */
317
	int TAXONOMY = 3;
318
319
	/**
320
	 * The feature id for the '<em><b>Nlname</b></em>' containment reference list.
321
	 * <!-- begin-user-doc -->
322
	 * <!-- end-user-doc -->
323
	 * @generated
324
	 * @ordered
325
	 */
326
	int TAXONOMY__NLNAME = 0;
327
328
	/**
329
	 * The feature id for the '<em><b>Category</b></em>' containment reference list.
330
	 * <!-- begin-user-doc -->
331
	 * <!-- end-user-doc -->
332
	 * @generated
333
	 * @ordered
334
	 */
335
	int TAXONOMY__CATEGORY = 1;
336
337
	/**
338
	 * The feature id for the '<em><b>Id</b></em>' attribute.
339
	 * <!-- begin-user-doc -->
340
	 * <!-- end-user-doc -->
341
	 * @generated
342
	 * @ordered
343
	 */
344
	int TAXONOMY__ID = 2;
345
346
	/**
347
	 * The feature id for the '<em><b>Location</b></em>' attribute.
348
	 * <!-- begin-user-doc -->
349
	 * <!-- end-user-doc -->
350
	 * @generated
351
	 * @ordered
352
	 */
353
	int TAXONOMY__LOCATION = 3;
354
355
	/**
356
	 * The feature id for the '<em><b>Name</b></em>' attribute.
357
	 * <!-- begin-user-doc -->
358
	 * <!-- end-user-doc -->
359
	 * @generated
360
	 * @ordered
361
	 */
362
	int TAXONOMY__NAME = 4;
363
364
	/**
365
	 * The feature id for the '<em><b>Ref</b></em>' attribute.
366
	 * <!-- begin-user-doc -->
367
	 * <!-- end-user-doc -->
368
	 * @generated
369
	 * @ordered
370
	 */
371
	int TAXONOMY__REF = 5;
372
373
	/**
374
	 * The number of structural features of the the '<em>Taxonomy</em>' class.
375
	 * <!-- begin-user-doc -->
376
	 * <!-- end-user-doc -->
377
	 * @generated
378
	 * @ordered
379
	 */
380
	int TAXONOMY_FEATURE_COUNT = 6;
381
382
383
	/**
384
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category <em>Category</em>}'.
385
	 * <!-- begin-user-doc -->
386
	 * <!-- end-user-doc -->
387
	 * @return the meta object for class '<em>Category</em>'.
388
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category
389
	 * @generated
390
	 */
391
	EClass getCategory();
392
393
	/**
394
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getNlname <em>Nlname</em>}'.
395
	 * <!-- begin-user-doc -->
396
	 * <!-- end-user-doc -->
397
	 * @return the meta object for the containment reference list '<em>Nlname</em>'.
398
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getNlname()
399
	 * @see #getCategory()
400
	 * @generated
401
	 */
402
	EReference getCategory_Nlname();
403
404
	/**
405
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCategory <em>Category</em>}'.
406
	 * <!-- begin-user-doc -->
407
	 * <!-- end-user-doc -->
408
	 * @return the meta object for the containment reference list '<em>Category</em>'.
409
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCategory()
410
	 * @see #getCategory()
411
	 * @generated
412
	 */
413
	EReference getCategory_Category();
414
415
	/**
416
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode <em>Code</em>}'.
417
	 * <!-- begin-user-doc -->
418
	 * <!-- end-user-doc -->
419
	 * @return the meta object for the attribute '<em>Code</em>'.
420
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getCode()
421
	 * @see #getCategory()
422
	 * @generated
423
	 */
424
	EAttribute getCategory_Code();
425
426
	/**
427
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName <em>Name</em>}'.
428
	 * <!-- begin-user-doc -->
429
	 * <!-- end-user-doc -->
430
	 * @return the meta object for the attribute '<em>Name</em>'.
431
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category#getName()
432
	 * @see #getCategory()
433
	 * @generated
434
	 */
435
	EAttribute getCategory_Name();
436
437
	/**
438
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot <em>Document Root</em>}'.
439
	 * <!-- begin-user-doc -->
440
	 * <!-- end-user-doc -->
441
	 * @return the meta object for class '<em>Document Root</em>'.
442
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot
443
	 * @generated
444
	 */
445
	EClass getDocumentRoot();
446
447
	/**
448
	 * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getMixed <em>Mixed</em>}'.
449
	 * <!-- begin-user-doc -->
450
	 * <!-- end-user-doc -->
451
	 * @return the meta object for the attribute list '<em>Mixed</em>'.
452
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getMixed()
453
	 * @see #getDocumentRoot()
454
	 * @generated
455
	 */
456
	EAttribute getDocumentRoot_Mixed();
457
458
	/**
459
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
460
	 * <!-- begin-user-doc -->
461
	 * <!-- end-user-doc -->
462
	 * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
463
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXMLNSPrefixMap()
464
	 * @see #getDocumentRoot()
465
	 * @generated
466
	 */
467
	EReference getDocumentRoot_XMLNSPrefixMap();
468
469
	/**
470
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
471
	 * <!-- begin-user-doc -->
472
	 * <!-- end-user-doc -->
473
	 * @return the meta object for the map '<em>XSI Schema Location</em>'.
474
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getXSISchemaLocation()
475
	 * @see #getDocumentRoot()
476
	 * @generated
477
	 */
478
	EReference getDocumentRoot_XSISchemaLocation();
479
480
	/**
481
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory <em>Category</em>}'.
482
	 * <!-- begin-user-doc -->
483
	 * <!-- end-user-doc -->
484
	 * @return the meta object for the containment reference '<em>Category</em>'.
485
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getCategory()
486
	 * @see #getDocumentRoot()
487
	 * @generated
488
	 */
489
	EReference getDocumentRoot_Category();
490
491
	/**
492
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName <em>Name</em>}'.
493
	 * <!-- begin-user-doc -->
494
	 * <!-- end-user-doc -->
495
	 * @return the meta object for the containment reference '<em>Name</em>'.
496
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getName()
497
	 * @see #getDocumentRoot()
498
	 * @generated
499
	 */
500
	EReference getDocumentRoot_Name();
501
502
	/**
503
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy <em>Taxonomy</em>}'.
504
	 * <!-- begin-user-doc -->
505
	 * <!-- end-user-doc -->
506
	 * @return the meta object for the containment reference '<em>Taxonomy</em>'.
507
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot#getTaxonomy()
508
	 * @see #getDocumentRoot()
509
	 * @generated
510
	 */
511
	EReference getDocumentRoot_Taxonomy();
512
513
	/**
514
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name <em>Name</em>}'.
515
	 * <!-- begin-user-doc -->
516
	 * <!-- end-user-doc -->
517
	 * @return the meta object for class '<em>Name</em>'.
518
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Name
519
	 * @generated
520
	 */
521
	EClass getName_();
522
523
	/**
524
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue <em>Value</em>}'.
525
	 * <!-- begin-user-doc -->
526
	 * <!-- end-user-doc -->
527
	 * @return the meta object for the attribute '<em>Value</em>'.
528
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getValue()
529
	 * @see #getName_()
530
	 * @generated
531
	 */
532
	EAttribute getName_Value();
533
534
	/**
535
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang <em>Lang</em>}'.
536
	 * <!-- begin-user-doc -->
537
	 * <!-- end-user-doc -->
538
	 * @return the meta object for the attribute '<em>Lang</em>'.
539
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Name#getLang()
540
	 * @see #getName_()
541
	 * @generated
542
	 */
543
	EAttribute getName_Lang();
544
545
	/**
546
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy <em>Taxonomy</em>}'.
547
	 * <!-- begin-user-doc -->
548
	 * <!-- end-user-doc -->
549
	 * @return the meta object for class '<em>Taxonomy</em>'.
550
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy
551
	 * @generated
552
	 */
553
	EClass getTaxonomy();
554
555
	/**
556
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getNlname <em>Nlname</em>}'.
557
	 * <!-- begin-user-doc -->
558
	 * <!-- end-user-doc -->
559
	 * @return the meta object for the containment reference list '<em>Nlname</em>'.
560
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getNlname()
561
	 * @see #getTaxonomy()
562
	 * @generated
563
	 */
564
	EReference getTaxonomy_Nlname();
565
566
	/**
567
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getCategory <em>Category</em>}'.
568
	 * <!-- begin-user-doc -->
569
	 * <!-- end-user-doc -->
570
	 * @return the meta object for the containment reference list '<em>Category</em>'.
571
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getCategory()
572
	 * @see #getTaxonomy()
573
	 * @generated
574
	 */
575
	EReference getTaxonomy_Category();
576
577
	/**
578
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId <em>Id</em>}'.
579
	 * <!-- begin-user-doc -->
580
	 * <!-- end-user-doc -->
581
	 * @return the meta object for the attribute '<em>Id</em>'.
582
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getId()
583
	 * @see #getTaxonomy()
584
	 * @generated
585
	 */
586
	EAttribute getTaxonomy_Id();
587
588
	/**
589
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation <em>Location</em>}'.
590
	 * <!-- begin-user-doc -->
591
	 * <!-- end-user-doc -->
592
	 * @return the meta object for the attribute '<em>Location</em>'.
593
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getLocation()
594
	 * @see #getTaxonomy()
595
	 * @generated
596
	 */
597
	EAttribute getTaxonomy_Location();
598
599
	/**
600
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName <em>Name</em>}'.
601
	 * <!-- begin-user-doc -->
602
	 * <!-- end-user-doc -->
603
	 * @return the meta object for the attribute '<em>Name</em>'.
604
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getName()
605
	 * @see #getTaxonomy()
606
	 * @generated
607
	 */
608
	EAttribute getTaxonomy_Name();
609
610
	/**
611
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef <em>Ref</em>}'.
612
	 * <!-- begin-user-doc -->
613
	 * <!-- end-user-doc -->
614
	 * @return the meta object for the attribute '<em>Ref</em>'.
615
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy#getRef()
616
	 * @see #getTaxonomy()
617
	 * @generated
618
	 */
619
	EAttribute getTaxonomy_Ref();
620
621
	/**
622
	 * Returns the factory that creates the instances of the model.
623
	 * <!-- begin-user-doc -->
624
	 * <!-- end-user-doc -->
625
	 * @return the factory that creates the instances of the model.
626
	 * @generated
627
	 */
628
	TaxonomyFactory getTaxonomyFactory();
629
630
} //TaxonomyPackage
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/CategoryImpl.java (+313 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.Notification;
12
import org.eclipse.emf.common.notify.NotificationChain;
13
14
import org.eclipse.emf.common.util.EList;
15
16
import org.eclipse.emf.ecore.EClass;
17
import org.eclipse.emf.ecore.EStructuralFeature;
18
import org.eclipse.emf.ecore.InternalEObject;
19
20
import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
import org.eclipse.emf.ecore.impl.EObjectImpl;
22
23
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24
import org.eclipse.emf.ecore.util.InternalEList;
25
26
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category;
27
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name;
28
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
29
30
/**
31
 * <!-- begin-user-doc -->
32
 * An implementation of the model object '<em><b>Category</b></em>'.
33
 * <!-- end-user-doc -->
34
 * <p>
35
 * The following features are implemented:
36
 * <ul>
37
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getNlname <em>Nlname</em>}</li>
38
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getCategory <em>Category</em>}</li>
39
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getCode <em>Code</em>}</li>
40
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.CategoryImpl#getName <em>Name</em>}</li>
41
 * </ul>
42
 * </p>
43
 *
44
 * @generated
45
 */
46
public class CategoryImpl extends EObjectImpl implements Category {
47
	/**
48
	 * The cached value of the '{@link #getNlname() <em>Nlname</em>}' containment reference list.
49
	 * <!-- begin-user-doc -->
50
	 * <!-- end-user-doc -->
51
	 * @see #getNlname()
52
	 * @generated
53
	 * @ordered
54
	 */
55
	protected EList nlname = null;
56
57
	/**
58
	 * The cached value of the '{@link #getCategory() <em>Category</em>}' containment reference list.
59
	 * <!-- begin-user-doc -->
60
	 * <!-- end-user-doc -->
61
	 * @see #getCategory()
62
	 * @generated
63
	 * @ordered
64
	 */
65
	protected EList category = null;
66
67
	/**
68
	 * The default value of the '{@link #getCode() <em>Code</em>}' attribute.
69
	 * <!-- begin-user-doc -->
70
	 * <!-- end-user-doc -->
71
	 * @see #getCode()
72
	 * @generated
73
	 * @ordered
74
	 */
75
	protected static final String CODE_EDEFAULT = null;
76
77
	/**
78
	 * The cached value of the '{@link #getCode() <em>Code</em>}' attribute.
79
	 * <!-- begin-user-doc -->
80
	 * <!-- end-user-doc -->
81
	 * @see #getCode()
82
	 * @generated
83
	 * @ordered
84
	 */
85
	protected String code = CODE_EDEFAULT;
86
87
	/**
88
	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
89
	 * <!-- begin-user-doc -->
90
	 * <!-- end-user-doc -->
91
	 * @see #getName()
92
	 * @generated
93
	 * @ordered
94
	 */
95
	protected static final String NAME_EDEFAULT = null;
96
97
	/**
98
	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
99
	 * <!-- begin-user-doc -->
100
	 * <!-- end-user-doc -->
101
	 * @see #getName()
102
	 * @generated
103
	 * @ordered
104
	 */
105
	protected String name = NAME_EDEFAULT;
106
107
	/**
108
	 * <!-- begin-user-doc -->
109
	 * <!-- end-user-doc -->
110
	 * @generated
111
	 */
112
	protected CategoryImpl() {
113
		super();
114
	}
115
116
	/**
117
	 * <!-- begin-user-doc -->
118
	 * <!-- end-user-doc -->
119
	 * @generated
120
	 */
121
	protected EClass eStaticClass() {
122
		return TaxonomyPackage.eINSTANCE.getCategory();
123
	}
124
125
	/**
126
	 * <!-- begin-user-doc -->
127
	 * <!-- end-user-doc -->
128
	 * @generated
129
	 */
130
	public EList getNlname() {
131
		if (nlname == null) {
132
			nlname = new EObjectContainmentEList(Name.class, this, TaxonomyPackage.CATEGORY__NLNAME);
133
		}
134
		return nlname;
135
	}
136
137
	/**
138
	 * <!-- begin-user-doc -->
139
	 * <!-- end-user-doc -->
140
	 * @generated
141
	 */
142
	public EList getCategory() {
143
		if (category == null) {
144
			category = new EObjectContainmentEList(Category.class, this, TaxonomyPackage.CATEGORY__CATEGORY);
145
		}
146
		return category;
147
	}
148
149
	/**
150
	 * <!-- begin-user-doc -->
151
	 * <!-- end-user-doc -->
152
	 * @generated
153
	 */
154
	public String getCode() {
155
		return code;
156
	}
157
158
	/**
159
	 * <!-- begin-user-doc -->
160
	 * <!-- end-user-doc -->
161
	 * @generated
162
	 */
163
	public void setCode(String newCode) {
164
		String oldCode = code;
165
		code = newCode;
166
		if (eNotificationRequired())
167
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.CATEGORY__CODE, oldCode, code));
168
	}
169
170
	/**
171
	 * <!-- begin-user-doc -->
172
	 * <!-- end-user-doc -->
173
	 * @generated
174
	 */
175
	public String getName() {
176
		return name;
177
	}
178
179
	/**
180
	 * <!-- begin-user-doc -->
181
	 * <!-- end-user-doc -->
182
	 * @generated
183
	 */
184
	public void setName(String newName) {
185
		String oldName = name;
186
		name = newName;
187
		if (eNotificationRequired())
188
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.CATEGORY__NAME, oldName, name));
189
	}
190
191
	/**
192
	 * <!-- begin-user-doc -->
193
	 * <!-- end-user-doc -->
194
	 * @generated
195
	 */
196
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
197
		if (featureID >= 0) {
198
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
199
				case TaxonomyPackage.CATEGORY__NLNAME:
200
					return ((InternalEList)getNlname()).basicRemove(otherEnd, msgs);
201
				case TaxonomyPackage.CATEGORY__CATEGORY:
202
					return ((InternalEList)getCategory()).basicRemove(otherEnd, msgs);
203
				default:
204
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
205
			}
206
		}
207
		return eBasicSetContainer(null, featureID, msgs);
208
	}
209
210
	/**
211
	 * <!-- begin-user-doc -->
212
	 * <!-- end-user-doc -->
213
	 * @generated
214
	 */
215
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
216
		switch (eDerivedStructuralFeatureID(eFeature)) {
217
			case TaxonomyPackage.CATEGORY__NLNAME:
218
				return getNlname();
219
			case TaxonomyPackage.CATEGORY__CATEGORY:
220
				return getCategory();
221
			case TaxonomyPackage.CATEGORY__CODE:
222
				return getCode();
223
			case TaxonomyPackage.CATEGORY__NAME:
224
				return getName();
225
		}
226
		return eDynamicGet(eFeature, resolve);
227
	}
228
229
	/**
230
	 * <!-- begin-user-doc -->
231
	 * <!-- end-user-doc -->
232
	 * @generated
233
	 */
234
	public void eSet(EStructuralFeature eFeature, Object newValue) {
235
		switch (eDerivedStructuralFeatureID(eFeature)) {
236
			case TaxonomyPackage.CATEGORY__NLNAME:
237
				getNlname().clear();
238
				getNlname().addAll((Collection)newValue);
239
				return;
240
			case TaxonomyPackage.CATEGORY__CATEGORY:
241
				getCategory().clear();
242
				getCategory().addAll((Collection)newValue);
243
				return;
244
			case TaxonomyPackage.CATEGORY__CODE:
245
				setCode((String)newValue);
246
				return;
247
			case TaxonomyPackage.CATEGORY__NAME:
248
				setName((String)newValue);
249
				return;
250
		}
251
		eDynamicSet(eFeature, newValue);
252
	}
253
254
	/**
255
	 * <!-- begin-user-doc -->
256
	 * <!-- end-user-doc -->
257
	 * @generated
258
	 */
259
	public void eUnset(EStructuralFeature eFeature) {
260
		switch (eDerivedStructuralFeatureID(eFeature)) {
261
			case TaxonomyPackage.CATEGORY__NLNAME:
262
				getNlname().clear();
263
				return;
264
			case TaxonomyPackage.CATEGORY__CATEGORY:
265
				getCategory().clear();
266
				return;
267
			case TaxonomyPackage.CATEGORY__CODE:
268
				setCode(CODE_EDEFAULT);
269
				return;
270
			case TaxonomyPackage.CATEGORY__NAME:
271
				setName(NAME_EDEFAULT);
272
				return;
273
		}
274
		eDynamicUnset(eFeature);
275
	}
276
277
	/**
278
	 * <!-- begin-user-doc -->
279
	 * <!-- end-user-doc -->
280
	 * @generated
281
	 */
282
	public boolean eIsSet(EStructuralFeature eFeature) {
283
		switch (eDerivedStructuralFeatureID(eFeature)) {
284
			case TaxonomyPackage.CATEGORY__NLNAME:
285
				return nlname != null && !nlname.isEmpty();
286
			case TaxonomyPackage.CATEGORY__CATEGORY:
287
				return category != null && !category.isEmpty();
288
			case TaxonomyPackage.CATEGORY__CODE:
289
				return CODE_EDEFAULT == null ? code != null : !CODE_EDEFAULT.equals(code);
290
			case TaxonomyPackage.CATEGORY__NAME:
291
				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
292
		}
293
		return eDynamicIsSet(eFeature);
294
	}
295
296
	/**
297
	 * <!-- begin-user-doc -->
298
	 * <!-- end-user-doc -->
299
	 * @generated
300
	 */
301
	public String toString() {
302
		if (eIsProxy()) return super.toString();
303
304
		StringBuffer result = new StringBuffer(super.toString());
305
		result.append(" (code: ");
306
		result.append(code);
307
		result.append(", name: ");
308
		result.append(name);
309
		result.append(')');
310
		return result.toString();
311
	}
312
313
} //CategoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/DocumentRootImpl.java (+367 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.NotificationChain;
12
13
import org.eclipse.emf.common.util.EMap;
14
15
import org.eclipse.emf.ecore.EClass;
16
import org.eclipse.emf.ecore.EStructuralFeature;
17
import org.eclipse.emf.ecore.EcorePackage;
18
import org.eclipse.emf.ecore.InternalEObject;
19
20
import org.eclipse.emf.ecore.impl.EObjectImpl;
21
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
22
23
import org.eclipse.emf.ecore.util.BasicFeatureMap;
24
import org.eclipse.emf.ecore.util.EcoreEMap;
25
import org.eclipse.emf.ecore.util.FeatureMap;
26
import org.eclipse.emf.ecore.util.InternalEList;
27
28
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category;
29
import org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot;
30
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name;
31
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
32
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
33
34
/**
35
 * <!-- begin-user-doc -->
36
 * An implementation of the model object '<em><b>Document Root</b></em>'.
37
 * <!-- end-user-doc -->
38
 * <p>
39
 * The following features are implemented:
40
 * <ul>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
43
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
44
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getCategory <em>Category</em>}</li>
45
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getName <em>Name</em>}</li>
46
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.DocumentRootImpl#getTaxonomy <em>Taxonomy</em>}</li>
47
 * </ul>
48
 * </p>
49
 *
50
 * @generated
51
 */
52
public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
53
	/**
54
	 * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
55
	 * <!-- begin-user-doc -->
56
	 * <!-- end-user-doc -->
57
	 * @see #getMixed()
58
	 * @generated
59
	 * @ordered
60
	 */
61
	protected FeatureMap mixed = null;
62
63
	/**
64
	 * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
65
	 * <!-- begin-user-doc -->
66
	 * <!-- end-user-doc -->
67
	 * @see #getXMLNSPrefixMap()
68
	 * @generated
69
	 * @ordered
70
	 */
71
	protected EMap xMLNSPrefixMap = null;
72
73
	/**
74
	 * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
75
	 * <!-- begin-user-doc -->
76
	 * <!-- end-user-doc -->
77
	 * @see #getXSISchemaLocation()
78
	 * @generated
79
	 * @ordered
80
	 */
81
	protected EMap xSISchemaLocation = null;
82
83
	/**
84
	 * <!-- begin-user-doc -->
85
	 * <!-- end-user-doc -->
86
	 * @generated
87
	 */
88
	protected DocumentRootImpl() {
89
		super();
90
	}
91
92
	/**
93
	 * <!-- begin-user-doc -->
94
	 * <!-- end-user-doc -->
95
	 * @generated
96
	 */
97
	protected EClass eStaticClass() {
98
		return TaxonomyPackage.eINSTANCE.getDocumentRoot();
99
	}
100
101
	/**
102
	 * <!-- begin-user-doc -->
103
	 * <!-- end-user-doc -->
104
	 * @generated
105
	 */
106
	public FeatureMap getMixed() {
107
		if (mixed == null) {
108
			mixed = new BasicFeatureMap(this, TaxonomyPackage.DOCUMENT_ROOT__MIXED);
109
		}
110
		return mixed;
111
	}
112
113
	/**
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @generated
117
	 */
118
	public EMap getXMLNSPrefixMap() {
119
		if (xMLNSPrefixMap == null) {
120
			xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
121
		}
122
		return xMLNSPrefixMap;
123
	}
124
125
	/**
126
	 * <!-- begin-user-doc -->
127
	 * <!-- end-user-doc -->
128
	 * @generated
129
	 */
130
	public EMap getXSISchemaLocation() {
131
		if (xSISchemaLocation == null) {
132
			xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
133
		}
134
		return xSISchemaLocation;
135
	}
136
137
	/**
138
	 * <!-- begin-user-doc -->
139
	 * <!-- end-user-doc -->
140
	 * @generated
141
	 */
142
	public Category getCategory() {
143
		return (Category)getMixed().get(TaxonomyPackage.eINSTANCE.getDocumentRoot_Category(), true);
144
	}
145
146
	/**
147
	 * <!-- begin-user-doc -->
148
	 * <!-- end-user-doc -->
149
	 * @generated
150
	 */
151
	public NotificationChain basicSetCategory(Category newCategory, NotificationChain msgs) {
152
		return ((FeatureMap.Internal)getMixed()).basicAdd(TaxonomyPackage.eINSTANCE.getDocumentRoot_Category(), newCategory, null);
153
	}
154
155
	/**
156
	 * <!-- begin-user-doc -->
157
	 * <!-- end-user-doc -->
158
	 * @generated
159
	 */
160
	public void setCategory(Category newCategory) {
161
		((FeatureMap.Internal)getMixed()).set(TaxonomyPackage.eINSTANCE.getDocumentRoot_Category(), newCategory);
162
	}
163
164
	/**
165
	 * <!-- begin-user-doc -->
166
	 * <!-- end-user-doc -->
167
	 * @generated
168
	 */
169
	public Name getName() {
170
		return (Name)getMixed().get(TaxonomyPackage.eINSTANCE.getDocumentRoot_Name(), true);
171
	}
172
173
	/**
174
	 * <!-- begin-user-doc -->
175
	 * <!-- end-user-doc -->
176
	 * @generated
177
	 */
178
	public NotificationChain basicSetName(Name newName, NotificationChain msgs) {
179
		return ((FeatureMap.Internal)getMixed()).basicAdd(TaxonomyPackage.eINSTANCE.getDocumentRoot_Name(), newName, null);
180
	}
181
182
	/**
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @generated
186
	 */
187
	public void setName(Name newName) {
188
		((FeatureMap.Internal)getMixed()).set(TaxonomyPackage.eINSTANCE.getDocumentRoot_Name(), newName);
189
	}
190
191
	/**
192
	 * <!-- begin-user-doc -->
193
	 * <!-- end-user-doc -->
194
	 * @generated
195
	 */
196
	public Taxonomy getTaxonomy() {
197
		return (Taxonomy)getMixed().get(TaxonomyPackage.eINSTANCE.getDocumentRoot_Taxonomy(), true);
198
	}
199
200
	/**
201
	 * <!-- begin-user-doc -->
202
	 * <!-- end-user-doc -->
203
	 * @generated
204
	 */
205
	public NotificationChain basicSetTaxonomy(Taxonomy newTaxonomy, NotificationChain msgs) {
206
		return ((FeatureMap.Internal)getMixed()).basicAdd(TaxonomyPackage.eINSTANCE.getDocumentRoot_Taxonomy(), newTaxonomy, null);
207
	}
208
209
	/**
210
	 * <!-- begin-user-doc -->
211
	 * <!-- end-user-doc -->
212
	 * @generated
213
	 */
214
	public void setTaxonomy(Taxonomy newTaxonomy) {
215
		((FeatureMap.Internal)getMixed()).set(TaxonomyPackage.eINSTANCE.getDocumentRoot_Taxonomy(), newTaxonomy);
216
	}
217
218
	/**
219
	 * <!-- begin-user-doc -->
220
	 * <!-- end-user-doc -->
221
	 * @generated
222
	 */
223
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
224
		if (featureID >= 0) {
225
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
226
				case TaxonomyPackage.DOCUMENT_ROOT__MIXED:
227
					return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
228
				case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
229
					return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
230
				case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
231
					return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
232
				case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY:
233
					return basicSetCategory(null, msgs);
234
				case TaxonomyPackage.DOCUMENT_ROOT__NAME:
235
					return basicSetName(null, msgs);
236
				case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY:
237
					return basicSetTaxonomy(null, msgs);
238
				default:
239
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
240
			}
241
		}
242
		return eBasicSetContainer(null, featureID, msgs);
243
	}
244
245
	/**
246
	 * <!-- begin-user-doc -->
247
	 * <!-- end-user-doc -->
248
	 * @generated
249
	 */
250
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
251
		switch (eDerivedStructuralFeatureID(eFeature)) {
252
			case TaxonomyPackage.DOCUMENT_ROOT__MIXED:
253
				return getMixed();
254
			case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
255
				return getXMLNSPrefixMap();
256
			case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
257
				return getXSISchemaLocation();
258
			case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY:
259
				return getCategory();
260
			case TaxonomyPackage.DOCUMENT_ROOT__NAME:
261
				return getName();
262
			case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY:
263
				return getTaxonomy();
264
		}
265
		return eDynamicGet(eFeature, resolve);
266
	}
267
268
	/**
269
	 * <!-- begin-user-doc -->
270
	 * <!-- end-user-doc -->
271
	 * @generated
272
	 */
273
	public void eSet(EStructuralFeature eFeature, Object newValue) {
274
		switch (eDerivedStructuralFeatureID(eFeature)) {
275
			case TaxonomyPackage.DOCUMENT_ROOT__MIXED:
276
				getMixed().clear();
277
				getMixed().addAll((Collection)newValue);
278
				return;
279
			case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
280
				getXMLNSPrefixMap().clear();
281
				getXMLNSPrefixMap().addAll((Collection)newValue);
282
				return;
283
			case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
284
				getXSISchemaLocation().clear();
285
				getXSISchemaLocation().addAll((Collection)newValue);
286
				return;
287
			case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY:
288
				setCategory((Category)newValue);
289
				return;
290
			case TaxonomyPackage.DOCUMENT_ROOT__NAME:
291
				setName((Name)newValue);
292
				return;
293
			case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY:
294
				setTaxonomy((Taxonomy)newValue);
295
				return;
296
		}
297
		eDynamicSet(eFeature, newValue);
298
	}
299
300
	/**
301
	 * <!-- begin-user-doc -->
302
	 * <!-- end-user-doc -->
303
	 * @generated
304
	 */
305
	public void eUnset(EStructuralFeature eFeature) {
306
		switch (eDerivedStructuralFeatureID(eFeature)) {
307
			case TaxonomyPackage.DOCUMENT_ROOT__MIXED:
308
				getMixed().clear();
309
				return;
310
			case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
311
				getXMLNSPrefixMap().clear();
312
				return;
313
			case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
314
				getXSISchemaLocation().clear();
315
				return;
316
			case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY:
317
				setCategory((Category)null);
318
				return;
319
			case TaxonomyPackage.DOCUMENT_ROOT__NAME:
320
				setName((Name)null);
321
				return;
322
			case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY:
323
				setTaxonomy((Taxonomy)null);
324
				return;
325
		}
326
		eDynamicUnset(eFeature);
327
	}
328
329
	/**
330
	 * <!-- begin-user-doc -->
331
	 * <!-- end-user-doc -->
332
	 * @generated
333
	 */
334
	public boolean eIsSet(EStructuralFeature eFeature) {
335
		switch (eDerivedStructuralFeatureID(eFeature)) {
336
			case TaxonomyPackage.DOCUMENT_ROOT__MIXED:
337
				return mixed != null && !mixed.isEmpty();
338
			case TaxonomyPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
339
				return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
340
			case TaxonomyPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
341
				return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
342
			case TaxonomyPackage.DOCUMENT_ROOT__CATEGORY:
343
				return getCategory() != null;
344
			case TaxonomyPackage.DOCUMENT_ROOT__NAME:
345
				return getName() != null;
346
			case TaxonomyPackage.DOCUMENT_ROOT__TAXONOMY:
347
				return getTaxonomy() != null;
348
		}
349
		return eDynamicIsSet(eFeature);
350
	}
351
352
	/**
353
	 * <!-- begin-user-doc -->
354
	 * <!-- end-user-doc -->
355
	 * @generated
356
	 */
357
	public String toString() {
358
		if (eIsProxy()) return super.toString();
359
360
		StringBuffer result = new StringBuffer(super.toString());
361
		result.append(" (mixed: ");
362
		result.append(mixed);
363
		result.append(')');
364
		return result.toString();
365
	}
366
367
} //DocumentRootImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/NameImpl.java (+216 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl;
8
9
import org.eclipse.emf.common.notify.Notification;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EStructuralFeature;
13
14
import org.eclipse.emf.ecore.impl.ENotificationImpl;
15
import org.eclipse.emf.ecore.impl.EObjectImpl;
16
17
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name;
18
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * An implementation of the model object '<em><b>Name</b></em>'.
23
 * <!-- end-user-doc -->
24
 * <p>
25
 * The following features are implemented:
26
 * <ul>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl#getValue <em>Value</em>}</li>
28
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.NameImpl#getLang <em>Lang</em>}</li>
29
 * </ul>
30
 * </p>
31
 *
32
 * @generated
33
 */
34
public class NameImpl extends EObjectImpl implements Name {
35
	/**
36
	 * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @see #getValue()
40
	 * @generated
41
	 * @ordered
42
	 */
43
	protected static final String VALUE_EDEFAULT = null;
44
45
	/**
46
	 * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @see #getValue()
50
	 * @generated
51
	 * @ordered
52
	 */
53
	protected String value = VALUE_EDEFAULT;
54
55
	/**
56
	 * The default value of the '{@link #getLang() <em>Lang</em>}' attribute.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @see #getLang()
60
	 * @generated
61
	 * @ordered
62
	 */
63
	protected static final String LANG_EDEFAULT = null;
64
65
	/**
66
	 * The cached value of the '{@link #getLang() <em>Lang</em>}' attribute.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @see #getLang()
70
	 * @generated
71
	 * @ordered
72
	 */
73
	protected String lang = LANG_EDEFAULT;
74
75
	/**
76
	 * <!-- begin-user-doc -->
77
	 * <!-- end-user-doc -->
78
	 * @generated
79
	 */
80
	protected NameImpl() {
81
		super();
82
	}
83
84
	/**
85
	 * <!-- begin-user-doc -->
86
	 * <!-- end-user-doc -->
87
	 * @generated
88
	 */
89
	protected EClass eStaticClass() {
90
		return TaxonomyPackage.eINSTANCE.getName_();
91
	}
92
93
	/**
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @generated
97
	 */
98
	public String getValue() {
99
		return value;
100
	}
101
102
	/**
103
	 * <!-- begin-user-doc -->
104
	 * <!-- end-user-doc -->
105
	 * @generated
106
	 */
107
	public void setValue(String newValue) {
108
		String oldValue = value;
109
		value = newValue;
110
		if (eNotificationRequired())
111
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.NAME__VALUE, oldValue, value));
112
	}
113
114
	/**
115
	 * <!-- begin-user-doc -->
116
	 * <!-- end-user-doc -->
117
	 * @generated
118
	 */
119
	public String getLang() {
120
		return lang;
121
	}
122
123
	/**
124
	 * <!-- begin-user-doc -->
125
	 * <!-- end-user-doc -->
126
	 * @generated
127
	 */
128
	public void setLang(String newLang) {
129
		String oldLang = lang;
130
		lang = newLang;
131
		if (eNotificationRequired())
132
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.NAME__LANG, oldLang, lang));
133
	}
134
135
	/**
136
	 * <!-- begin-user-doc -->
137
	 * <!-- end-user-doc -->
138
	 * @generated
139
	 */
140
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
141
		switch (eDerivedStructuralFeatureID(eFeature)) {
142
			case TaxonomyPackage.NAME__VALUE:
143
				return getValue();
144
			case TaxonomyPackage.NAME__LANG:
145
				return getLang();
146
		}
147
		return eDynamicGet(eFeature, resolve);
148
	}
149
150
	/**
151
	 * <!-- begin-user-doc -->
152
	 * <!-- end-user-doc -->
153
	 * @generated
154
	 */
155
	public void eSet(EStructuralFeature eFeature, Object newValue) {
156
		switch (eDerivedStructuralFeatureID(eFeature)) {
157
			case TaxonomyPackage.NAME__VALUE:
158
				setValue((String)newValue);
159
				return;
160
			case TaxonomyPackage.NAME__LANG:
161
				setLang((String)newValue);
162
				return;
163
		}
164
		eDynamicSet(eFeature, newValue);
165
	}
166
167
	/**
168
	 * <!-- begin-user-doc -->
169
	 * <!-- end-user-doc -->
170
	 * @generated
171
	 */
172
	public void eUnset(EStructuralFeature eFeature) {
173
		switch (eDerivedStructuralFeatureID(eFeature)) {
174
			case TaxonomyPackage.NAME__VALUE:
175
				setValue(VALUE_EDEFAULT);
176
				return;
177
			case TaxonomyPackage.NAME__LANG:
178
				setLang(LANG_EDEFAULT);
179
				return;
180
		}
181
		eDynamicUnset(eFeature);
182
	}
183
184
	/**
185
	 * <!-- begin-user-doc -->
186
	 * <!-- end-user-doc -->
187
	 * @generated
188
	 */
189
	public boolean eIsSet(EStructuralFeature eFeature) {
190
		switch (eDerivedStructuralFeatureID(eFeature)) {
191
			case TaxonomyPackage.NAME__VALUE:
192
				return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
193
			case TaxonomyPackage.NAME__LANG:
194
				return LANG_EDEFAULT == null ? lang != null : !LANG_EDEFAULT.equals(lang);
195
		}
196
		return eDynamicIsSet(eFeature);
197
	}
198
199
	/**
200
	 * <!-- begin-user-doc -->
201
	 * <!-- end-user-doc -->
202
	 * @generated
203
	 */
204
	public String toString() {
205
		if (eIsProxy()) return super.toString();
206
207
		StringBuffer result = new StringBuffer(super.toString());
208
		result.append(" (value: ");
209
		result.append(value);
210
		result.append(", lang: ");
211
		result.append(lang);
212
		result.append(')');
213
		return result.toString();
214
	}
215
216
} //NameImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyFactoryImpl.java (+108 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl;
8
9
import org.eclipse.emf.ecore.EClass;
10
import org.eclipse.emf.ecore.EObject;
11
12
import org.eclipse.emf.ecore.impl.EFactoryImpl;
13
14
import org.eclipse.wst.ws.internal.model.v10.taxonomy.*;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * An implementation of the model <b>Factory</b>.
19
 * <!-- end-user-doc -->
20
 * @generated
21
 */
22
public class TaxonomyFactoryImpl extends EFactoryImpl implements TaxonomyFactory {
23
	/**
24
	 * Creates and instance of the factory.
25
	 * <!-- begin-user-doc -->
26
	 * <!-- end-user-doc -->
27
	 * @generated
28
	 */
29
	public TaxonomyFactoryImpl() {
30
		super();
31
	}
32
33
	/**
34
	 * <!-- begin-user-doc -->
35
	 * <!-- end-user-doc -->
36
	 * @generated
37
	 */
38
	public EObject create(EClass eClass) {
39
		switch (eClass.getClassifierID()) {
40
			case TaxonomyPackage.CATEGORY: return createCategory();
41
			case TaxonomyPackage.DOCUMENT_ROOT: return createDocumentRoot();
42
			case TaxonomyPackage.NAME: return createName();
43
			case TaxonomyPackage.TAXONOMY: return createTaxonomy();
44
			default:
45
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
46
		}
47
	}
48
49
	/**
50
	 * <!-- begin-user-doc -->
51
	 * <!-- end-user-doc -->
52
	 * @generated
53
	 */
54
	public Category createCategory() {
55
		CategoryImpl category = new CategoryImpl();
56
		return category;
57
	}
58
59
	/**
60
	 * <!-- begin-user-doc -->
61
	 * <!-- end-user-doc -->
62
	 * @generated
63
	 */
64
	public DocumentRoot createDocumentRoot() {
65
		DocumentRootImpl documentRoot = new DocumentRootImpl();
66
		return documentRoot;
67
	}
68
69
	/**
70
	 * <!-- begin-user-doc -->
71
	 * <!-- end-user-doc -->
72
	 * @generated
73
	 */
74
	public Name createName() {
75
		NameImpl name = new NameImpl();
76
		return name;
77
	}
78
79
	/**
80
	 * <!-- begin-user-doc -->
81
	 * <!-- end-user-doc -->
82
	 * @generated
83
	 */
84
	public Taxonomy createTaxonomy() {
85
		TaxonomyImpl taxonomy = new TaxonomyImpl();
86
		return taxonomy;
87
	}
88
89
	/**
90
	 * <!-- begin-user-doc -->
91
	 * <!-- end-user-doc -->
92
	 * @generated
93
	 */
94
	public TaxonomyPackage getTaxonomyPackage() {
95
		return (TaxonomyPackage)getEPackage();
96
	}
97
98
	/**
99
	 * <!-- begin-user-doc -->
100
	 * <!-- end-user-doc -->
101
	 * @deprecated
102
	 * @generated
103
	 */
104
	public static TaxonomyPackage getPackage() {
105
		return TaxonomyPackage.eINSTANCE;
106
	}
107
108
} //TaxonomyFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyImpl.java (+422 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.Notification;
12
import org.eclipse.emf.common.notify.NotificationChain;
13
14
import org.eclipse.emf.common.util.EList;
15
16
import org.eclipse.emf.ecore.EClass;
17
import org.eclipse.emf.ecore.EStructuralFeature;
18
import org.eclipse.emf.ecore.InternalEObject;
19
20
import org.eclipse.emf.ecore.impl.ENotificationImpl;
21
import org.eclipse.emf.ecore.impl.EObjectImpl;
22
23
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
24
import org.eclipse.emf.ecore.util.InternalEList;
25
26
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category;
27
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name;
28
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
29
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
30
31
/**
32
 * <!-- begin-user-doc -->
33
 * An implementation of the model object '<em><b>Taxonomy</b></em>'.
34
 * <!-- end-user-doc -->
35
 * <p>
36
 * The following features are implemented:
37
 * <ul>
38
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getNlname <em>Nlname</em>}</li>
39
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getCategory <em>Category</em>}</li>
40
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getId <em>Id</em>}</li>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getLocation <em>Location</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getName <em>Name</em>}</li>
43
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyImpl#getRef <em>Ref</em>}</li>
44
 * </ul>
45
 * </p>
46
 *
47
 * @generated
48
 */
49
public class TaxonomyImpl extends EObjectImpl implements Taxonomy {
50
	/**
51
	 * The cached value of the '{@link #getNlname() <em>Nlname</em>}' containment reference list.
52
	 * <!-- begin-user-doc -->
53
	 * <!-- end-user-doc -->
54
	 * @see #getNlname()
55
	 * @generated
56
	 * @ordered
57
	 */
58
	protected EList nlname = null;
59
60
	/**
61
	 * The cached value of the '{@link #getCategory() <em>Category</em>}' containment reference list.
62
	 * <!-- begin-user-doc -->
63
	 * <!-- end-user-doc -->
64
	 * @see #getCategory()
65
	 * @generated
66
	 * @ordered
67
	 */
68
	protected EList category = null;
69
70
	/**
71
	 * The default value of the '{@link #getId() <em>Id</em>}' attribute.
72
	 * <!-- begin-user-doc -->
73
	 * <!-- end-user-doc -->
74
	 * @see #getId()
75
	 * @generated
76
	 * @ordered
77
	 */
78
	protected static final String ID_EDEFAULT = null;
79
80
	/**
81
	 * The cached value of the '{@link #getId() <em>Id</em>}' attribute.
82
	 * <!-- begin-user-doc -->
83
	 * <!-- end-user-doc -->
84
	 * @see #getId()
85
	 * @generated
86
	 * @ordered
87
	 */
88
	protected String id = ID_EDEFAULT;
89
90
	/**
91
	 * The default value of the '{@link #getLocation() <em>Location</em>}' attribute.
92
	 * <!-- begin-user-doc -->
93
	 * <!-- end-user-doc -->
94
	 * @see #getLocation()
95
	 * @generated
96
	 * @ordered
97
	 */
98
	protected static final String LOCATION_EDEFAULT = null;
99
100
	/**
101
	 * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute.
102
	 * <!-- begin-user-doc -->
103
	 * <!-- end-user-doc -->
104
	 * @see #getLocation()
105
	 * @generated
106
	 * @ordered
107
	 */
108
	protected String location = LOCATION_EDEFAULT;
109
110
	/**
111
	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
112
	 * <!-- begin-user-doc -->
113
	 * <!-- end-user-doc -->
114
	 * @see #getName()
115
	 * @generated
116
	 * @ordered
117
	 */
118
	protected static final String NAME_EDEFAULT = null;
119
120
	/**
121
	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
122
	 * <!-- begin-user-doc -->
123
	 * <!-- end-user-doc -->
124
	 * @see #getName()
125
	 * @generated
126
	 * @ordered
127
	 */
128
	protected String name = NAME_EDEFAULT;
129
130
	/**
131
	 * The default value of the '{@link #getRef() <em>Ref</em>}' attribute.
132
	 * <!-- begin-user-doc -->
133
	 * <!-- end-user-doc -->
134
	 * @see #getRef()
135
	 * @generated
136
	 * @ordered
137
	 */
138
	protected static final String REF_EDEFAULT = null;
139
140
	/**
141
	 * The cached value of the '{@link #getRef() <em>Ref</em>}' attribute.
142
	 * <!-- begin-user-doc -->
143
	 * <!-- end-user-doc -->
144
	 * @see #getRef()
145
	 * @generated
146
	 * @ordered
147
	 */
148
	protected String ref = REF_EDEFAULT;
149
150
	/**
151
	 * <!-- begin-user-doc -->
152
	 * <!-- end-user-doc -->
153
	 * @generated
154
	 */
155
	protected TaxonomyImpl() {
156
		super();
157
	}
158
159
	/**
160
	 * <!-- begin-user-doc -->
161
	 * <!-- end-user-doc -->
162
	 * @generated
163
	 */
164
	protected EClass eStaticClass() {
165
		return TaxonomyPackage.eINSTANCE.getTaxonomy();
166
	}
167
168
	/**
169
	 * <!-- begin-user-doc -->
170
	 * <!-- end-user-doc -->
171
	 * @generated
172
	 */
173
	public EList getNlname() {
174
		if (nlname == null) {
175
			nlname = new EObjectContainmentEList(Name.class, this, TaxonomyPackage.TAXONOMY__NLNAME);
176
		}
177
		return nlname;
178
	}
179
180
	/**
181
	 * <!-- begin-user-doc -->
182
	 * <!-- end-user-doc -->
183
	 * @generated
184
	 */
185
	public EList getCategory() {
186
		if (category == null) {
187
			category = new EObjectContainmentEList(Category.class, this, TaxonomyPackage.TAXONOMY__CATEGORY);
188
		}
189
		return category;
190
	}
191
192
	/**
193
	 * <!-- begin-user-doc -->
194
	 * <!-- end-user-doc -->
195
	 * @generated
196
	 */
197
	public String getId() {
198
		return id;
199
	}
200
201
	/**
202
	 * <!-- begin-user-doc -->
203
	 * <!-- end-user-doc -->
204
	 * @generated
205
	 */
206
	public void setId(String newId) {
207
		String oldId = id;
208
		id = newId;
209
		if (eNotificationRequired())
210
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__ID, oldId, id));
211
	}
212
213
	/**
214
	 * <!-- begin-user-doc -->
215
	 * <!-- end-user-doc -->
216
	 * @generated
217
	 */
218
	public String getLocation() {
219
		return location;
220
	}
221
222
	/**
223
	 * <!-- begin-user-doc -->
224
	 * <!-- end-user-doc -->
225
	 * @generated
226
	 */
227
	public void setLocation(String newLocation) {
228
		String oldLocation = location;
229
		location = newLocation;
230
		if (eNotificationRequired())
231
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__LOCATION, oldLocation, location));
232
	}
233
234
	/**
235
	 * <!-- begin-user-doc -->
236
	 * <!-- end-user-doc -->
237
	 * @generated
238
	 */
239
	public String getName() {
240
		return name;
241
	}
242
243
	/**
244
	 * <!-- begin-user-doc -->
245
	 * <!-- end-user-doc -->
246
	 * @generated
247
	 */
248
	public void setName(String newName) {
249
		String oldName = name;
250
		name = newName;
251
		if (eNotificationRequired())
252
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__NAME, oldName, name));
253
	}
254
255
	/**
256
	 * <!-- begin-user-doc -->
257
	 * <!-- end-user-doc -->
258
	 * @generated
259
	 */
260
	public String getRef() {
261
		return ref;
262
	}
263
264
	/**
265
	 * <!-- begin-user-doc -->
266
	 * <!-- end-user-doc -->
267
	 * @generated
268
	 */
269
	public void setRef(String newRef) {
270
		String oldRef = ref;
271
		ref = newRef;
272
		if (eNotificationRequired())
273
			eNotify(new ENotificationImpl(this, Notification.SET, TaxonomyPackage.TAXONOMY__REF, oldRef, ref));
274
	}
275
276
	/**
277
	 * <!-- begin-user-doc -->
278
	 * <!-- end-user-doc -->
279
	 * @generated
280
	 */
281
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
282
		if (featureID >= 0) {
283
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
284
				case TaxonomyPackage.TAXONOMY__NLNAME:
285
					return ((InternalEList)getNlname()).basicRemove(otherEnd, msgs);
286
				case TaxonomyPackage.TAXONOMY__CATEGORY:
287
					return ((InternalEList)getCategory()).basicRemove(otherEnd, msgs);
288
				default:
289
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
290
			}
291
		}
292
		return eBasicSetContainer(null, featureID, msgs);
293
	}
294
295
	/**
296
	 * <!-- begin-user-doc -->
297
	 * <!-- end-user-doc -->
298
	 * @generated
299
	 */
300
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
301
		switch (eDerivedStructuralFeatureID(eFeature)) {
302
			case TaxonomyPackage.TAXONOMY__NLNAME:
303
				return getNlname();
304
			case TaxonomyPackage.TAXONOMY__CATEGORY:
305
				return getCategory();
306
			case TaxonomyPackage.TAXONOMY__ID:
307
				return getId();
308
			case TaxonomyPackage.TAXONOMY__LOCATION:
309
				return getLocation();
310
			case TaxonomyPackage.TAXONOMY__NAME:
311
				return getName();
312
			case TaxonomyPackage.TAXONOMY__REF:
313
				return getRef();
314
		}
315
		return eDynamicGet(eFeature, resolve);
316
	}
317
318
	/**
319
	 * <!-- begin-user-doc -->
320
	 * <!-- end-user-doc -->
321
	 * @generated
322
	 */
323
	public void eSet(EStructuralFeature eFeature, Object newValue) {
324
		switch (eDerivedStructuralFeatureID(eFeature)) {
325
			case TaxonomyPackage.TAXONOMY__NLNAME:
326
				getNlname().clear();
327
				getNlname().addAll((Collection)newValue);
328
				return;
329
			case TaxonomyPackage.TAXONOMY__CATEGORY:
330
				getCategory().clear();
331
				getCategory().addAll((Collection)newValue);
332
				return;
333
			case TaxonomyPackage.TAXONOMY__ID:
334
				setId((String)newValue);
335
				return;
336
			case TaxonomyPackage.TAXONOMY__LOCATION:
337
				setLocation((String)newValue);
338
				return;
339
			case TaxonomyPackage.TAXONOMY__NAME:
340
				setName((String)newValue);
341
				return;
342
			case TaxonomyPackage.TAXONOMY__REF:
343
				setRef((String)newValue);
344
				return;
345
		}
346
		eDynamicSet(eFeature, newValue);
347
	}
348
349
	/**
350
	 * <!-- begin-user-doc -->
351
	 * <!-- end-user-doc -->
352
	 * @generated
353
	 */
354
	public void eUnset(EStructuralFeature eFeature) {
355
		switch (eDerivedStructuralFeatureID(eFeature)) {
356
			case TaxonomyPackage.TAXONOMY__NLNAME:
357
				getNlname().clear();
358
				return;
359
			case TaxonomyPackage.TAXONOMY__CATEGORY:
360
				getCategory().clear();
361
				return;
362
			case TaxonomyPackage.TAXONOMY__ID:
363
				setId(ID_EDEFAULT);
364
				return;
365
			case TaxonomyPackage.TAXONOMY__LOCATION:
366
				setLocation(LOCATION_EDEFAULT);
367
				return;
368
			case TaxonomyPackage.TAXONOMY__NAME:
369
				setName(NAME_EDEFAULT);
370
				return;
371
			case TaxonomyPackage.TAXONOMY__REF:
372
				setRef(REF_EDEFAULT);
373
				return;
374
		}
375
		eDynamicUnset(eFeature);
376
	}
377
378
	/**
379
	 * <!-- begin-user-doc -->
380
	 * <!-- end-user-doc -->
381
	 * @generated
382
	 */
383
	public boolean eIsSet(EStructuralFeature eFeature) {
384
		switch (eDerivedStructuralFeatureID(eFeature)) {
385
			case TaxonomyPackage.TAXONOMY__NLNAME:
386
				return nlname != null && !nlname.isEmpty();
387
			case TaxonomyPackage.TAXONOMY__CATEGORY:
388
				return category != null && !category.isEmpty();
389
			case TaxonomyPackage.TAXONOMY__ID:
390
				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
391
			case TaxonomyPackage.TAXONOMY__LOCATION:
392
				return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
393
			case TaxonomyPackage.TAXONOMY__NAME:
394
				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
395
			case TaxonomyPackage.TAXONOMY__REF:
396
				return REF_EDEFAULT == null ? ref != null : !REF_EDEFAULT.equals(ref);
397
		}
398
		return eDynamicIsSet(eFeature);
399
	}
400
401
	/**
402
	 * <!-- begin-user-doc -->
403
	 * <!-- end-user-doc -->
404
	 * @generated
405
	 */
406
	public String toString() {
407
		if (eIsProxy()) return super.toString();
408
409
		StringBuffer result = new StringBuffer(super.toString());
410
		result.append(" (id: ");
411
		result.append(id);
412
		result.append(", location: ");
413
		result.append(location);
414
		result.append(", name: ");
415
		result.append(name);
416
		result.append(", ref: ");
417
		result.append(ref);
418
		result.append(')');
419
		return result.toString();
420
	}
421
422
} //TaxonomyImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/impl/TaxonomyPackageImpl.java (+640 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.impl;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
import org.eclipse.emf.ecore.impl.EPackageImpl;
15
16
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
17
18
import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl;
19
20
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
21
22
import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl;
23
24
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
25
26
import org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl;
27
28
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Category;
29
import org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot;
30
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Name;
31
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
32
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyFactory;
33
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
34
35
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
36
37
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl;
38
39
/**
40
 * <!-- begin-user-doc -->
41
 * An implementation of the model <b>Package</b>.
42
 * <!-- end-user-doc -->
43
 * @generated
44
 */
45
public class TaxonomyPackageImpl extends EPackageImpl implements TaxonomyPackage {
46
	/**
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @generated
50
	 */
51
	private EClass categoryEClass = null;
52
53
	/**
54
	 * <!-- begin-user-doc -->
55
	 * <!-- end-user-doc -->
56
	 * @generated
57
	 */
58
	private EClass documentRootEClass = null;
59
60
	/**
61
	 * <!-- begin-user-doc -->
62
	 * <!-- end-user-doc -->
63
	 * @generated
64
	 */
65
	private EClass nameEClass = null;
66
67
	/**
68
	 * <!-- begin-user-doc -->
69
	 * <!-- end-user-doc -->
70
	 * @generated
71
	 */
72
	private EClass taxonomyEClass = null;
73
74
	/**
75
	 * Creates an instance of the model <b>Package</b>, registered with
76
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
77
	 * package URI value.
78
	 * <p>Note: the correct way to create the package is via the static
79
	 * factory method {@link #init init()}, which also performs
80
	 * initialization of the package, or returns the registered package,
81
	 * if one already exists.
82
	 * <!-- begin-user-doc -->
83
	 * <!-- end-user-doc -->
84
	 * @see org.eclipse.emf.ecore.EPackage.Registry
85
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage#eNS_URI
86
	 * @see #init()
87
	 * @generated
88
	 */
89
	private TaxonomyPackageImpl() {
90
		super(eNS_URI, TaxonomyFactory.eINSTANCE);
91
	}
92
93
	/**
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @generated
97
	 */
98
	private static boolean isInited = false;
99
100
	/**
101
	 * Creates, registers, and initializes the <b>Package</b> for this
102
	 * model, and for any others upon which it depends.  Simple
103
	 * dependencies are satisfied by calling this method on all
104
	 * dependent packages before doing anything else.  This method drives
105
	 * initialization for interdependent packages directly, in parallel
106
	 * with this package, itself.
107
	 * <p>Of this package and its interdependencies, all packages which
108
	 * have not yet been registered by their URI values are first created
109
	 * and registered.  The packages are then initialized in two steps:
110
	 * meta-model objects for all of the packages are created before any
111
	 * are initialized, since one package's meta-model objects may refer to
112
	 * those of another.
113
	 * <p>Invocation of this method will not affect any packages that have
114
	 * already been initialized.
115
	 * <!-- begin-user-doc -->
116
	 * <!-- end-user-doc -->
117
	 * @see #eNS_URI
118
	 * @see #createPackageContents()
119
	 * @see #initializePackageContents()
120
	 * @generated
121
	 */
122
	public static TaxonomyPackage init() {
123
		if (isInited) return (TaxonomyPackage)EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI);
124
125
		// Obtain or create and register package
126
		TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TaxonomyPackageImpl());
127
128
		isInited = true;
129
130
		// Initialize simple dependencies
131
		XMLTypePackageImpl.init();
132
133
		// Obtain or create and register interdependencies
134
		RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) : RTIndexPackageImpl.eINSTANCE);
135
		RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) : RegistryPackageImpl.eINSTANCE);
136
		UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI) : UDDIRegistryPackageImpl.eINSTANCE);
137
138
		// Create package meta-data objects
139
		theTaxonomyPackage.createPackageContents();
140
		theRTIndexPackage.createPackageContents();
141
		theRegistryPackage.createPackageContents();
142
		theUDDIRegistryPackage.createPackageContents();
143
144
		// Initialize created meta-data
145
		theTaxonomyPackage.initializePackageContents();
146
		theRTIndexPackage.initializePackageContents();
147
		theRegistryPackage.initializePackageContents();
148
		theUDDIRegistryPackage.initializePackageContents();
149
150
		// Mark meta-data to indicate it can't be changed
151
		theTaxonomyPackage.freeze();
152
153
		return theTaxonomyPackage;
154
	}
155
156
	/**
157
	 * <!-- begin-user-doc -->
158
	 * <!-- end-user-doc -->
159
	 * @generated
160
	 */
161
	public EClass getCategory() {
162
		return categoryEClass;
163
	}
164
165
	/**
166
	 * <!-- begin-user-doc -->
167
	 * <!-- end-user-doc -->
168
	 * @generated
169
	 */
170
	public EReference getCategory_Nlname() {
171
		return (EReference)categoryEClass.getEStructuralFeatures().get(0);
172
	}
173
174
	/**
175
	 * <!-- begin-user-doc -->
176
	 * <!-- end-user-doc -->
177
	 * @generated
178
	 */
179
	public EReference getCategory_Category() {
180
		return (EReference)categoryEClass.getEStructuralFeatures().get(1);
181
	}
182
183
	/**
184
	 * <!-- begin-user-doc -->
185
	 * <!-- end-user-doc -->
186
	 * @generated
187
	 */
188
	public EAttribute getCategory_Code() {
189
		return (EAttribute)categoryEClass.getEStructuralFeatures().get(2);
190
	}
191
192
	/**
193
	 * <!-- begin-user-doc -->
194
	 * <!-- end-user-doc -->
195
	 * @generated
196
	 */
197
	public EAttribute getCategory_Name() {
198
		return (EAttribute)categoryEClass.getEStructuralFeatures().get(3);
199
	}
200
201
	/**
202
	 * <!-- begin-user-doc -->
203
	 * <!-- end-user-doc -->
204
	 * @generated
205
	 */
206
	public EClass getDocumentRoot() {
207
		return documentRootEClass;
208
	}
209
210
	/**
211
	 * <!-- begin-user-doc -->
212
	 * <!-- end-user-doc -->
213
	 * @generated
214
	 */
215
	public EAttribute getDocumentRoot_Mixed() {
216
		return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
217
	}
218
219
	/**
220
	 * <!-- begin-user-doc -->
221
	 * <!-- end-user-doc -->
222
	 * @generated
223
	 */
224
	public EReference getDocumentRoot_XMLNSPrefixMap() {
225
		return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
226
	}
227
228
	/**
229
	 * <!-- begin-user-doc -->
230
	 * <!-- end-user-doc -->
231
	 * @generated
232
	 */
233
	public EReference getDocumentRoot_XSISchemaLocation() {
234
		return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
235
	}
236
237
	/**
238
	 * <!-- begin-user-doc -->
239
	 * <!-- end-user-doc -->
240
	 * @generated
241
	 */
242
	public EReference getDocumentRoot_Category() {
243
		return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
244
	}
245
246
	/**
247
	 * <!-- begin-user-doc -->
248
	 * <!-- end-user-doc -->
249
	 * @generated
250
	 */
251
	public EReference getDocumentRoot_Name() {
252
		return (EReference)documentRootEClass.getEStructuralFeatures().get(4);
253
	}
254
255
	/**
256
	 * <!-- begin-user-doc -->
257
	 * <!-- end-user-doc -->
258
	 * @generated
259
	 */
260
	public EReference getDocumentRoot_Taxonomy() {
261
		return (EReference)documentRootEClass.getEStructuralFeatures().get(5);
262
	}
263
264
	/**
265
	 * <!-- begin-user-doc -->
266
	 * <!-- end-user-doc -->
267
	 * @generated
268
	 */
269
	public EClass getName_() {
270
		return nameEClass;
271
	}
272
273
	/**
274
	 * <!-- begin-user-doc -->
275
	 * <!-- end-user-doc -->
276
	 * @generated
277
	 */
278
	public EAttribute getName_Value() {
279
		return (EAttribute)nameEClass.getEStructuralFeatures().get(0);
280
	}
281
282
	/**
283
	 * <!-- begin-user-doc -->
284
	 * <!-- end-user-doc -->
285
	 * @generated
286
	 */
287
	public EAttribute getName_Lang() {
288
		return (EAttribute)nameEClass.getEStructuralFeatures().get(1);
289
	}
290
291
	/**
292
	 * <!-- begin-user-doc -->
293
	 * <!-- end-user-doc -->
294
	 * @generated
295
	 */
296
	public EClass getTaxonomy() {
297
		return taxonomyEClass;
298
	}
299
300
	/**
301
	 * <!-- begin-user-doc -->
302
	 * <!-- end-user-doc -->
303
	 * @generated
304
	 */
305
	public EReference getTaxonomy_Nlname() {
306
		return (EReference)taxonomyEClass.getEStructuralFeatures().get(0);
307
	}
308
309
	/**
310
	 * <!-- begin-user-doc -->
311
	 * <!-- end-user-doc -->
312
	 * @generated
313
	 */
314
	public EReference getTaxonomy_Category() {
315
		return (EReference)taxonomyEClass.getEStructuralFeatures().get(1);
316
	}
317
318
	/**
319
	 * <!-- begin-user-doc -->
320
	 * <!-- end-user-doc -->
321
	 * @generated
322
	 */
323
	public EAttribute getTaxonomy_Id() {
324
		return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(2);
325
	}
326
327
	/**
328
	 * <!-- begin-user-doc -->
329
	 * <!-- end-user-doc -->
330
	 * @generated
331
	 */
332
	public EAttribute getTaxonomy_Location() {
333
		return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(3);
334
	}
335
336
	/**
337
	 * <!-- begin-user-doc -->
338
	 * <!-- end-user-doc -->
339
	 * @generated
340
	 */
341
	public EAttribute getTaxonomy_Name() {
342
		return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(4);
343
	}
344
345
	/**
346
	 * <!-- begin-user-doc -->
347
	 * <!-- end-user-doc -->
348
	 * @generated
349
	 */
350
	public EAttribute getTaxonomy_Ref() {
351
		return (EAttribute)taxonomyEClass.getEStructuralFeatures().get(5);
352
	}
353
354
	/**
355
	 * <!-- begin-user-doc -->
356
	 * <!-- end-user-doc -->
357
	 * @generated
358
	 */
359
	public TaxonomyFactory getTaxonomyFactory() {
360
		return (TaxonomyFactory)getEFactoryInstance();
361
	}
362
363
	/**
364
	 * <!-- begin-user-doc -->
365
	 * <!-- end-user-doc -->
366
	 * @generated
367
	 */
368
	private boolean isCreated = false;
369
370
	/**
371
	 * Creates the meta-model objects for the package.  This method is
372
	 * guarded to have no affect on any invocation but its first.
373
	 * <!-- begin-user-doc -->
374
	 * <!-- end-user-doc -->
375
	 * @generated
376
	 */
377
	public void createPackageContents() {
378
		if (isCreated) return;
379
		isCreated = true;
380
381
		// Create classes and their features
382
		categoryEClass = createEClass(CATEGORY);
383
		createEReference(categoryEClass, CATEGORY__NLNAME);
384
		createEReference(categoryEClass, CATEGORY__CATEGORY);
385
		createEAttribute(categoryEClass, CATEGORY__CODE);
386
		createEAttribute(categoryEClass, CATEGORY__NAME);
387
388
		documentRootEClass = createEClass(DOCUMENT_ROOT);
389
		createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
390
		createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
391
		createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
392
		createEReference(documentRootEClass, DOCUMENT_ROOT__CATEGORY);
393
		createEReference(documentRootEClass, DOCUMENT_ROOT__NAME);
394
		createEReference(documentRootEClass, DOCUMENT_ROOT__TAXONOMY);
395
396
		nameEClass = createEClass(NAME);
397
		createEAttribute(nameEClass, NAME__VALUE);
398
		createEAttribute(nameEClass, NAME__LANG);
399
400
		taxonomyEClass = createEClass(TAXONOMY);
401
		createEReference(taxonomyEClass, TAXONOMY__NLNAME);
402
		createEReference(taxonomyEClass, TAXONOMY__CATEGORY);
403
		createEAttribute(taxonomyEClass, TAXONOMY__ID);
404
		createEAttribute(taxonomyEClass, TAXONOMY__LOCATION);
405
		createEAttribute(taxonomyEClass, TAXONOMY__NAME);
406
		createEAttribute(taxonomyEClass, TAXONOMY__REF);
407
	}
408
409
	/**
410
	 * <!-- begin-user-doc -->
411
	 * <!-- end-user-doc -->
412
	 * @generated
413
	 */
414
	private boolean isInitialized = false;
415
416
	/**
417
	 * Complete the initialization of the package and its meta-model.  This
418
	 * method is guarded to have no affect on any invocation but its first.
419
	 * <!-- begin-user-doc -->
420
	 * <!-- end-user-doc -->
421
	 * @generated
422
	 */
423
	public void initializePackageContents() {
424
		if (isInitialized) return;
425
		isInitialized = true;
426
427
		// Initialize package
428
		setName(eNAME);
429
		setNsPrefix(eNS_PREFIX);
430
		setNsURI(eNS_URI);
431
432
		// Obtain other dependent packages
433
		XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
434
435
		// Add supertypes to classes
436
437
		// Initialize classes and features; add operations and parameters
438
		initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
439
		initEReference(getCategory_Nlname(), this.getName_(), null, "nlname", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
440
		initEReference(getCategory_Category(), this.getCategory(), null, "category", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
441
		initEAttribute(getCategory_Code(), theXMLTypePackage.getString(), "code", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
442
		initEAttribute(getCategory_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
443
444
		initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
445
		initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
446
		initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
447
		initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
448
		initEReference(getDocumentRoot_Category(), this.getCategory(), null, "category", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
449
		initEReference(getDocumentRoot_Name(), this.getName_(), null, "name", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
450
		initEReference(getDocumentRoot_Taxonomy(), this.getTaxonomy(), null, "taxonomy", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
451
452
		initEClass(nameEClass, Name.class, "Name", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
453
		initEAttribute(getName_Value(), theXMLTypePackage.getString(), "value", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
454
		initEAttribute(getName_Lang(), theXMLTypePackage.getLanguage(), "lang", null, 0, 1, Name.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
455
456
		initEClass(taxonomyEClass, Taxonomy.class, "Taxonomy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
457
		initEReference(getTaxonomy_Nlname(), this.getName_(), null, "nlname", null, 0, -1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
458
		initEReference(getTaxonomy_Category(), this.getCategory(), null, "category", null, 0, -1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
459
		initEAttribute(getTaxonomy_Id(), theXMLTypePackage.getAnyURI(), "id", null, 1, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
460
		initEAttribute(getTaxonomy_Location(), theXMLTypePackage.getAnyURI(), "location", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
461
		initEAttribute(getTaxonomy_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
462
		initEAttribute(getTaxonomy_Ref(), theXMLTypePackage.getAnyURI(), "ref", null, 0, 1, Taxonomy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
463
464
		// Create resource
465
		createResource(eNS_URI);
466
467
		// Create annotations
468
		// http:///org/eclipse/emf/ecore/util/ExtendedMetaData
469
		createExtendedMetaDataAnnotations();
470
	}
471
472
	/**
473
	 * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
474
	 * <!-- begin-user-doc -->
475
	 * <!-- end-user-doc -->
476
	 * @generated
477
	 */
478
	protected void createExtendedMetaDataAnnotations() {
479
		String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";			
480
		addAnnotation
481
		  (categoryEClass, 
482
		   source, 
483
		   new String[] {
484
			 "name", "Category",
485
			 "kind", "elementOnly"
486
		   });		
487
		addAnnotation
488
		  (getCategory_Nlname(), 
489
		   source, 
490
		   new String[] {
491
			 "kind", "element",
492
			 "name", "nlname"
493
		   });		
494
		addAnnotation
495
		  (getCategory_Category(), 
496
		   source, 
497
		   new String[] {
498
			 "kind", "element",
499
			 "name", "category"
500
		   });		
501
		addAnnotation
502
		  (getCategory_Code(), 
503
		   source, 
504
		   new String[] {
505
			 "kind", "attribute",
506
			 "name", "code"
507
		   });		
508
		addAnnotation
509
		  (getCategory_Name(), 
510
		   source, 
511
		   new String[] {
512
			 "kind", "attribute",
513
			 "name", "name"
514
		   });		
515
		addAnnotation
516
		  (documentRootEClass, 
517
		   source, 
518
		   new String[] {
519
			 "name", "",
520
			 "kind", "mixed"
521
		   });		
522
		addAnnotation
523
		  (getDocumentRoot_Mixed(), 
524
		   source, 
525
		   new String[] {
526
			 "kind", "elementWildcard",
527
			 "name", ":mixed"
528
		   });		
529
		addAnnotation
530
		  (getDocumentRoot_XMLNSPrefixMap(), 
531
		   source, 
532
		   new String[] {
533
			 "kind", "attribute",
534
			 "name", "xmlns:prefix"
535
		   });		
536
		addAnnotation
537
		  (getDocumentRoot_XSISchemaLocation(), 
538
		   source, 
539
		   new String[] {
540
			 "kind", "attribute",
541
			 "name", "xsi:schemaLocation"
542
		   });		
543
		addAnnotation
544
		  (getDocumentRoot_Category(), 
545
		   source, 
546
		   new String[] {
547
			 "kind", "element",
548
			 "name", "category",
549
			 "namespace", "##targetNamespace"
550
		   });		
551
		addAnnotation
552
		  (getDocumentRoot_Name(), 
553
		   source, 
554
		   new String[] {
555
			 "kind", "element",
556
			 "name", "name",
557
			 "namespace", "##targetNamespace"
558
		   });		
559
		addAnnotation
560
		  (getDocumentRoot_Taxonomy(), 
561
		   source, 
562
		   new String[] {
563
			 "kind", "element",
564
			 "name", "taxonomy",
565
			 "namespace", "##targetNamespace"
566
		   });		
567
		addAnnotation
568
		  (nameEClass, 
569
		   source, 
570
		   new String[] {
571
			 "name", "Name",
572
			 "kind", "simple"
573
		   });		
574
		addAnnotation
575
		  (getName_Value(), 
576
		   source, 
577
		   new String[] {
578
			 "name", ":0",
579
			 "kind", "simple"
580
		   });		
581
		addAnnotation
582
		  (getName_Lang(), 
583
		   source, 
584
		   new String[] {
585
			 "kind", "attribute",
586
			 "name", "lang",
587
			 "namespace", "http://www.w3.org/XML/1998/namespace"
588
		   });		
589
		addAnnotation
590
		  (taxonomyEClass, 
591
		   source, 
592
		   new String[] {
593
			 "name", "Taxonomy",
594
			 "kind", "elementOnly"
595
		   });		
596
		addAnnotation
597
		  (getTaxonomy_Nlname(), 
598
		   source, 
599
		   new String[] {
600
			 "kind", "element",
601
			 "name", "nlname"
602
		   });		
603
		addAnnotation
604
		  (getTaxonomy_Category(), 
605
		   source, 
606
		   new String[] {
607
			 "kind", "element",
608
			 "name", "category"
609
		   });		
610
		addAnnotation
611
		  (getTaxonomy_Id(), 
612
		   source, 
613
		   new String[] {
614
			 "kind", "attribute",
615
			 "name", "id"
616
		   });		
617
		addAnnotation
618
		  (getTaxonomy_Location(), 
619
		   source, 
620
		   new String[] {
621
			 "kind", "attribute",
622
			 "name", "location"
623
		   });		
624
		addAnnotation
625
		  (getTaxonomy_Name(), 
626
		   source, 
627
		   new String[] {
628
			 "kind", "attribute",
629
			 "name", "name"
630
		   });		
631
		addAnnotation
632
		  (getTaxonomy_Ref(), 
633
		   source, 
634
		   new String[] {
635
			 "kind", "attribute",
636
			 "name", "ref"
637
		   });
638
	}
639
640
} //TaxonomyPackageImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyAdapterFactory.java (+171 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.util;
8
9
import org.eclipse.emf.common.notify.Adapter;
10
import org.eclipse.emf.common.notify.Notifier;
11
12
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13
14
import org.eclipse.emf.ecore.EObject;
15
16
import org.eclipse.wst.ws.internal.model.v10.taxonomy.*;
17
18
/**
19
 * <!-- begin-user-doc -->
20
 * The <b>Adapter Factory</b> for the model.
21
 * It provides an adapter <code>createXXX</code> method for each class of the model.
22
 * <!-- end-user-doc -->
23
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage
24
 * @generated
25
 */
26
public class TaxonomyAdapterFactory extends AdapterFactoryImpl {
27
	/**
28
	 * The cached model package.
29
	 * <!-- begin-user-doc -->
30
	 * <!-- end-user-doc -->
31
	 * @generated
32
	 */
33
	protected static TaxonomyPackage modelPackage;
34
35
	/**
36
	 * Creates an instance of the adapter factory.
37
	 * <!-- begin-user-doc -->
38
	 * <!-- end-user-doc -->
39
	 * @generated
40
	 */
41
	public TaxonomyAdapterFactory() {
42
		if (modelPackage == null) {
43
			modelPackage = TaxonomyPackage.eINSTANCE;
44
		}
45
	}
46
47
	/**
48
	 * Returns whether this factory is applicable for the type of the object.
49
	 * <!-- begin-user-doc -->
50
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
51
	 * <!-- end-user-doc -->
52
	 * @return whether this factory is applicable for the type of the object.
53
	 * @generated
54
	 */
55
	public boolean isFactoryForType(Object object) {
56
		if (object == modelPackage) {
57
			return true;
58
		}
59
		if (object instanceof EObject) {
60
			return ((EObject)object).eClass().getEPackage() == modelPackage;
61
		}
62
		return false;
63
	}
64
65
	/**
66
	 * The switch the delegates to the <code>createXXX</code> methods.
67
	 * <!-- begin-user-doc -->
68
	 * <!-- end-user-doc -->
69
	 * @generated
70
	 */
71
	protected TaxonomySwitch modelSwitch =
72
		new TaxonomySwitch() {
73
			public Object caseCategory(Category object) {
74
				return createCategoryAdapter();
75
			}
76
			public Object caseDocumentRoot(DocumentRoot object) {
77
				return createDocumentRootAdapter();
78
			}
79
			public Object caseName(Name object) {
80
				return createNameAdapter();
81
			}
82
			public Object caseTaxonomy(Taxonomy object) {
83
				return createTaxonomyAdapter();
84
			}
85
			public Object defaultCase(EObject object) {
86
				return createEObjectAdapter();
87
			}
88
		};
89
90
	/**
91
	 * Creates an adapter for the <code>target</code>.
92
	 * <!-- begin-user-doc -->
93
	 * <!-- end-user-doc -->
94
	 * @param target the object to adapt.
95
	 * @return the adapter for the <code>target</code>.
96
	 * @generated
97
	 */
98
	public Adapter createAdapter(Notifier target) {
99
		return (Adapter)modelSwitch.doSwitch((EObject)target);
100
	}
101
102
103
	/**
104
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Category <em>Category</em>}'.
105
	 * <!-- begin-user-doc -->
106
	 * This default implementation returns null so that we can easily ignore cases;
107
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
108
	 * <!-- end-user-doc -->
109
	 * @return the new adapter.
110
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Category
111
	 * @generated
112
	 */
113
	public Adapter createCategoryAdapter() {
114
		return null;
115
	}
116
117
	/**
118
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot <em>Document Root</em>}'.
119
	 * <!-- begin-user-doc -->
120
	 * This default implementation returns null so that we can easily ignore cases;
121
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
122
	 * <!-- end-user-doc -->
123
	 * @return the new adapter.
124
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot
125
	 * @generated
126
	 */
127
	public Adapter createDocumentRootAdapter() {
128
		return null;
129
	}
130
131
	/**
132
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Name <em>Name</em>}'.
133
	 * <!-- begin-user-doc -->
134
	 * This default implementation returns null so that we can easily ignore cases;
135
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
136
	 * <!-- end-user-doc -->
137
	 * @return the new adapter.
138
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Name
139
	 * @generated
140
	 */
141
	public Adapter createNameAdapter() {
142
		return null;
143
	}
144
145
	/**
146
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy <em>Taxonomy</em>}'.
147
	 * <!-- begin-user-doc -->
148
	 * This default implementation returns null so that we can easily ignore cases;
149
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
150
	 * <!-- end-user-doc -->
151
	 * @return the new adapter.
152
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy
153
	 * @generated
154
	 */
155
	public Adapter createTaxonomyAdapter() {
156
		return null;
157
	}
158
159
	/**
160
	 * Creates a new adapter for the default case.
161
	 * <!-- begin-user-doc -->
162
	 * This default implementation returns null.
163
	 * <!-- end-user-doc -->
164
	 * @return the new adapter.
165
	 * @generated
166
	 */
167
	public Adapter createEObjectAdapter() {
168
		return null;
169
	}
170
171
} //TaxonomyAdapterFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceFactoryImpl.java (+63 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.resource.Resource;
12
13
import org.eclipse.emf.ecore.util.ExtendedMetaData;
14
15
import org.eclipse.emf.ecore.xmi.XMLResource;
16
17
import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl;
18
19
/**
20
 * <!-- begin-user-doc -->
21
 * The <b>Resource Factory</b> associated with the package.
22
 * <!-- end-user-doc -->
23
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.util.TaxonomyResourceImpl
24
 * @generated
25
 */
26
public class TaxonomyResourceFactoryImpl extends XMLResourceFactoryImpl {
27
	/**
28
	 * <!-- begin-user-doc -->
29
	 * <!-- end-user-doc -->
30
	 * @generated
31
	 */
32
	protected ExtendedMetaData extendedMetaData;
33
34
	/**
35
	 * Creates an instance of the resource factory.
36
	 * <!-- begin-user-doc -->
37
	 * <!-- end-user-doc -->
38
	 * @generated
39
	 */
40
	public TaxonomyResourceFactoryImpl() {
41
		super();
42
		extendedMetaData = ExtendedMetaData.INSTANCE;
43
	}
44
45
	/**
46
	 * Creates an instance of the resource.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @generated
50
	 */
51
	public Resource createResource(URI uri) {
52
		XMLResource result = new TaxonomyResourceImpl(uri);
53
		result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
54
		result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
55
56
		result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
57
		result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
58
59
		result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
60
		return result;
61
	}
62
63
} //TaxonomyResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomyResourceImpl.java (+32 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * The <b>Resource </b> associated with the package.
16
 * <!-- end-user-doc -->
17
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.util.TaxonomyResourceFactoryImpl
18
 * @generated
19
 */
20
public class TaxonomyResourceImpl extends XMLResourceImpl {
21
	/**
22
	 * Creates an instance of the resource.
23
	 * <!-- begin-user-doc -->
24
	 * <!-- end-user-doc -->
25
	 * @param uri the URI of the new resource.
26
	 * @generated
27
	 */
28
	public TaxonomyResourceImpl(URI uri) {
29
		super(uri);
30
	}
31
32
} //TaxonomyResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/taxonomy/util/TaxonomySwitch.java (+193 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.taxonomy.util;
8
9
import java.util.List;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EObject;
13
14
import org.eclipse.wst.ws.internal.model.v10.taxonomy.*;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * The <b>Switch</b> for the model's inheritance hierarchy.
19
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
20
 * to invoke the <code>caseXXX</code> method for each class of the model,
21
 * starting with the actual class of the object
22
 * and proceeding up the inheritance hierarchy
23
 * until a non-null result is returned,
24
 * which is the result of the switch.
25
 * <!-- end-user-doc -->
26
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage
27
 * @generated
28
 */
29
public class TaxonomySwitch {
30
	/**
31
	 * The cached model package
32
	 * <!-- begin-user-doc -->
33
	 * <!-- end-user-doc -->
34
	 * @generated
35
	 */
36
	protected static TaxonomyPackage modelPackage;
37
38
	/**
39
	 * Creates an instance of the switch.
40
	 * <!-- begin-user-doc -->
41
	 * <!-- end-user-doc -->
42
	 * @generated
43
	 */
44
	public TaxonomySwitch() {
45
		if (modelPackage == null) {
46
			modelPackage = TaxonomyPackage.eINSTANCE;
47
		}
48
	}
49
50
	/**
51
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
52
	 * <!-- begin-user-doc -->
53
	 * <!-- end-user-doc -->
54
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
55
	 * @generated
56
	 */
57
	public Object doSwitch(EObject theEObject) {
58
		return doSwitch(theEObject.eClass(), theEObject);
59
	}
60
61
	/**
62
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
63
	 * <!-- begin-user-doc -->
64
	 * <!-- end-user-doc -->
65
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
66
	 * @generated
67
	 */
68
	protected Object doSwitch(EClass theEClass, EObject theEObject) {
69
		if (theEClass.eContainer() == modelPackage) {
70
			return doSwitch(theEClass.getClassifierID(), theEObject);
71
		}
72
		else {
73
			List eSuperTypes = theEClass.getESuperTypes();
74
			return
75
				eSuperTypes.isEmpty() ?
76
					defaultCase(theEObject) :
77
					doSwitch((EClass)eSuperTypes.get(0), theEObject);
78
		}
79
	}
80
81
	/**
82
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
83
	 * <!-- begin-user-doc -->
84
	 * <!-- end-user-doc -->
85
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
86
	 * @generated
87
	 */
88
	protected Object doSwitch(int classifierID, EObject theEObject) {
89
		switch (classifierID) {
90
			case TaxonomyPackage.CATEGORY: {
91
				Category category = (Category)theEObject;
92
				Object result = caseCategory(category);
93
				if (result == null) result = defaultCase(theEObject);
94
				return result;
95
			}
96
			case TaxonomyPackage.DOCUMENT_ROOT: {
97
				DocumentRoot documentRoot = (DocumentRoot)theEObject;
98
				Object result = caseDocumentRoot(documentRoot);
99
				if (result == null) result = defaultCase(theEObject);
100
				return result;
101
			}
102
			case TaxonomyPackage.NAME: {
103
				Name name = (Name)theEObject;
104
				Object result = caseName(name);
105
				if (result == null) result = defaultCase(theEObject);
106
				return result;
107
			}
108
			case TaxonomyPackage.TAXONOMY: {
109
				Taxonomy taxonomy = (Taxonomy)theEObject;
110
				Object result = caseTaxonomy(taxonomy);
111
				if (result == null) result = defaultCase(theEObject);
112
				return result;
113
			}
114
			default: return defaultCase(theEObject);
115
		}
116
	}
117
118
	/**
119
	 * Returns the result of interpretting the object as an instance of '<em>Category</em>'.
120
	 * <!-- begin-user-doc -->
121
	 * This implementation returns null;
122
	 * returning a non-null result will terminate the switch.
123
	 * <!-- end-user-doc -->
124
	 * @param object the target of the switch.
125
	 * @return the result of interpretting the object as an instance of '<em>Category</em>'.
126
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
127
	 * @generated
128
	 */
129
	public Object caseCategory(Category object) {
130
		return null;
131
	}
132
133
	/**
134
	 * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
135
	 * <!-- begin-user-doc -->
136
	 * This implementation returns null;
137
	 * returning a non-null result will terminate the switch.
138
	 * <!-- end-user-doc -->
139
	 * @param object the target of the switch.
140
	 * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
141
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
142
	 * @generated
143
	 */
144
	public Object caseDocumentRoot(DocumentRoot object) {
145
		return null;
146
	}
147
148
	/**
149
	 * Returns the result of interpretting the object as an instance of '<em>Name</em>'.
150
	 * <!-- begin-user-doc -->
151
	 * This implementation returns null;
152
	 * returning a non-null result will terminate the switch.
153
	 * <!-- end-user-doc -->
154
	 * @param object the target of the switch.
155
	 * @return the result of interpretting the object as an instance of '<em>Name</em>'.
156
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
157
	 * @generated
158
	 */
159
	public Object caseName(Name object) {
160
		return null;
161
	}
162
163
	/**
164
	 * Returns the result of interpretting the object as an instance of '<em>Taxonomy</em>'.
165
	 * <!-- begin-user-doc -->
166
	 * This implementation returns null;
167
	 * returning a non-null result will terminate the switch.
168
	 * <!-- end-user-doc -->
169
	 * @param object the target of the switch.
170
	 * @return the result of interpretting the object as an instance of '<em>Taxonomy</em>'.
171
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
172
	 * @generated
173
	 */
174
	public Object caseTaxonomy(Taxonomy object) {
175
		return null;
176
	}
177
178
	/**
179
	 * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
180
	 * <!-- begin-user-doc -->
181
	 * This implementation returns null;
182
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
183
	 * <!-- end-user-doc -->
184
	 * @param object the target of the switch.
185
	 * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
186
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
187
	 * @generated
188
	 */
189
	public Object defaultCase(EObject object) {
190
		return null;
191
	}
192
193
} //TaxonomySwitch
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/DocumentRoot.java (+138 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry;
8
9
import org.eclipse.emf.common.util.EMap;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
import org.eclipse.emf.ecore.util.FeatureMap;
14
15
/**
16
 * <!-- begin-user-doc -->
17
 * A representation of the model object '<em><b>Document Root</b></em>'.
18
 * <!-- end-user-doc -->
19
 *
20
 * <p>
21
 * The following features are supported:
22
 * <ul>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getMixed <em>Mixed</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
25
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
26
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies <em>Taxonomies</em>}</li>
27
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry <em>Uddi Registry</em>}</li>
28
 * </ul>
29
 * </p>
30
 *
31
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot()
32
 * @model 
33
 * @generated
34
 */
35
public interface DocumentRoot extends EObject {
36
	/**
37
	 * Returns the value of the '<em><b>Mixed</b></em>' attribute list.
38
	 * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
39
	 * <!-- begin-user-doc -->
40
	 * <p>
41
	 * If the meaning of the '<em>Mixed</em>' attribute list isn't clear,
42
	 * there really should be more of a description here...
43
	 * </p>
44
	 * <!-- end-user-doc -->
45
	 * @return the value of the '<em>Mixed</em>' attribute list.
46
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_Mixed()
47
	 * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
48
	 * @generated
49
	 */
50
	FeatureMap getMixed();
51
52
	/**
53
	 * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map.
54
	 * The key is of type {@link java.lang.String},
55
	 * and the value is of type {@link java.lang.String},
56
	 * <!-- begin-user-doc -->
57
	 * <p>
58
	 * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear,
59
	 * there really should be more of a description here...
60
	 * </p>
61
	 * <!-- end-user-doc -->
62
	 * @return the value of the '<em>XMLNS Prefix Map</em>' map.
63
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_XMLNSPrefixMap()
64
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
65
	 * @generated
66
	 */
67
	EMap getXMLNSPrefixMap();
68
69
	/**
70
	 * Returns the value of the '<em><b>XSI Schema Location</b></em>' map.
71
	 * The key is of type {@link java.lang.String},
72
	 * and the value is of type {@link java.lang.String},
73
	 * <!-- begin-user-doc -->
74
	 * <p>
75
	 * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear,
76
	 * there really should be more of a description here...
77
	 * </p>
78
	 * <!-- end-user-doc -->
79
	 * @return the value of the '<em>XSI Schema Location</em>' map.
80
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_XSISchemaLocation()
81
	 * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry" keyType="java.lang.String" valueType="java.lang.String" transient="true"
82
	 * @generated
83
	 */
84
	EMap getXSISchemaLocation();
85
86
	/**
87
	 * Returns the value of the '<em><b>Taxonomies</b></em>' containment reference.
88
	 * <!-- begin-user-doc -->
89
	 * <p>
90
	 * If the meaning of the '<em>Taxonomies</em>' containment reference isn't clear,
91
	 * there really should be more of a description here...
92
	 * </p>
93
	 * <!-- end-user-doc -->
94
	 * @return the value of the '<em>Taxonomies</em>' containment reference.
95
	 * @see #setTaxonomies(Taxonomies)
96
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_Taxonomies()
97
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
98
	 * @generated
99
	 */
100
	Taxonomies getTaxonomies();
101
102
	/**
103
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies <em>Taxonomies</em>}' containment reference.
104
	 * <!-- begin-user-doc -->
105
	 * <!-- end-user-doc -->
106
	 * @param value the new value of the '<em>Taxonomies</em>' containment reference.
107
	 * @see #getTaxonomies()
108
	 * @generated
109
	 */
110
	void setTaxonomies(Taxonomies value);
111
112
	/**
113
	 * Returns the value of the '<em><b>Uddi Registry</b></em>' containment reference.
114
	 * <!-- begin-user-doc -->
115
	 * <p>
116
	 * If the meaning of the '<em>Uddi Registry</em>' containment reference isn't clear,
117
	 * there really should be more of a description here...
118
	 * </p>
119
	 * <!-- end-user-doc -->
120
	 * @return the value of the '<em>Uddi Registry</em>' containment reference.
121
	 * @see #setUddiRegistry(UDDIRegistry)
122
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getDocumentRoot_UddiRegistry()
123
	 * @model containment="true" resolveProxies="false" transient="true" volatile="true" derived="true"
124
	 * @generated
125
	 */
126
	UDDIRegistry getUddiRegistry();
127
128
	/**
129
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry <em>Uddi Registry</em>}' containment reference.
130
	 * <!-- begin-user-doc -->
131
	 * <!-- end-user-doc -->
132
	 * @param value the new value of the '<em>Uddi Registry</em>' containment reference.
133
	 * @see #getUddiRegistry()
134
	 * @generated
135
	 */
136
	void setUddiRegistry(UDDIRegistry value);
137
138
} // DocumentRoot
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/Taxonomies.java (+46 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry;
8
9
import org.eclipse.emf.common.util.EList;
10
11
import org.eclipse.emf.ecore.EObject;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * A representation of the model object '<em><b>Taxonomies</b></em>'.
16
 * <!-- end-user-doc -->
17
 *
18
 * <p>
19
 * The following features are supported:
20
 * <ul>
21
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies#getTaxonomy <em>Taxonomy</em>}</li>
22
 * </ul>
23
 * </p>
24
 *
25
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getTaxonomies()
26
 * @model 
27
 * @generated
28
 */
29
public interface Taxonomies extends EObject {
30
	/**
31
	 * Returns the value of the '<em><b>Taxonomy</b></em>' containment reference list.
32
	 * The list contents are of type {@link org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy}.
33
	 * <!-- begin-user-doc -->
34
	 * <p>
35
	 * If the meaning of the '<em>Taxonomy</em>' containment reference list isn't clear,
36
	 * there really should be more of a description here...
37
	 * </p>
38
	 * <!-- end-user-doc -->
39
	 * @return the value of the '<em>Taxonomy</em>' containment reference list.
40
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getTaxonomies_Taxonomy()
41
	 * @model type="org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy" containment="true" resolveProxies="false"
42
	 * @generated
43
	 */
44
	EList getTaxonomy();
45
46
} // Taxonomies
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistry.java (+243 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry;
8
9
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * A representation of the model object '<em><b>UDDIRegistry</b></em>'.
14
 * <!-- end-user-doc -->
15
 *
16
 * <p>
17
 * The following features are supported:
18
 * <ul>
19
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion <em>Version</em>}</li>
20
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL <em>Discovery URL</em>}</li>
21
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL <em>Publication URL</em>}</li>
22
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}</li>
23
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL <em>Secured Publication URL</em>}</li>
24
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin <em>Default Login</em>}</li>
25
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword <em>Default Password</em>}</li>
26
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies <em>Taxonomies</em>}</li>
27
 * </ul>
28
 * </p>
29
 *
30
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry()
31
 * @model 
32
 * @generated
33
 */
34
public interface UDDIRegistry extends Registry {
35
	/**
36
	 * Returns the value of the '<em><b>Version</b></em>' attribute.
37
	 * <!-- begin-user-doc -->
38
	 * <p>
39
	 * If the meaning of the '<em>Version</em>' attribute isn't clear,
40
	 * there really should be more of a description here...
41
	 * </p>
42
	 * <!-- end-user-doc -->
43
	 * @return the value of the '<em>Version</em>' attribute.
44
	 * @see #setVersion(String)
45
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_Version()
46
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
47
	 * @generated
48
	 */
49
	String getVersion();
50
51
	/**
52
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion <em>Version</em>}' attribute.
53
	 * <!-- begin-user-doc -->
54
	 * <!-- end-user-doc -->
55
	 * @param value the new value of the '<em>Version</em>' attribute.
56
	 * @see #getVersion()
57
	 * @generated
58
	 */
59
	void setVersion(String value);
60
61
	/**
62
	 * Returns the value of the '<em><b>Discovery URL</b></em>' attribute.
63
	 * <!-- begin-user-doc -->
64
	 * <p>
65
	 * If the meaning of the '<em>Discovery URL</em>' attribute isn't clear,
66
	 * there really should be more of a description here...
67
	 * </p>
68
	 * <!-- end-user-doc -->
69
	 * @return the value of the '<em>Discovery URL</em>' attribute.
70
	 * @see #setDiscoveryURL(String)
71
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_DiscoveryURL()
72
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
73
	 * @generated
74
	 */
75
	String getDiscoveryURL();
76
77
	/**
78
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL <em>Discovery URL</em>}' attribute.
79
	 * <!-- begin-user-doc -->
80
	 * <!-- end-user-doc -->
81
	 * @param value the new value of the '<em>Discovery URL</em>' attribute.
82
	 * @see #getDiscoveryURL()
83
	 * @generated
84
	 */
85
	void setDiscoveryURL(String value);
86
87
	/**
88
	 * Returns the value of the '<em><b>Publication URL</b></em>' attribute.
89
	 * <!-- begin-user-doc -->
90
	 * <p>
91
	 * If the meaning of the '<em>Publication URL</em>' attribute isn't clear,
92
	 * there really should be more of a description here...
93
	 * </p>
94
	 * <!-- end-user-doc -->
95
	 * @return the value of the '<em>Publication URL</em>' attribute.
96
	 * @see #setPublicationURL(String)
97
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_PublicationURL()
98
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
99
	 * @generated
100
	 */
101
	String getPublicationURL();
102
103
	/**
104
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL <em>Publication URL</em>}' attribute.
105
	 * <!-- begin-user-doc -->
106
	 * <!-- end-user-doc -->
107
	 * @param value the new value of the '<em>Publication URL</em>' attribute.
108
	 * @see #getPublicationURL()
109
	 * @generated
110
	 */
111
	void setPublicationURL(String value);
112
113
	/**
114
	 * Returns the value of the '<em><b>Secured Discovery URL</b></em>' attribute.
115
	 * <!-- begin-user-doc -->
116
	 * <p>
117
	 * If the meaning of the '<em>Secured Discovery URL</em>' attribute isn't clear,
118
	 * there really should be more of a description here...
119
	 * </p>
120
	 * <!-- end-user-doc -->
121
	 * @return the value of the '<em>Secured Discovery URL</em>' attribute.
122
	 * @see #setSecuredDiscoveryURL(String)
123
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_SecuredDiscoveryURL()
124
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
125
	 * @generated
126
	 */
127
	String getSecuredDiscoveryURL();
128
129
	/**
130
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}' attribute.
131
	 * <!-- begin-user-doc -->
132
	 * <!-- end-user-doc -->
133
	 * @param value the new value of the '<em>Secured Discovery URL</em>' attribute.
134
	 * @see #getSecuredDiscoveryURL()
135
	 * @generated
136
	 */
137
	void setSecuredDiscoveryURL(String value);
138
139
	/**
140
	 * Returns the value of the '<em><b>Secured Publication URL</b></em>' attribute.
141
	 * <!-- begin-user-doc -->
142
	 * <p>
143
	 * If the meaning of the '<em>Secured Publication URL</em>' attribute isn't clear,
144
	 * there really should be more of a description here...
145
	 * </p>
146
	 * <!-- end-user-doc -->
147
	 * @return the value of the '<em>Secured Publication URL</em>' attribute.
148
	 * @see #setSecuredPublicationURL(String)
149
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_SecuredPublicationURL()
150
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.AnyURI"
151
	 * @generated
152
	 */
153
	String getSecuredPublicationURL();
154
155
	/**
156
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL <em>Secured Publication URL</em>}' attribute.
157
	 * <!-- begin-user-doc -->
158
	 * <!-- end-user-doc -->
159
	 * @param value the new value of the '<em>Secured Publication URL</em>' attribute.
160
	 * @see #getSecuredPublicationURL()
161
	 * @generated
162
	 */
163
	void setSecuredPublicationURL(String value);
164
165
	/**
166
	 * Returns the value of the '<em><b>Default Login</b></em>' attribute.
167
	 * <!-- begin-user-doc -->
168
	 * <p>
169
	 * If the meaning of the '<em>Default Login</em>' attribute isn't clear,
170
	 * there really should be more of a description here...
171
	 * </p>
172
	 * <!-- end-user-doc -->
173
	 * @return the value of the '<em>Default Login</em>' attribute.
174
	 * @see #setDefaultLogin(String)
175
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_DefaultLogin()
176
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
177
	 * @generated
178
	 */
179
	String getDefaultLogin();
180
181
	/**
182
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin <em>Default Login</em>}' attribute.
183
	 * <!-- begin-user-doc -->
184
	 * <!-- end-user-doc -->
185
	 * @param value the new value of the '<em>Default Login</em>' attribute.
186
	 * @see #getDefaultLogin()
187
	 * @generated
188
	 */
189
	void setDefaultLogin(String value);
190
191
	/**
192
	 * Returns the value of the '<em><b>Default Password</b></em>' attribute.
193
	 * <!-- begin-user-doc -->
194
	 * <p>
195
	 * If the meaning of the '<em>Default Password</em>' attribute isn't clear,
196
	 * there really should be more of a description here...
197
	 * </p>
198
	 * <!-- end-user-doc -->
199
	 * @return the value of the '<em>Default Password</em>' attribute.
200
	 * @see #setDefaultPassword(String)
201
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_DefaultPassword()
202
	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String"
203
	 * @generated
204
	 */
205
	String getDefaultPassword();
206
207
	/**
208
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword <em>Default Password</em>}' attribute.
209
	 * <!-- begin-user-doc -->
210
	 * <!-- end-user-doc -->
211
	 * @param value the new value of the '<em>Default Password</em>' attribute.
212
	 * @see #getDefaultPassword()
213
	 * @generated
214
	 */
215
	void setDefaultPassword(String value);
216
217
	/**
218
	 * Returns the value of the '<em><b>Taxonomies</b></em>' containment reference.
219
	 * <!-- begin-user-doc -->
220
	 * <p>
221
	 * If the meaning of the '<em>Taxonomies</em>' containment reference isn't clear,
222
	 * there really should be more of a description here...
223
	 * </p>
224
	 * <!-- end-user-doc -->
225
	 * @return the value of the '<em>Taxonomies</em>' containment reference.
226
	 * @see #setTaxonomies(Taxonomies)
227
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#getUDDIRegistry_Taxonomies()
228
	 * @model containment="true" resolveProxies="false"
229
	 * @generated
230
	 */
231
	Taxonomies getTaxonomies();
232
233
	/**
234
	 * Sets the value of the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies <em>Taxonomies</em>}' containment reference.
235
	 * <!-- begin-user-doc -->
236
	 * <!-- end-user-doc -->
237
	 * @param value the new value of the '<em>Taxonomies</em>' containment reference.
238
	 * @see #getTaxonomies()
239
	 * @generated
240
	 */
241
	void setTaxonomies(Taxonomies value);
242
243
} // UDDIRegistry
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryFactory.java (+64 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry;
8
9
import org.eclipse.emf.ecore.EFactory;
10
11
/**
12
 * <!-- begin-user-doc -->
13
 * The <b>Factory</b> for the model.
14
 * It provides a create method for each non-abstract class of the model.
15
 * <!-- end-user-doc -->
16
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage
17
 * @generated
18
 */
19
public interface UDDIRegistryFactory extends EFactory {
20
	/**
21
	 * The singleton instance of the factory.
22
	 * <!-- begin-user-doc -->
23
	 * <!-- end-user-doc -->
24
	 * @generated
25
	 */
26
	UDDIRegistryFactory eINSTANCE = new org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryFactoryImpl();
27
28
	/**
29
	 * Returns a new object of class '<em>Document Root</em>'.
30
	 * <!-- begin-user-doc -->
31
	 * <!-- end-user-doc -->
32
	 * @return a new object of class '<em>Document Root</em>'.
33
	 * @generated
34
	 */
35
	DocumentRoot createDocumentRoot();
36
37
	/**
38
	 * Returns a new object of class '<em>Taxonomies</em>'.
39
	 * <!-- begin-user-doc -->
40
	 * <!-- end-user-doc -->
41
	 * @return a new object of class '<em>Taxonomies</em>'.
42
	 * @generated
43
	 */
44
	Taxonomies createTaxonomies();
45
46
	/**
47
	 * Returns a new object of class '<em>UDDIRegistry</em>'.
48
	 * <!-- begin-user-doc -->
49
	 * <!-- end-user-doc -->
50
	 * @return a new object of class '<em>UDDIRegistry</em>'.
51
	 * @generated
52
	 */
53
	UDDIRegistry createUDDIRegistry();
54
55
	/**
56
	 * Returns the package supported by this factory.
57
	 * <!-- begin-user-doc -->
58
	 * <!-- end-user-doc -->
59
	 * @return the package supported by this factory.
60
	 * @generated
61
	 */
62
	UDDIRegistryPackage getUDDIRegistryPackage();
63
64
} //UDDIRegistryFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/UDDIRegistryPackage.java (+568 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * The <b>Package</b> for the model.
19
 * It contains accessors for the meta objects to represent
20
 * <ul>
21
 *   <li>each class,</li>
22
 *   <li>each feature of each class,</li>
23
 *   <li>each enum,</li>
24
 *   <li>and each data type</li>
25
 * </ul>
26
 * <!-- end-user-doc -->
27
 * <!-- begin-model-doc -->
28
 * 
29
 *    See http://www.w3.org/XML/1998/namespace.html and
30
 *    http://www.w3.org/TR/REC-xml for information about this namespace.
31
 * 
32
 *     This schema document describes the XML namespace, in a form
33
 *     suitable for import by other schema documents.  
34
 * 
35
 *     Note that local names in this namespace are intended to be defined
36
 *     only by the World Wide Web Consortium or its subgroups.  The
37
 *     following names are currently defined in this namespace and should
38
 *     not be used with conflicting semantics by any Working Group,
39
 *     specification, or document instance:
40
 * 
41
 *     base (as an attribute name): denotes an attribute whose value
42
 *          provides a URI to be used as the base for interpreting any
43
 *          relative URIs in the scope of the element on which it
44
 *          appears; its value is inherited.  This name is reserved
45
 *          by virtue of its definition in the XML Base specification.
46
 * 
47
 *     id   (as an attribute name): denotes an attribute whose value
48
 *          should be interpreted as if declared to be of type ID.
49
 *          The xml:id specification is not yet a W3C Recommendation,
50
 *          but this attribute is included here to facilitate experimentation
51
 *          with the mechanisms it proposes.  Note that it is _not_ included
52
 *          in the specialAttrs attribute group.
53
 * 
54
 *     lang (as an attribute name): denotes an attribute whose value
55
 *          is a language code for the natural language of the content of
56
 *          any element; its value is inherited.  This name is reserved
57
 *          by virtue of its definition in the XML specification.
58
 *   
59
 *     space (as an attribute name): denotes an attribute whose
60
 *          value is a keyword indicating what whitespace processing
61
 *          discipline is intended for the content of the element; its
62
 *          value is inherited.  This name is reserved by virtue of its
63
 *          definition in the XML specification.
64
 * 
65
 *     Father (in any context at all): denotes Jon Bosak, the chair of 
66
 *          the original XML Working Group.  This name is reserved by 
67
 *          the following decision of the W3C XML Plenary and 
68
 *          XML Coordination groups:
69
 * 
70
 *              In appreciation for his vision, leadership and dedication
71
 *              the W3C XML Plenary on this 10th day of February, 2000
72
 *              reserves for Jon Bosak in perpetuity the XML name
73
 *              xml:Father
74
 *   
75
 * This schema defines attributes and an attribute group
76
 *         suitable for use by
77
 *         schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
78
 *         attributes on elements they define.
79
 * 
80
 *         To enable this, such a schema must import this schema
81
 *         for the XML namespace, e.g. as follows:
82
 *         &lt;schema . . .&gt;
83
 *          . . .
84
 *          &lt;import namespace="http://www.w3.org/XML/1998/namespace"
85
 *                     schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;
86
 * 
87
 *         Subsequently, qualified reference to any of the attributes
88
 *         or the group defined below will have the desired effect, e.g.
89
 * 
90
 *         &lt;type . . .&gt;
91
 *          . . .
92
 *          &lt;attributeGroup ref="xml:specialAttrs"/&gt;
93
 *  
94
 *          will define a type which will schema-validate an instance
95
 *          element with any of those attributes
96
 * In keeping with the XML Schema WG's standard versioning
97
 *    policy, this schema document will persist at
98
 *    http://www.w3.org/2005/08/xml.xsd.
99
 *    At the date of issue it can also be found at
100
 *    http://www.w3.org/2001/xml.xsd.
101
 *    The schema document at that URI may however change in the future,
102
 *    in order to remain compatible with the latest version of XML Schema
103
 *    itself, or with the XML namespace itself.  In other words, if the XML
104
 *    Schema or XML namespaces change, the version of this document at
105
 *    http://www.w3.org/2001/xml.xsd will change
106
 *    accordingly; the version at
107
 *    http://www.w3.org/2005/08/xml.xsd will not change.
108
 *   
109
 * <!-- end-model-doc -->
110
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryFactory
111
 * @generated
112
 */
113
public interface UDDIRegistryPackage extends EPackage {
114
	/**
115
	 * The package name.
116
	 * <!-- begin-user-doc -->
117
	 * <!-- end-user-doc -->
118
	 * @generated
119
	 */
120
	String eNAME = "uddiregistry";
121
122
	/**
123
	 * The package namespace URI.
124
	 * <!-- begin-user-doc -->
125
	 * <!-- end-user-doc -->
126
	 * @generated
127
	 */
128
	String eNS_URI = "http://eclipse.org/wst/ws/internal/model/v10/uddiregistry";
129
130
	/**
131
	 * The package namespace name.
132
	 * <!-- begin-user-doc -->
133
	 * <!-- end-user-doc -->
134
	 * @generated
135
	 */
136
	String eNS_PREFIX = "uddiregistry";
137
138
	/**
139
	 * The singleton instance of the package.
140
	 * <!-- begin-user-doc -->
141
	 * <!-- end-user-doc -->
142
	 * @generated
143
	 */
144
	UDDIRegistryPackage eINSTANCE = org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl.init();
145
146
	/**
147
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl <em>Document Root</em>}' class.
148
	 * <!-- begin-user-doc -->
149
	 * <!-- end-user-doc -->
150
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl
151
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl#getDocumentRoot()
152
	 * @generated
153
	 */
154
	int DOCUMENT_ROOT = 0;
155
156
	/**
157
	 * The feature id for the '<em><b>Mixed</b></em>' attribute list.
158
	 * <!-- begin-user-doc -->
159
	 * <!-- end-user-doc -->
160
	 * @generated
161
	 * @ordered
162
	 */
163
	int DOCUMENT_ROOT__MIXED = 0;
164
165
	/**
166
	 * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map.
167
	 * <!-- begin-user-doc -->
168
	 * <!-- end-user-doc -->
169
	 * @generated
170
	 * @ordered
171
	 */
172
	int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
173
174
	/**
175
	 * The feature id for the '<em><b>XSI Schema Location</b></em>' map.
176
	 * <!-- begin-user-doc -->
177
	 * <!-- end-user-doc -->
178
	 * @generated
179
	 * @ordered
180
	 */
181
	int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
182
183
	/**
184
	 * The feature id for the '<em><b>Taxonomies</b></em>' containment reference.
185
	 * <!-- begin-user-doc -->
186
	 * <!-- end-user-doc -->
187
	 * @generated
188
	 * @ordered
189
	 */
190
	int DOCUMENT_ROOT__TAXONOMIES = 3;
191
192
	/**
193
	 * The feature id for the '<em><b>Uddi Registry</b></em>' containment reference.
194
	 * <!-- begin-user-doc -->
195
	 * <!-- end-user-doc -->
196
	 * @generated
197
	 * @ordered
198
	 */
199
	int DOCUMENT_ROOT__UDDI_REGISTRY = 4;
200
201
	/**
202
	 * The number of structural features of the the '<em>Document Root</em>' class.
203
	 * <!-- begin-user-doc -->
204
	 * <!-- end-user-doc -->
205
	 * @generated
206
	 * @ordered
207
	 */
208
	int DOCUMENT_ROOT_FEATURE_COUNT = 5;
209
210
	/**
211
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.TaxonomiesImpl <em>Taxonomies</em>}' class.
212
	 * <!-- begin-user-doc -->
213
	 * <!-- end-user-doc -->
214
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.TaxonomiesImpl
215
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl#getTaxonomies()
216
	 * @generated
217
	 */
218
	int TAXONOMIES = 1;
219
220
	/**
221
	 * The feature id for the '<em><b>Taxonomy</b></em>' containment reference list.
222
	 * <!-- begin-user-doc -->
223
	 * <!-- end-user-doc -->
224
	 * @generated
225
	 * @ordered
226
	 */
227
	int TAXONOMIES__TAXONOMY = 0;
228
229
	/**
230
	 * The number of structural features of the the '<em>Taxonomies</em>' class.
231
	 * <!-- begin-user-doc -->
232
	 * <!-- end-user-doc -->
233
	 * @generated
234
	 * @ordered
235
	 */
236
	int TAXONOMIES_FEATURE_COUNT = 1;
237
238
	/**
239
	 * The meta object id for the '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl <em>UDDIRegistry</em>}' class.
240
	 * <!-- begin-user-doc -->
241
	 * <!-- end-user-doc -->
242
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl
243
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryPackageImpl#getUDDIRegistry()
244
	 * @generated
245
	 */
246
	int UDDI_REGISTRY = 2;
247
248
	/**
249
	 * The feature id for the '<em><b>Name</b></em>' containment reference list.
250
	 * <!-- begin-user-doc -->
251
	 * <!-- end-user-doc -->
252
	 * @generated
253
	 * @ordered
254
	 */
255
	int UDDI_REGISTRY__NAME = RegistryPackage.REGISTRY__NAME;
256
257
	/**
258
	 * The feature id for the '<em><b>Description</b></em>' containment reference list.
259
	 * <!-- begin-user-doc -->
260
	 * <!-- end-user-doc -->
261
	 * @generated
262
	 * @ordered
263
	 */
264
	int UDDI_REGISTRY__DESCRIPTION = RegistryPackage.REGISTRY__DESCRIPTION;
265
266
	/**
267
	 * The feature id for the '<em><b>Id</b></em>' attribute.
268
	 * <!-- begin-user-doc -->
269
	 * <!-- end-user-doc -->
270
	 * @generated
271
	 * @ordered
272
	 */
273
	int UDDI_REGISTRY__ID = RegistryPackage.REGISTRY__ID;
274
275
	/**
276
	 * The feature id for the '<em><b>Location</b></em>' attribute.
277
	 * <!-- begin-user-doc -->
278
	 * <!-- end-user-doc -->
279
	 * @generated
280
	 * @ordered
281
	 */
282
	int UDDI_REGISTRY__LOCATION = RegistryPackage.REGISTRY__LOCATION;
283
284
	/**
285
	 * The feature id for the '<em><b>Ref</b></em>' attribute.
286
	 * <!-- begin-user-doc -->
287
	 * <!-- end-user-doc -->
288
	 * @generated
289
	 * @ordered
290
	 */
291
	int UDDI_REGISTRY__REF = RegistryPackage.REGISTRY__REF;
292
293
	/**
294
	 * The feature id for the '<em><b>Version</b></em>' attribute.
295
	 * <!-- begin-user-doc -->
296
	 * <!-- end-user-doc -->
297
	 * @generated
298
	 * @ordered
299
	 */
300
	int UDDI_REGISTRY__VERSION = RegistryPackage.REGISTRY_FEATURE_COUNT + 0;
301
302
	/**
303
	 * The feature id for the '<em><b>Discovery URL</b></em>' attribute.
304
	 * <!-- begin-user-doc -->
305
	 * <!-- end-user-doc -->
306
	 * @generated
307
	 * @ordered
308
	 */
309
	int UDDI_REGISTRY__DISCOVERY_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 1;
310
311
	/**
312
	 * The feature id for the '<em><b>Publication URL</b></em>' attribute.
313
	 * <!-- begin-user-doc -->
314
	 * <!-- end-user-doc -->
315
	 * @generated
316
	 * @ordered
317
	 */
318
	int UDDI_REGISTRY__PUBLICATION_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 2;
319
320
	/**
321
	 * The feature id for the '<em><b>Secured Discovery URL</b></em>' attribute.
322
	 * <!-- begin-user-doc -->
323
	 * <!-- end-user-doc -->
324
	 * @generated
325
	 * @ordered
326
	 */
327
	int UDDI_REGISTRY__SECURED_DISCOVERY_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 3;
328
329
	/**
330
	 * The feature id for the '<em><b>Secured Publication URL</b></em>' attribute.
331
	 * <!-- begin-user-doc -->
332
	 * <!-- end-user-doc -->
333
	 * @generated
334
	 * @ordered
335
	 */
336
	int UDDI_REGISTRY__SECURED_PUBLICATION_URL = RegistryPackage.REGISTRY_FEATURE_COUNT + 4;
337
338
	/**
339
	 * The feature id for the '<em><b>Default Login</b></em>' attribute.
340
	 * <!-- begin-user-doc -->
341
	 * <!-- end-user-doc -->
342
	 * @generated
343
	 * @ordered
344
	 */
345
	int UDDI_REGISTRY__DEFAULT_LOGIN = RegistryPackage.REGISTRY_FEATURE_COUNT + 5;
346
347
	/**
348
	 * The feature id for the '<em><b>Default Password</b></em>' attribute.
349
	 * <!-- begin-user-doc -->
350
	 * <!-- end-user-doc -->
351
	 * @generated
352
	 * @ordered
353
	 */
354
	int UDDI_REGISTRY__DEFAULT_PASSWORD = RegistryPackage.REGISTRY_FEATURE_COUNT + 6;
355
356
	/**
357
	 * The feature id for the '<em><b>Taxonomies</b></em>' containment reference.
358
	 * <!-- begin-user-doc -->
359
	 * <!-- end-user-doc -->
360
	 * @generated
361
	 * @ordered
362
	 */
363
	int UDDI_REGISTRY__TAXONOMIES = RegistryPackage.REGISTRY_FEATURE_COUNT + 7;
364
365
	/**
366
	 * The number of structural features of the the '<em>UDDIRegistry</em>' class.
367
	 * <!-- begin-user-doc -->
368
	 * <!-- end-user-doc -->
369
	 * @generated
370
	 * @ordered
371
	 */
372
	int UDDI_REGISTRY_FEATURE_COUNT = RegistryPackage.REGISTRY_FEATURE_COUNT + 8;
373
374
375
	/**
376
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot <em>Document Root</em>}'.
377
	 * <!-- begin-user-doc -->
378
	 * <!-- end-user-doc -->
379
	 * @return the meta object for class '<em>Document Root</em>'.
380
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot
381
	 * @generated
382
	 */
383
	EClass getDocumentRoot();
384
385
	/**
386
	 * Returns the meta object for the attribute list '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getMixed <em>Mixed</em>}'.
387
	 * <!-- begin-user-doc -->
388
	 * <!-- end-user-doc -->
389
	 * @return the meta object for the attribute list '<em>Mixed</em>'.
390
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getMixed()
391
	 * @see #getDocumentRoot()
392
	 * @generated
393
	 */
394
	EAttribute getDocumentRoot_Mixed();
395
396
	/**
397
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'.
398
	 * <!-- begin-user-doc -->
399
	 * <!-- end-user-doc -->
400
	 * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
401
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXMLNSPrefixMap()
402
	 * @see #getDocumentRoot()
403
	 * @generated
404
	 */
405
	EReference getDocumentRoot_XMLNSPrefixMap();
406
407
	/**
408
	 * Returns the meta object for the map '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'.
409
	 * <!-- begin-user-doc -->
410
	 * <!-- end-user-doc -->
411
	 * @return the meta object for the map '<em>XSI Schema Location</em>'.
412
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getXSISchemaLocation()
413
	 * @see #getDocumentRoot()
414
	 * @generated
415
	 */
416
	EReference getDocumentRoot_XSISchemaLocation();
417
418
	/**
419
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies <em>Taxonomies</em>}'.
420
	 * <!-- begin-user-doc -->
421
	 * <!-- end-user-doc -->
422
	 * @return the meta object for the containment reference '<em>Taxonomies</em>'.
423
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getTaxonomies()
424
	 * @see #getDocumentRoot()
425
	 * @generated
426
	 */
427
	EReference getDocumentRoot_Taxonomies();
428
429
	/**
430
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry <em>Uddi Registry</em>}'.
431
	 * <!-- begin-user-doc -->
432
	 * <!-- end-user-doc -->
433
	 * @return the meta object for the containment reference '<em>Uddi Registry</em>'.
434
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot#getUddiRegistry()
435
	 * @see #getDocumentRoot()
436
	 * @generated
437
	 */
438
	EReference getDocumentRoot_UddiRegistry();
439
440
	/**
441
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies <em>Taxonomies</em>}'.
442
	 * <!-- begin-user-doc -->
443
	 * <!-- end-user-doc -->
444
	 * @return the meta object for class '<em>Taxonomies</em>'.
445
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies
446
	 * @generated
447
	 */
448
	EClass getTaxonomies();
449
450
	/**
451
	 * Returns the meta object for the containment reference list '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies#getTaxonomy <em>Taxonomy</em>}'.
452
	 * <!-- begin-user-doc -->
453
	 * <!-- end-user-doc -->
454
	 * @return the meta object for the containment reference list '<em>Taxonomy</em>'.
455
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies#getTaxonomy()
456
	 * @see #getTaxonomies()
457
	 * @generated
458
	 */
459
	EReference getTaxonomies_Taxonomy();
460
461
	/**
462
	 * Returns the meta object for class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry <em>UDDIRegistry</em>}'.
463
	 * <!-- begin-user-doc -->
464
	 * <!-- end-user-doc -->
465
	 * @return the meta object for class '<em>UDDIRegistry</em>'.
466
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry
467
	 * @generated
468
	 */
469
	EClass getUDDIRegistry();
470
471
	/**
472
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion <em>Version</em>}'.
473
	 * <!-- begin-user-doc -->
474
	 * <!-- end-user-doc -->
475
	 * @return the meta object for the attribute '<em>Version</em>'.
476
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getVersion()
477
	 * @see #getUDDIRegistry()
478
	 * @generated
479
	 */
480
	EAttribute getUDDIRegistry_Version();
481
482
	/**
483
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL <em>Discovery URL</em>}'.
484
	 * <!-- begin-user-doc -->
485
	 * <!-- end-user-doc -->
486
	 * @return the meta object for the attribute '<em>Discovery URL</em>'.
487
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDiscoveryURL()
488
	 * @see #getUDDIRegistry()
489
	 * @generated
490
	 */
491
	EAttribute getUDDIRegistry_DiscoveryURL();
492
493
	/**
494
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL <em>Publication URL</em>}'.
495
	 * <!-- begin-user-doc -->
496
	 * <!-- end-user-doc -->
497
	 * @return the meta object for the attribute '<em>Publication URL</em>'.
498
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getPublicationURL()
499
	 * @see #getUDDIRegistry()
500
	 * @generated
501
	 */
502
	EAttribute getUDDIRegistry_PublicationURL();
503
504
	/**
505
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}'.
506
	 * <!-- begin-user-doc -->
507
	 * <!-- end-user-doc -->
508
	 * @return the meta object for the attribute '<em>Secured Discovery URL</em>'.
509
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredDiscoveryURL()
510
	 * @see #getUDDIRegistry()
511
	 * @generated
512
	 */
513
	EAttribute getUDDIRegistry_SecuredDiscoveryURL();
514
515
	/**
516
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL <em>Secured Publication URL</em>}'.
517
	 * <!-- begin-user-doc -->
518
	 * <!-- end-user-doc -->
519
	 * @return the meta object for the attribute '<em>Secured Publication URL</em>'.
520
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getSecuredPublicationURL()
521
	 * @see #getUDDIRegistry()
522
	 * @generated
523
	 */
524
	EAttribute getUDDIRegistry_SecuredPublicationURL();
525
526
	/**
527
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin <em>Default Login</em>}'.
528
	 * <!-- begin-user-doc -->
529
	 * <!-- end-user-doc -->
530
	 * @return the meta object for the attribute '<em>Default Login</em>'.
531
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultLogin()
532
	 * @see #getUDDIRegistry()
533
	 * @generated
534
	 */
535
	EAttribute getUDDIRegistry_DefaultLogin();
536
537
	/**
538
	 * Returns the meta object for the attribute '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword <em>Default Password</em>}'.
539
	 * <!-- begin-user-doc -->
540
	 * <!-- end-user-doc -->
541
	 * @return the meta object for the attribute '<em>Default Password</em>'.
542
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getDefaultPassword()
543
	 * @see #getUDDIRegistry()
544
	 * @generated
545
	 */
546
	EAttribute getUDDIRegistry_DefaultPassword();
547
548
	/**
549
	 * Returns the meta object for the containment reference '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies <em>Taxonomies</em>}'.
550
	 * <!-- begin-user-doc -->
551
	 * <!-- end-user-doc -->
552
	 * @return the meta object for the containment reference '<em>Taxonomies</em>'.
553
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry#getTaxonomies()
554
	 * @see #getUDDIRegistry()
555
	 * @generated
556
	 */
557
	EReference getUDDIRegistry_Taxonomies();
558
559
	/**
560
	 * Returns the factory that creates the instances of the model.
561
	 * <!-- begin-user-doc -->
562
	 * <!-- end-user-doc -->
563
	 * @return the factory that creates the instances of the model.
564
	 * @generated
565
	 */
566
	UDDIRegistryFactory getUDDIRegistryFactory();
567
568
} //UDDIRegistryPackage
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/DocumentRootImpl.java (+326 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.NotificationChain;
12
13
import org.eclipse.emf.common.util.EMap;
14
15
import org.eclipse.emf.ecore.EClass;
16
import org.eclipse.emf.ecore.EStructuralFeature;
17
import org.eclipse.emf.ecore.EcorePackage;
18
import org.eclipse.emf.ecore.InternalEObject;
19
20
import org.eclipse.emf.ecore.impl.EObjectImpl;
21
import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
22
23
import org.eclipse.emf.ecore.util.BasicFeatureMap;
24
import org.eclipse.emf.ecore.util.EcoreEMap;
25
import org.eclipse.emf.ecore.util.FeatureMap;
26
import org.eclipse.emf.ecore.util.InternalEList;
27
28
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot;
29
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies;
30
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry;
31
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
32
33
/**
34
 * <!-- begin-user-doc -->
35
 * An implementation of the model object '<em><b>Document Root</b></em>'.
36
 * <!-- end-user-doc -->
37
 * <p>
38
 * The following features are implemented:
39
 * <ul>
40
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
43
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getTaxonomies <em>Taxonomies</em>}</li>
44
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.DocumentRootImpl#getUddiRegistry <em>Uddi Registry</em>}</li>
45
 * </ul>
46
 * </p>
47
 *
48
 * @generated
49
 */
50
public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
51
	/**
52
	 * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
53
	 * <!-- begin-user-doc -->
54
	 * <!-- end-user-doc -->
55
	 * @see #getMixed()
56
	 * @generated
57
	 * @ordered
58
	 */
59
	protected FeatureMap mixed = null;
60
61
	/**
62
	 * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
63
	 * <!-- begin-user-doc -->
64
	 * <!-- end-user-doc -->
65
	 * @see #getXMLNSPrefixMap()
66
	 * @generated
67
	 * @ordered
68
	 */
69
	protected EMap xMLNSPrefixMap = null;
70
71
	/**
72
	 * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
73
	 * <!-- begin-user-doc -->
74
	 * <!-- end-user-doc -->
75
	 * @see #getXSISchemaLocation()
76
	 * @generated
77
	 * @ordered
78
	 */
79
	protected EMap xSISchemaLocation = null;
80
81
	/**
82
	 * <!-- begin-user-doc -->
83
	 * <!-- end-user-doc -->
84
	 * @generated
85
	 */
86
	protected DocumentRootImpl() {
87
		super();
88
	}
89
90
	/**
91
	 * <!-- begin-user-doc -->
92
	 * <!-- end-user-doc -->
93
	 * @generated
94
	 */
95
	protected EClass eStaticClass() {
96
		return UDDIRegistryPackage.eINSTANCE.getDocumentRoot();
97
	}
98
99
	/**
100
	 * <!-- begin-user-doc -->
101
	 * <!-- end-user-doc -->
102
	 * @generated
103
	 */
104
	public FeatureMap getMixed() {
105
		if (mixed == null) {
106
			mixed = new BasicFeatureMap(this, UDDIRegistryPackage.DOCUMENT_ROOT__MIXED);
107
		}
108
		return mixed;
109
	}
110
111
	/**
112
	 * <!-- begin-user-doc -->
113
	 * <!-- end-user-doc -->
114
	 * @generated
115
	 */
116
	public EMap getXMLNSPrefixMap() {
117
		if (xMLNSPrefixMap == null) {
118
			xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
119
		}
120
		return xMLNSPrefixMap;
121
	}
122
123
	/**
124
	 * <!-- begin-user-doc -->
125
	 * <!-- end-user-doc -->
126
	 * @generated
127
	 */
128
	public EMap getXSISchemaLocation() {
129
		if (xSISchemaLocation == null) {
130
			xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
131
		}
132
		return xSISchemaLocation;
133
	}
134
135
	/**
136
	 * <!-- begin-user-doc -->
137
	 * <!-- end-user-doc -->
138
	 * @generated
139
	 */
140
	public Taxonomies getTaxonomies() {
141
		return (Taxonomies)getMixed().get(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_Taxonomies(), true);
142
	}
143
144
	/**
145
	 * <!-- begin-user-doc -->
146
	 * <!-- end-user-doc -->
147
	 * @generated
148
	 */
149
	public NotificationChain basicSetTaxonomies(Taxonomies newTaxonomies, NotificationChain msgs) {
150
		return ((FeatureMap.Internal)getMixed()).basicAdd(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_Taxonomies(), newTaxonomies, null);
151
	}
152
153
	/**
154
	 * <!-- begin-user-doc -->
155
	 * <!-- end-user-doc -->
156
	 * @generated
157
	 */
158
	public void setTaxonomies(Taxonomies newTaxonomies) {
159
		((FeatureMap.Internal)getMixed()).set(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_Taxonomies(), newTaxonomies);
160
	}
161
162
	/**
163
	 * <!-- begin-user-doc -->
164
	 * <!-- end-user-doc -->
165
	 * @generated
166
	 */
167
	public UDDIRegistry getUddiRegistry() {
168
		return (UDDIRegistry)getMixed().get(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_UddiRegistry(), true);
169
	}
170
171
	/**
172
	 * <!-- begin-user-doc -->
173
	 * <!-- end-user-doc -->
174
	 * @generated
175
	 */
176
	public NotificationChain basicSetUddiRegistry(UDDIRegistry newUddiRegistry, NotificationChain msgs) {
177
		return ((FeatureMap.Internal)getMixed()).basicAdd(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_UddiRegistry(), newUddiRegistry, null);
178
	}
179
180
	/**
181
	 * <!-- begin-user-doc -->
182
	 * <!-- end-user-doc -->
183
	 * @generated
184
	 */
185
	public void setUddiRegistry(UDDIRegistry newUddiRegistry) {
186
		((FeatureMap.Internal)getMixed()).set(UDDIRegistryPackage.eINSTANCE.getDocumentRoot_UddiRegistry(), newUddiRegistry);
187
	}
188
189
	/**
190
	 * <!-- begin-user-doc -->
191
	 * <!-- end-user-doc -->
192
	 * @generated
193
	 */
194
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
195
		if (featureID >= 0) {
196
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
197
				case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED:
198
					return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
199
				case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
200
					return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
201
				case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
202
					return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
203
				case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES:
204
					return basicSetTaxonomies(null, msgs);
205
				case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY:
206
					return basicSetUddiRegistry(null, msgs);
207
				default:
208
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
209
			}
210
		}
211
		return eBasicSetContainer(null, featureID, msgs);
212
	}
213
214
	/**
215
	 * <!-- begin-user-doc -->
216
	 * <!-- end-user-doc -->
217
	 * @generated
218
	 */
219
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
220
		switch (eDerivedStructuralFeatureID(eFeature)) {
221
			case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED:
222
				return getMixed();
223
			case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
224
				return getXMLNSPrefixMap();
225
			case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
226
				return getXSISchemaLocation();
227
			case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES:
228
				return getTaxonomies();
229
			case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY:
230
				return getUddiRegistry();
231
		}
232
		return eDynamicGet(eFeature, resolve);
233
	}
234
235
	/**
236
	 * <!-- begin-user-doc -->
237
	 * <!-- end-user-doc -->
238
	 * @generated
239
	 */
240
	public void eSet(EStructuralFeature eFeature, Object newValue) {
241
		switch (eDerivedStructuralFeatureID(eFeature)) {
242
			case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED:
243
				getMixed().clear();
244
				getMixed().addAll((Collection)newValue);
245
				return;
246
			case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
247
				getXMLNSPrefixMap().clear();
248
				getXMLNSPrefixMap().addAll((Collection)newValue);
249
				return;
250
			case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
251
				getXSISchemaLocation().clear();
252
				getXSISchemaLocation().addAll((Collection)newValue);
253
				return;
254
			case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES:
255
				setTaxonomies((Taxonomies)newValue);
256
				return;
257
			case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY:
258
				setUddiRegistry((UDDIRegistry)newValue);
259
				return;
260
		}
261
		eDynamicSet(eFeature, newValue);
262
	}
263
264
	/**
265
	 * <!-- begin-user-doc -->
266
	 * <!-- end-user-doc -->
267
	 * @generated
268
	 */
269
	public void eUnset(EStructuralFeature eFeature) {
270
		switch (eDerivedStructuralFeatureID(eFeature)) {
271
			case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED:
272
				getMixed().clear();
273
				return;
274
			case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
275
				getXMLNSPrefixMap().clear();
276
				return;
277
			case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
278
				getXSISchemaLocation().clear();
279
				return;
280
			case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES:
281
				setTaxonomies((Taxonomies)null);
282
				return;
283
			case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY:
284
				setUddiRegistry((UDDIRegistry)null);
285
				return;
286
		}
287
		eDynamicUnset(eFeature);
288
	}
289
290
	/**
291
	 * <!-- begin-user-doc -->
292
	 * <!-- end-user-doc -->
293
	 * @generated
294
	 */
295
	public boolean eIsSet(EStructuralFeature eFeature) {
296
		switch (eDerivedStructuralFeatureID(eFeature)) {
297
			case UDDIRegistryPackage.DOCUMENT_ROOT__MIXED:
298
				return mixed != null && !mixed.isEmpty();
299
			case UDDIRegistryPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
300
				return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
301
			case UDDIRegistryPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
302
				return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
303
			case UDDIRegistryPackage.DOCUMENT_ROOT__TAXONOMIES:
304
				return getTaxonomies() != null;
305
			case UDDIRegistryPackage.DOCUMENT_ROOT__UDDI_REGISTRY:
306
				return getUddiRegistry() != null;
307
		}
308
		return eDynamicIsSet(eFeature);
309
	}
310
311
	/**
312
	 * <!-- begin-user-doc -->
313
	 * <!-- end-user-doc -->
314
	 * @generated
315
	 */
316
	public String toString() {
317
		if (eIsProxy()) return super.toString();
318
319
		StringBuffer result = new StringBuffer(super.toString());
320
		result.append(" (mixed: ");
321
		result.append(mixed);
322
		result.append(')');
323
		return result.toString();
324
	}
325
326
} //DocumentRootImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/TaxonomiesImpl.java (+155 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.NotificationChain;
12
13
import org.eclipse.emf.common.util.EList;
14
15
import org.eclipse.emf.ecore.EClass;
16
import org.eclipse.emf.ecore.EStructuralFeature;
17
import org.eclipse.emf.ecore.InternalEObject;
18
19
import org.eclipse.emf.ecore.impl.EObjectImpl;
20
21
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
22
import org.eclipse.emf.ecore.util.InternalEList;
23
24
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
25
26
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies;
27
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
28
29
/**
30
 * <!-- begin-user-doc -->
31
 * An implementation of the model object '<em><b>Taxonomies</b></em>'.
32
 * <!-- end-user-doc -->
33
 * <p>
34
 * The following features are implemented:
35
 * <ul>
36
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.TaxonomiesImpl#getTaxonomy <em>Taxonomy</em>}</li>
37
 * </ul>
38
 * </p>
39
 *
40
 * @generated
41
 */
42
public class TaxonomiesImpl extends EObjectImpl implements Taxonomies {
43
	/**
44
	 * The cached value of the '{@link #getTaxonomy() <em>Taxonomy</em>}' containment reference list.
45
	 * <!-- begin-user-doc -->
46
	 * <!-- end-user-doc -->
47
	 * @see #getTaxonomy()
48
	 * @generated
49
	 * @ordered
50
	 */
51
	protected EList taxonomy = null;
52
53
	/**
54
	 * <!-- begin-user-doc -->
55
	 * <!-- end-user-doc -->
56
	 * @generated
57
	 */
58
	protected TaxonomiesImpl() {
59
		super();
60
	}
61
62
	/**
63
	 * <!-- begin-user-doc -->
64
	 * <!-- end-user-doc -->
65
	 * @generated
66
	 */
67
	protected EClass eStaticClass() {
68
		return UDDIRegistryPackage.eINSTANCE.getTaxonomies();
69
	}
70
71
	/**
72
	 * <!-- begin-user-doc -->
73
	 * <!-- end-user-doc -->
74
	 * @generated
75
	 */
76
	public EList getTaxonomy() {
77
		if (taxonomy == null) {
78
			taxonomy = new EObjectContainmentEList(Taxonomy.class, this, UDDIRegistryPackage.TAXONOMIES__TAXONOMY);
79
		}
80
		return taxonomy;
81
	}
82
83
	/**
84
	 * <!-- begin-user-doc -->
85
	 * <!-- end-user-doc -->
86
	 * @generated
87
	 */
88
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
89
		if (featureID >= 0) {
90
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
91
				case UDDIRegistryPackage.TAXONOMIES__TAXONOMY:
92
					return ((InternalEList)getTaxonomy()).basicRemove(otherEnd, msgs);
93
				default:
94
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
95
			}
96
		}
97
		return eBasicSetContainer(null, featureID, msgs);
98
	}
99
100
	/**
101
	 * <!-- begin-user-doc -->
102
	 * <!-- end-user-doc -->
103
	 * @generated
104
	 */
105
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
106
		switch (eDerivedStructuralFeatureID(eFeature)) {
107
			case UDDIRegistryPackage.TAXONOMIES__TAXONOMY:
108
				return getTaxonomy();
109
		}
110
		return eDynamicGet(eFeature, resolve);
111
	}
112
113
	/**
114
	 * <!-- begin-user-doc -->
115
	 * <!-- end-user-doc -->
116
	 * @generated
117
	 */
118
	public void eSet(EStructuralFeature eFeature, Object newValue) {
119
		switch (eDerivedStructuralFeatureID(eFeature)) {
120
			case UDDIRegistryPackage.TAXONOMIES__TAXONOMY:
121
				getTaxonomy().clear();
122
				getTaxonomy().addAll((Collection)newValue);
123
				return;
124
		}
125
		eDynamicSet(eFeature, newValue);
126
	}
127
128
	/**
129
	 * <!-- begin-user-doc -->
130
	 * <!-- end-user-doc -->
131
	 * @generated
132
	 */
133
	public void eUnset(EStructuralFeature eFeature) {
134
		switch (eDerivedStructuralFeatureID(eFeature)) {
135
			case UDDIRegistryPackage.TAXONOMIES__TAXONOMY:
136
				getTaxonomy().clear();
137
				return;
138
		}
139
		eDynamicUnset(eFeature);
140
	}
141
142
	/**
143
	 * <!-- begin-user-doc -->
144
	 * <!-- end-user-doc -->
145
	 * @generated
146
	 */
147
	public boolean eIsSet(EStructuralFeature eFeature) {
148
		switch (eDerivedStructuralFeatureID(eFeature)) {
149
			case UDDIRegistryPackage.TAXONOMIES__TAXONOMY:
150
				return taxonomy != null && !taxonomy.isEmpty();
151
		}
152
		return eDynamicIsSet(eFeature);
153
	}
154
155
} //TaxonomiesImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryFactoryImpl.java (+97 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl;
8
9
import org.eclipse.emf.ecore.EClass;
10
import org.eclipse.emf.ecore.EObject;
11
12
import org.eclipse.emf.ecore.impl.EFactoryImpl;
13
14
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.*;
15
16
/**
17
 * <!-- begin-user-doc -->
18
 * An implementation of the model <b>Factory</b>.
19
 * <!-- end-user-doc -->
20
 * @generated
21
 */
22
public class UDDIRegistryFactoryImpl extends EFactoryImpl implements UDDIRegistryFactory {
23
	/**
24
	 * Creates and instance of the factory.
25
	 * <!-- begin-user-doc -->
26
	 * <!-- end-user-doc -->
27
	 * @generated
28
	 */
29
	public UDDIRegistryFactoryImpl() {
30
		super();
31
	}
32
33
	/**
34
	 * <!-- begin-user-doc -->
35
	 * <!-- end-user-doc -->
36
	 * @generated
37
	 */
38
	public EObject create(EClass eClass) {
39
		switch (eClass.getClassifierID()) {
40
			case UDDIRegistryPackage.DOCUMENT_ROOT: return createDocumentRoot();
41
			case UDDIRegistryPackage.TAXONOMIES: return createTaxonomies();
42
			case UDDIRegistryPackage.UDDI_REGISTRY: return createUDDIRegistry();
43
			default:
44
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
45
		}
46
	}
47
48
	/**
49
	 * <!-- begin-user-doc -->
50
	 * <!-- end-user-doc -->
51
	 * @generated
52
	 */
53
	public DocumentRoot createDocumentRoot() {
54
		DocumentRootImpl documentRoot = new DocumentRootImpl();
55
		return documentRoot;
56
	}
57
58
	/**
59
	 * <!-- begin-user-doc -->
60
	 * <!-- end-user-doc -->
61
	 * @generated
62
	 */
63
	public Taxonomies createTaxonomies() {
64
		TaxonomiesImpl taxonomies = new TaxonomiesImpl();
65
		return taxonomies;
66
	}
67
68
	/**
69
	 * <!-- begin-user-doc -->
70
	 * <!-- end-user-doc -->
71
	 * @generated
72
	 */
73
	public UDDIRegistry createUDDIRegistry() {
74
		UDDIRegistryImpl uddiRegistry = new UDDIRegistryImpl();
75
		return uddiRegistry;
76
	}
77
78
	/**
79
	 * <!-- begin-user-doc -->
80
	 * <!-- end-user-doc -->
81
	 * @generated
82
	 */
83
	public UDDIRegistryPackage getUDDIRegistryPackage() {
84
		return (UDDIRegistryPackage)getEPackage();
85
	}
86
87
	/**
88
	 * <!-- begin-user-doc -->
89
	 * <!-- end-user-doc -->
90
	 * @deprecated
91
	 * @generated
92
	 */
93
	public static UDDIRegistryPackage getPackage() {
94
		return UDDIRegistryPackage.eINSTANCE;
95
	}
96
97
} //UDDIRegistryFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryImpl.java (+631 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl;
8
9
import java.util.Collection;
10
11
import org.eclipse.emf.common.notify.Notification;
12
import org.eclipse.emf.common.notify.NotificationChain;
13
14
import org.eclipse.emf.ecore.EClass;
15
import org.eclipse.emf.ecore.EStructuralFeature;
16
import org.eclipse.emf.ecore.InternalEObject;
17
18
import org.eclipse.emf.ecore.impl.ENotificationImpl;
19
20
import org.eclipse.emf.ecore.util.InternalEList;
21
22
import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryImpl;
23
24
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies;
25
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry;
26
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
27
28
/**
29
 * <!-- begin-user-doc -->
30
 * An implementation of the model object '<em><b>UDDIRegistry</b></em>'.
31
 * <!-- end-user-doc -->
32
 * <p>
33
 * The following features are implemented:
34
 * <ul>
35
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getVersion <em>Version</em>}</li>
36
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getDiscoveryURL <em>Discovery URL</em>}</li>
37
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getPublicationURL <em>Publication URL</em>}</li>
38
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getSecuredDiscoveryURL <em>Secured Discovery URL</em>}</li>
39
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getSecuredPublicationURL <em>Secured Publication URL</em>}</li>
40
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getDefaultLogin <em>Default Login</em>}</li>
41
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getDefaultPassword <em>Default Password</em>}</li>
42
 *   <li>{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl.UDDIRegistryImpl#getTaxonomies <em>Taxonomies</em>}</li>
43
 * </ul>
44
 * </p>
45
 *
46
 * @generated
47
 */
48
public class UDDIRegistryImpl extends RegistryImpl implements UDDIRegistry {
49
	/**
50
	 * The default value of the '{@link #getVersion() <em>Version</em>}' attribute.
51
	 * <!-- begin-user-doc -->
52
	 * <!-- end-user-doc -->
53
	 * @see #getVersion()
54
	 * @generated
55
	 * @ordered
56
	 */
57
	protected static final String VERSION_EDEFAULT = null;
58
59
	/**
60
	 * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute.
61
	 * <!-- begin-user-doc -->
62
	 * <!-- end-user-doc -->
63
	 * @see #getVersion()
64
	 * @generated
65
	 * @ordered
66
	 */
67
	protected String version = VERSION_EDEFAULT;
68
69
	/**
70
	 * The default value of the '{@link #getDiscoveryURL() <em>Discovery URL</em>}' attribute.
71
	 * <!-- begin-user-doc -->
72
	 * <!-- end-user-doc -->
73
	 * @see #getDiscoveryURL()
74
	 * @generated
75
	 * @ordered
76
	 */
77
	protected static final String DISCOVERY_URL_EDEFAULT = null;
78
79
	/**
80
	 * The cached value of the '{@link #getDiscoveryURL() <em>Discovery URL</em>}' attribute.
81
	 * <!-- begin-user-doc -->
82
	 * <!-- end-user-doc -->
83
	 * @see #getDiscoveryURL()
84
	 * @generated
85
	 * @ordered
86
	 */
87
	protected String discoveryURL = DISCOVERY_URL_EDEFAULT;
88
89
	/**
90
	 * The default value of the '{@link #getPublicationURL() <em>Publication URL</em>}' attribute.
91
	 * <!-- begin-user-doc -->
92
	 * <!-- end-user-doc -->
93
	 * @see #getPublicationURL()
94
	 * @generated
95
	 * @ordered
96
	 */
97
	protected static final String PUBLICATION_URL_EDEFAULT = null;
98
99
	/**
100
	 * The cached value of the '{@link #getPublicationURL() <em>Publication URL</em>}' attribute.
101
	 * <!-- begin-user-doc -->
102
	 * <!-- end-user-doc -->
103
	 * @see #getPublicationURL()
104
	 * @generated
105
	 * @ordered
106
	 */
107
	protected String publicationURL = PUBLICATION_URL_EDEFAULT;
108
109
	/**
110
	 * The default value of the '{@link #getSecuredDiscoveryURL() <em>Secured Discovery URL</em>}' attribute.
111
	 * <!-- begin-user-doc -->
112
	 * <!-- end-user-doc -->
113
	 * @see #getSecuredDiscoveryURL()
114
	 * @generated
115
	 * @ordered
116
	 */
117
	protected static final String SECURED_DISCOVERY_URL_EDEFAULT = null;
118
119
	/**
120
	 * The cached value of the '{@link #getSecuredDiscoveryURL() <em>Secured Discovery URL</em>}' attribute.
121
	 * <!-- begin-user-doc -->
122
	 * <!-- end-user-doc -->
123
	 * @see #getSecuredDiscoveryURL()
124
	 * @generated
125
	 * @ordered
126
	 */
127
	protected String securedDiscoveryURL = SECURED_DISCOVERY_URL_EDEFAULT;
128
129
	/**
130
	 * The default value of the '{@link #getSecuredPublicationURL() <em>Secured Publication URL</em>}' attribute.
131
	 * <!-- begin-user-doc -->
132
	 * <!-- end-user-doc -->
133
	 * @see #getSecuredPublicationURL()
134
	 * @generated
135
	 * @ordered
136
	 */
137
	protected static final String SECURED_PUBLICATION_URL_EDEFAULT = null;
138
139
	/**
140
	 * The cached value of the '{@link #getSecuredPublicationURL() <em>Secured Publication URL</em>}' attribute.
141
	 * <!-- begin-user-doc -->
142
	 * <!-- end-user-doc -->
143
	 * @see #getSecuredPublicationURL()
144
	 * @generated
145
	 * @ordered
146
	 */
147
	protected String securedPublicationURL = SECURED_PUBLICATION_URL_EDEFAULT;
148
149
	/**
150
	 * The default value of the '{@link #getDefaultLogin() <em>Default Login</em>}' attribute.
151
	 * <!-- begin-user-doc -->
152
	 * <!-- end-user-doc -->
153
	 * @see #getDefaultLogin()
154
	 * @generated
155
	 * @ordered
156
	 */
157
	protected static final String DEFAULT_LOGIN_EDEFAULT = null;
158
159
	/**
160
	 * The cached value of the '{@link #getDefaultLogin() <em>Default Login</em>}' attribute.
161
	 * <!-- begin-user-doc -->
162
	 * <!-- end-user-doc -->
163
	 * @see #getDefaultLogin()
164
	 * @generated
165
	 * @ordered
166
	 */
167
	protected String defaultLogin = DEFAULT_LOGIN_EDEFAULT;
168
169
	/**
170
	 * The default value of the '{@link #getDefaultPassword() <em>Default Password</em>}' attribute.
171
	 * <!-- begin-user-doc -->
172
	 * <!-- end-user-doc -->
173
	 * @see #getDefaultPassword()
174
	 * @generated
175
	 * @ordered
176
	 */
177
	protected static final String DEFAULT_PASSWORD_EDEFAULT = null;
178
179
	/**
180
	 * The cached value of the '{@link #getDefaultPassword() <em>Default Password</em>}' attribute.
181
	 * <!-- begin-user-doc -->
182
	 * <!-- end-user-doc -->
183
	 * @see #getDefaultPassword()
184
	 * @generated
185
	 * @ordered
186
	 */
187
	protected String defaultPassword = DEFAULT_PASSWORD_EDEFAULT;
188
189
	/**
190
	 * The cached value of the '{@link #getTaxonomies() <em>Taxonomies</em>}' containment reference.
191
	 * <!-- begin-user-doc -->
192
	 * <!-- end-user-doc -->
193
	 * @see #getTaxonomies()
194
	 * @generated
195
	 * @ordered
196
	 */
197
	protected Taxonomies taxonomies = null;
198
199
	/**
200
	 * <!-- begin-user-doc -->
201
	 * <!-- end-user-doc -->
202
	 * @generated
203
	 */
204
	protected UDDIRegistryImpl() {
205
		super();
206
	}
207
208
	/**
209
	 * <!-- begin-user-doc -->
210
	 * <!-- end-user-doc -->
211
	 * @generated
212
	 */
213
	protected EClass eStaticClass() {
214
		return UDDIRegistryPackage.eINSTANCE.getUDDIRegistry();
215
	}
216
217
	/**
218
	 * <!-- begin-user-doc -->
219
	 * <!-- end-user-doc -->
220
	 * @generated
221
	 */
222
	public String getVersion() {
223
		return version;
224
	}
225
226
	/**
227
	 * <!-- begin-user-doc -->
228
	 * <!-- end-user-doc -->
229
	 * @generated
230
	 */
231
	public void setVersion(String newVersion) {
232
		String oldVersion = version;
233
		version = newVersion;
234
		if (eNotificationRequired())
235
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__VERSION, oldVersion, version));
236
	}
237
238
	/**
239
	 * <!-- begin-user-doc -->
240
	 * <!-- end-user-doc -->
241
	 * @generated
242
	 */
243
	public String getDiscoveryURL() {
244
		return discoveryURL;
245
	}
246
247
	/**
248
	 * <!-- begin-user-doc -->
249
	 * <!-- end-user-doc -->
250
	 * @generated
251
	 */
252
	public void setDiscoveryURL(String newDiscoveryURL) {
253
		String oldDiscoveryURL = discoveryURL;
254
		discoveryURL = newDiscoveryURL;
255
		if (eNotificationRequired())
256
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL, oldDiscoveryURL, discoveryURL));
257
	}
258
259
	/**
260
	 * <!-- begin-user-doc -->
261
	 * <!-- end-user-doc -->
262
	 * @generated
263
	 */
264
	public String getPublicationURL() {
265
		return publicationURL;
266
	}
267
268
	/**
269
	 * <!-- begin-user-doc -->
270
	 * <!-- end-user-doc -->
271
	 * @generated
272
	 */
273
	public void setPublicationURL(String newPublicationURL) {
274
		String oldPublicationURL = publicationURL;
275
		publicationURL = newPublicationURL;
276
		if (eNotificationRequired())
277
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL, oldPublicationURL, publicationURL));
278
	}
279
280
	/**
281
	 * <!-- begin-user-doc -->
282
	 * <!-- end-user-doc -->
283
	 * @generated
284
	 */
285
	public String getSecuredDiscoveryURL() {
286
		return securedDiscoveryURL;
287
	}
288
289
	/**
290
	 * <!-- begin-user-doc -->
291
	 * <!-- end-user-doc -->
292
	 * @generated
293
	 */
294
	public void setSecuredDiscoveryURL(String newSecuredDiscoveryURL) {
295
		String oldSecuredDiscoveryURL = securedDiscoveryURL;
296
		securedDiscoveryURL = newSecuredDiscoveryURL;
297
		if (eNotificationRequired())
298
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL, oldSecuredDiscoveryURL, securedDiscoveryURL));
299
	}
300
301
	/**
302
	 * <!-- begin-user-doc -->
303
	 * <!-- end-user-doc -->
304
	 * @generated
305
	 */
306
	public String getSecuredPublicationURL() {
307
		return securedPublicationURL;
308
	}
309
310
	/**
311
	 * <!-- begin-user-doc -->
312
	 * <!-- end-user-doc -->
313
	 * @generated
314
	 */
315
	public void setSecuredPublicationURL(String newSecuredPublicationURL) {
316
		String oldSecuredPublicationURL = securedPublicationURL;
317
		securedPublicationURL = newSecuredPublicationURL;
318
		if (eNotificationRequired())
319
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL, oldSecuredPublicationURL, securedPublicationURL));
320
	}
321
322
	/**
323
	 * <!-- begin-user-doc -->
324
	 * <!-- end-user-doc -->
325
	 * @generated
326
	 */
327
	public String getDefaultLogin() {
328
		return defaultLogin;
329
	}
330
331
	/**
332
	 * <!-- begin-user-doc -->
333
	 * <!-- end-user-doc -->
334
	 * @generated
335
	 */
336
	public void setDefaultLogin(String newDefaultLogin) {
337
		String oldDefaultLogin = defaultLogin;
338
		defaultLogin = newDefaultLogin;
339
		if (eNotificationRequired())
340
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN, oldDefaultLogin, defaultLogin));
341
	}
342
343
	/**
344
	 * <!-- begin-user-doc -->
345
	 * <!-- end-user-doc -->
346
	 * @generated
347
	 */
348
	public String getDefaultPassword() {
349
		return defaultPassword;
350
	}
351
352
	/**
353
	 * <!-- begin-user-doc -->
354
	 * <!-- end-user-doc -->
355
	 * @generated
356
	 */
357
	public void setDefaultPassword(String newDefaultPassword) {
358
		String oldDefaultPassword = defaultPassword;
359
		defaultPassword = newDefaultPassword;
360
		if (eNotificationRequired())
361
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD, oldDefaultPassword, defaultPassword));
362
	}
363
364
	/**
365
	 * <!-- begin-user-doc -->
366
	 * <!-- end-user-doc -->
367
	 * @generated
368
	 */
369
	public Taxonomies getTaxonomies() {
370
		return taxonomies;
371
	}
372
373
	/**
374
	 * <!-- begin-user-doc -->
375
	 * <!-- end-user-doc -->
376
	 * @generated
377
	 */
378
	public NotificationChain basicSetTaxonomies(Taxonomies newTaxonomies, NotificationChain msgs) {
379
		Taxonomies oldTaxonomies = taxonomies;
380
		taxonomies = newTaxonomies;
381
		if (eNotificationRequired()) {
382
			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, oldTaxonomies, newTaxonomies);
383
			if (msgs == null) msgs = notification; else msgs.add(notification);
384
		}
385
		return msgs;
386
	}
387
388
	/**
389
	 * <!-- begin-user-doc -->
390
	 * <!-- end-user-doc -->
391
	 * @generated
392
	 */
393
	public void setTaxonomies(Taxonomies newTaxonomies) {
394
		if (newTaxonomies != taxonomies) {
395
			NotificationChain msgs = null;
396
			if (taxonomies != null)
397
				msgs = ((InternalEObject)taxonomies).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, null, msgs);
398
			if (newTaxonomies != null)
399
				msgs = ((InternalEObject)newTaxonomies).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, null, msgs);
400
			msgs = basicSetTaxonomies(newTaxonomies, msgs);
401
			if (msgs != null) msgs.dispatch();
402
		}
403
		else if (eNotificationRequired())
404
			eNotify(new ENotificationImpl(this, Notification.SET, UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES, newTaxonomies, newTaxonomies));
405
	}
406
407
	/**
408
	 * <!-- begin-user-doc -->
409
	 * <!-- end-user-doc -->
410
	 * @generated
411
	 */
412
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
413
		if (featureID >= 0) {
414
			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
415
				case UDDIRegistryPackage.UDDI_REGISTRY__NAME:
416
					return ((InternalEList)getName()).basicRemove(otherEnd, msgs);
417
				case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION:
418
					return ((InternalEList)getDescription()).basicRemove(otherEnd, msgs);
419
				case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES:
420
					return basicSetTaxonomies(null, msgs);
421
				default:
422
					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
423
			}
424
		}
425
		return eBasicSetContainer(null, featureID, msgs);
426
	}
427
428
	/**
429
	 * <!-- begin-user-doc -->
430
	 * <!-- end-user-doc -->
431
	 * @generated
432
	 */
433
	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
434
		switch (eDerivedStructuralFeatureID(eFeature)) {
435
			case UDDIRegistryPackage.UDDI_REGISTRY__NAME:
436
				return getName();
437
			case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION:
438
				return getDescription();
439
			case UDDIRegistryPackage.UDDI_REGISTRY__ID:
440
				return getId();
441
			case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION:
442
				return getLocation();
443
			case UDDIRegistryPackage.UDDI_REGISTRY__REF:
444
				return getRef();
445
			case UDDIRegistryPackage.UDDI_REGISTRY__VERSION:
446
				return getVersion();
447
			case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL:
448
				return getDiscoveryURL();
449
			case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL:
450
				return getPublicationURL();
451
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL:
452
				return getSecuredDiscoveryURL();
453
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL:
454
				return getSecuredPublicationURL();
455
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN:
456
				return getDefaultLogin();
457
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD:
458
				return getDefaultPassword();
459
			case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES:
460
				return getTaxonomies();
461
		}
462
		return eDynamicGet(eFeature, resolve);
463
	}
464
465
	/**
466
	 * <!-- begin-user-doc -->
467
	 * <!-- end-user-doc -->
468
	 * @generated
469
	 */
470
	public void eSet(EStructuralFeature eFeature, Object newValue) {
471
		switch (eDerivedStructuralFeatureID(eFeature)) {
472
			case UDDIRegistryPackage.UDDI_REGISTRY__NAME:
473
				getName().clear();
474
				getName().addAll((Collection)newValue);
475
				return;
476
			case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION:
477
				getDescription().clear();
478
				getDescription().addAll((Collection)newValue);
479
				return;
480
			case UDDIRegistryPackage.UDDI_REGISTRY__ID:
481
				setId((String)newValue);
482
				return;
483
			case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION:
484
				setLocation((String)newValue);
485
				return;
486
			case UDDIRegistryPackage.UDDI_REGISTRY__REF:
487
				setRef((String)newValue);
488
				return;
489
			case UDDIRegistryPackage.UDDI_REGISTRY__VERSION:
490
				setVersion((String)newValue);
491
				return;
492
			case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL:
493
				setDiscoveryURL((String)newValue);
494
				return;
495
			case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL:
496
				setPublicationURL((String)newValue);
497
				return;
498
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL:
499
				setSecuredDiscoveryURL((String)newValue);
500
				return;
501
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL:
502
				setSecuredPublicationURL((String)newValue);
503
				return;
504
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN:
505
				setDefaultLogin((String)newValue);
506
				return;
507
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD:
508
				setDefaultPassword((String)newValue);
509
				return;
510
			case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES:
511
				setTaxonomies((Taxonomies)newValue);
512
				return;
513
		}
514
		eDynamicSet(eFeature, newValue);
515
	}
516
517
	/**
518
	 * <!-- begin-user-doc -->
519
	 * <!-- end-user-doc -->
520
	 * @generated
521
	 */
522
	public void eUnset(EStructuralFeature eFeature) {
523
		switch (eDerivedStructuralFeatureID(eFeature)) {
524
			case UDDIRegistryPackage.UDDI_REGISTRY__NAME:
525
				getName().clear();
526
				return;
527
			case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION:
528
				getDescription().clear();
529
				return;
530
			case UDDIRegistryPackage.UDDI_REGISTRY__ID:
531
				setId(ID_EDEFAULT);
532
				return;
533
			case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION:
534
				setLocation(LOCATION_EDEFAULT);
535
				return;
536
			case UDDIRegistryPackage.UDDI_REGISTRY__REF:
537
				setRef(REF_EDEFAULT);
538
				return;
539
			case UDDIRegistryPackage.UDDI_REGISTRY__VERSION:
540
				setVersion(VERSION_EDEFAULT);
541
				return;
542
			case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL:
543
				setDiscoveryURL(DISCOVERY_URL_EDEFAULT);
544
				return;
545
			case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL:
546
				setPublicationURL(PUBLICATION_URL_EDEFAULT);
547
				return;
548
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL:
549
				setSecuredDiscoveryURL(SECURED_DISCOVERY_URL_EDEFAULT);
550
				return;
551
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL:
552
				setSecuredPublicationURL(SECURED_PUBLICATION_URL_EDEFAULT);
553
				return;
554
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN:
555
				setDefaultLogin(DEFAULT_LOGIN_EDEFAULT);
556
				return;
557
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD:
558
				setDefaultPassword(DEFAULT_PASSWORD_EDEFAULT);
559
				return;
560
			case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES:
561
				setTaxonomies((Taxonomies)null);
562
				return;
563
		}
564
		eDynamicUnset(eFeature);
565
	}
566
567
	/**
568
	 * <!-- begin-user-doc -->
569
	 * <!-- end-user-doc -->
570
	 * @generated
571
	 */
572
	public boolean eIsSet(EStructuralFeature eFeature) {
573
		switch (eDerivedStructuralFeatureID(eFeature)) {
574
			case UDDIRegistryPackage.UDDI_REGISTRY__NAME:
575
				return name != null && !name.isEmpty();
576
			case UDDIRegistryPackage.UDDI_REGISTRY__DESCRIPTION:
577
				return description != null && !description.isEmpty();
578
			case UDDIRegistryPackage.UDDI_REGISTRY__ID:
579
				return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
580
			case UDDIRegistryPackage.UDDI_REGISTRY__LOCATION:
581
				return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
582
			case UDDIRegistryPackage.UDDI_REGISTRY__REF:
583
				return REF_EDEFAULT == null ? ref != null : !REF_EDEFAULT.equals(ref);
584
			case UDDIRegistryPackage.UDDI_REGISTRY__VERSION:
585
				return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version);
586
			case UDDIRegistryPackage.UDDI_REGISTRY__DISCOVERY_URL:
587
				return DISCOVERY_URL_EDEFAULT == null ? discoveryURL != null : !DISCOVERY_URL_EDEFAULT.equals(discoveryURL);
588
			case UDDIRegistryPackage.UDDI_REGISTRY__PUBLICATION_URL:
589
				return PUBLICATION_URL_EDEFAULT == null ? publicationURL != null : !PUBLICATION_URL_EDEFAULT.equals(publicationURL);
590
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_DISCOVERY_URL:
591
				return SECURED_DISCOVERY_URL_EDEFAULT == null ? securedDiscoveryURL != null : !SECURED_DISCOVERY_URL_EDEFAULT.equals(securedDiscoveryURL);
592
			case UDDIRegistryPackage.UDDI_REGISTRY__SECURED_PUBLICATION_URL:
593
				return SECURED_PUBLICATION_URL_EDEFAULT == null ? securedPublicationURL != null : !SECURED_PUBLICATION_URL_EDEFAULT.equals(securedPublicationURL);
594
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_LOGIN:
595
				return DEFAULT_LOGIN_EDEFAULT == null ? defaultLogin != null : !DEFAULT_LOGIN_EDEFAULT.equals(defaultLogin);
596
			case UDDIRegistryPackage.UDDI_REGISTRY__DEFAULT_PASSWORD:
597
				return DEFAULT_PASSWORD_EDEFAULT == null ? defaultPassword != null : !DEFAULT_PASSWORD_EDEFAULT.equals(defaultPassword);
598
			case UDDIRegistryPackage.UDDI_REGISTRY__TAXONOMIES:
599
				return taxonomies != null;
600
		}
601
		return eDynamicIsSet(eFeature);
602
	}
603
604
	/**
605
	 * <!-- begin-user-doc -->
606
	 * <!-- end-user-doc -->
607
	 * @generated
608
	 */
609
	public String toString() {
610
		if (eIsProxy()) return super.toString();
611
612
		StringBuffer result = new StringBuffer(super.toString());
613
		result.append(" (version: ");
614
		result.append(version);
615
		result.append(", discoveryURL: ");
616
		result.append(discoveryURL);
617
		result.append(", publicationURL: ");
618
		result.append(publicationURL);
619
		result.append(", securedDiscoveryURL: ");
620
		result.append(securedDiscoveryURL);
621
		result.append(", securedPublicationURL: ");
622
		result.append(securedPublicationURL);
623
		result.append(", defaultLogin: ");
624
		result.append(defaultLogin);
625
		result.append(", defaultPassword: ");
626
		result.append(defaultPassword);
627
		result.append(')');
628
		return result.toString();
629
	}
630
631
} //UDDIRegistryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/impl/UDDIRegistryPackageImpl.java (+542 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.impl;
8
9
import org.eclipse.emf.ecore.EAttribute;
10
import org.eclipse.emf.ecore.EClass;
11
import org.eclipse.emf.ecore.EPackage;
12
import org.eclipse.emf.ecore.EReference;
13
14
import org.eclipse.emf.ecore.impl.EPackageImpl;
15
16
import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
17
18
import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl;
19
20
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
21
22
import org.eclipse.wst.ws.internal.model.v10.registry.impl.RegistryPackageImpl;
23
24
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
25
26
import org.eclipse.wst.ws.internal.model.v10.rtindex.impl.RTIndexPackageImpl;
27
28
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
29
30
import org.eclipse.wst.ws.internal.model.v10.taxonomy.impl.TaxonomyPackageImpl;
31
32
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot;
33
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies;
34
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry;
35
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryFactory;
36
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
37
38
/**
39
 * <!-- begin-user-doc -->
40
 * An implementation of the model <b>Package</b>.
41
 * <!-- end-user-doc -->
42
 * @generated
43
 */
44
public class UDDIRegistryPackageImpl extends EPackageImpl implements UDDIRegistryPackage {
45
	/**
46
	 * <!-- begin-user-doc -->
47
	 * <!-- end-user-doc -->
48
	 * @generated
49
	 */
50
	private EClass documentRootEClass = null;
51
52
	/**
53
	 * <!-- begin-user-doc -->
54
	 * <!-- end-user-doc -->
55
	 * @generated
56
	 */
57
	private EClass taxonomiesEClass = null;
58
59
	/**
60
	 * <!-- begin-user-doc -->
61
	 * <!-- end-user-doc -->
62
	 * @generated
63
	 */
64
	private EClass uddiRegistryEClass = null;
65
66
	/**
67
	 * Creates an instance of the model <b>Package</b>, registered with
68
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
69
	 * package URI value.
70
	 * <p>Note: the correct way to create the package is via the static
71
	 * factory method {@link #init init()}, which also performs
72
	 * initialization of the package, or returns the registered package,
73
	 * if one already exists.
74
	 * <!-- begin-user-doc -->
75
	 * <!-- end-user-doc -->
76
	 * @see org.eclipse.emf.ecore.EPackage.Registry
77
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage#eNS_URI
78
	 * @see #init()
79
	 * @generated
80
	 */
81
	private UDDIRegistryPackageImpl() {
82
		super(eNS_URI, UDDIRegistryFactory.eINSTANCE);
83
	}
84
85
	/**
86
	 * <!-- begin-user-doc -->
87
	 * <!-- end-user-doc -->
88
	 * @generated
89
	 */
90
	private static boolean isInited = false;
91
92
	/**
93
	 * Creates, registers, and initializes the <b>Package</b> for this
94
	 * model, and for any others upon which it depends.  Simple
95
	 * dependencies are satisfied by calling this method on all
96
	 * dependent packages before doing anything else.  This method drives
97
	 * initialization for interdependent packages directly, in parallel
98
	 * with this package, itself.
99
	 * <p>Of this package and its interdependencies, all packages which
100
	 * have not yet been registered by their URI values are first created
101
	 * and registered.  The packages are then initialized in two steps:
102
	 * meta-model objects for all of the packages are created before any
103
	 * are initialized, since one package's meta-model objects may refer to
104
	 * those of another.
105
	 * <p>Invocation of this method will not affect any packages that have
106
	 * already been initialized.
107
	 * <!-- begin-user-doc -->
108
	 * <!-- end-user-doc -->
109
	 * @see #eNS_URI
110
	 * @see #createPackageContents()
111
	 * @see #initializePackageContents()
112
	 * @generated
113
	 */
114
	public static UDDIRegistryPackage init() {
115
		if (isInited) return (UDDIRegistryPackage)EPackage.Registry.INSTANCE.getEPackage(UDDIRegistryPackage.eNS_URI);
116
117
		// Obtain or create and register package
118
		UDDIRegistryPackageImpl theUDDIRegistryPackage = (UDDIRegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof UDDIRegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new UDDIRegistryPackageImpl());
119
120
		isInited = true;
121
122
		// Initialize simple dependencies
123
		XMLTypePackageImpl.init();
124
125
		// Obtain or create and register interdependencies
126
		TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) instanceof TaxonomyPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI) : TaxonomyPackageImpl.eINSTANCE);
127
		RTIndexPackageImpl theRTIndexPackage = (RTIndexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) instanceof RTIndexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RTIndexPackage.eNS_URI) : RTIndexPackageImpl.eINSTANCE);
128
		RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) instanceof RegistryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI) : RegistryPackageImpl.eINSTANCE);
129
130
		// Create package meta-data objects
131
		theUDDIRegistryPackage.createPackageContents();
132
		theTaxonomyPackage.createPackageContents();
133
		theRTIndexPackage.createPackageContents();
134
		theRegistryPackage.createPackageContents();
135
136
		// Initialize created meta-data
137
		theUDDIRegistryPackage.initializePackageContents();
138
		theTaxonomyPackage.initializePackageContents();
139
		theRTIndexPackage.initializePackageContents();
140
		theRegistryPackage.initializePackageContents();
141
142
		// Mark meta-data to indicate it can't be changed
143
		theUDDIRegistryPackage.freeze();
144
145
		return theUDDIRegistryPackage;
146
	}
147
148
	/**
149
	 * <!-- begin-user-doc -->
150
	 * <!-- end-user-doc -->
151
	 * @generated
152
	 */
153
	public EClass getDocumentRoot() {
154
		return documentRootEClass;
155
	}
156
157
	/**
158
	 * <!-- begin-user-doc -->
159
	 * <!-- end-user-doc -->
160
	 * @generated
161
	 */
162
	public EAttribute getDocumentRoot_Mixed() {
163
		return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
164
	}
165
166
	/**
167
	 * <!-- begin-user-doc -->
168
	 * <!-- end-user-doc -->
169
	 * @generated
170
	 */
171
	public EReference getDocumentRoot_XMLNSPrefixMap() {
172
		return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
173
	}
174
175
	/**
176
	 * <!-- begin-user-doc -->
177
	 * <!-- end-user-doc -->
178
	 * @generated
179
	 */
180
	public EReference getDocumentRoot_XSISchemaLocation() {
181
		return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
182
	}
183
184
	/**
185
	 * <!-- begin-user-doc -->
186
	 * <!-- end-user-doc -->
187
	 * @generated
188
	 */
189
	public EReference getDocumentRoot_Taxonomies() {
190
		return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
191
	}
192
193
	/**
194
	 * <!-- begin-user-doc -->
195
	 * <!-- end-user-doc -->
196
	 * @generated
197
	 */
198
	public EReference getDocumentRoot_UddiRegistry() {
199
		return (EReference)documentRootEClass.getEStructuralFeatures().get(4);
200
	}
201
202
	/**
203
	 * <!-- begin-user-doc -->
204
	 * <!-- end-user-doc -->
205
	 * @generated
206
	 */
207
	public EClass getTaxonomies() {
208
		return taxonomiesEClass;
209
	}
210
211
	/**
212
	 * <!-- begin-user-doc -->
213
	 * <!-- end-user-doc -->
214
	 * @generated
215
	 */
216
	public EReference getTaxonomies_Taxonomy() {
217
		return (EReference)taxonomiesEClass.getEStructuralFeatures().get(0);
218
	}
219
220
	/**
221
	 * <!-- begin-user-doc -->
222
	 * <!-- end-user-doc -->
223
	 * @generated
224
	 */
225
	public EClass getUDDIRegistry() {
226
		return uddiRegistryEClass;
227
	}
228
229
	/**
230
	 * <!-- begin-user-doc -->
231
	 * <!-- end-user-doc -->
232
	 * @generated
233
	 */
234
	public EAttribute getUDDIRegistry_Version() {
235
		return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(0);
236
	}
237
238
	/**
239
	 * <!-- begin-user-doc -->
240
	 * <!-- end-user-doc -->
241
	 * @generated
242
	 */
243
	public EAttribute getUDDIRegistry_DiscoveryURL() {
244
		return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(1);
245
	}
246
247
	/**
248
	 * <!-- begin-user-doc -->
249
	 * <!-- end-user-doc -->
250
	 * @generated
251
	 */
252
	public EAttribute getUDDIRegistry_PublicationURL() {
253
		return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(2);
254
	}
255
256
	/**
257
	 * <!-- begin-user-doc -->
258
	 * <!-- end-user-doc -->
259
	 * @generated
260
	 */
261
	public EAttribute getUDDIRegistry_SecuredDiscoveryURL() {
262
		return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(3);
263
	}
264
265
	/**
266
	 * <!-- begin-user-doc -->
267
	 * <!-- end-user-doc -->
268
	 * @generated
269
	 */
270
	public EAttribute getUDDIRegistry_SecuredPublicationURL() {
271
		return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(4);
272
	}
273
274
	/**
275
	 * <!-- begin-user-doc -->
276
	 * <!-- end-user-doc -->
277
	 * @generated
278
	 */
279
	public EAttribute getUDDIRegistry_DefaultLogin() {
280
		return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(5);
281
	}
282
283
	/**
284
	 * <!-- begin-user-doc -->
285
	 * <!-- end-user-doc -->
286
	 * @generated
287
	 */
288
	public EAttribute getUDDIRegistry_DefaultPassword() {
289
		return (EAttribute)uddiRegistryEClass.getEStructuralFeatures().get(6);
290
	}
291
292
	/**
293
	 * <!-- begin-user-doc -->
294
	 * <!-- end-user-doc -->
295
	 * @generated
296
	 */
297
	public EReference getUDDIRegistry_Taxonomies() {
298
		return (EReference)uddiRegistryEClass.getEStructuralFeatures().get(7);
299
	}
300
301
	/**
302
	 * <!-- begin-user-doc -->
303
	 * <!-- end-user-doc -->
304
	 * @generated
305
	 */
306
	public UDDIRegistryFactory getUDDIRegistryFactory() {
307
		return (UDDIRegistryFactory)getEFactoryInstance();
308
	}
309
310
	/**
311
	 * <!-- begin-user-doc -->
312
	 * <!-- end-user-doc -->
313
	 * @generated
314
	 */
315
	private boolean isCreated = false;
316
317
	/**
318
	 * Creates the meta-model objects for the package.  This method is
319
	 * guarded to have no affect on any invocation but its first.
320
	 * <!-- begin-user-doc -->
321
	 * <!-- end-user-doc -->
322
	 * @generated
323
	 */
324
	public void createPackageContents() {
325
		if (isCreated) return;
326
		isCreated = true;
327
328
		// Create classes and their features
329
		documentRootEClass = createEClass(DOCUMENT_ROOT);
330
		createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
331
		createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
332
		createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
333
		createEReference(documentRootEClass, DOCUMENT_ROOT__TAXONOMIES);
334
		createEReference(documentRootEClass, DOCUMENT_ROOT__UDDI_REGISTRY);
335
336
		taxonomiesEClass = createEClass(TAXONOMIES);
337
		createEReference(taxonomiesEClass, TAXONOMIES__TAXONOMY);
338
339
		uddiRegistryEClass = createEClass(UDDI_REGISTRY);
340
		createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__VERSION);
341
		createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__DISCOVERY_URL);
342
		createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__PUBLICATION_URL);
343
		createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__SECURED_DISCOVERY_URL);
344
		createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__SECURED_PUBLICATION_URL);
345
		createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__DEFAULT_LOGIN);
346
		createEAttribute(uddiRegistryEClass, UDDI_REGISTRY__DEFAULT_PASSWORD);
347
		createEReference(uddiRegistryEClass, UDDI_REGISTRY__TAXONOMIES);
348
	}
349
350
	/**
351
	 * <!-- begin-user-doc -->
352
	 * <!-- end-user-doc -->
353
	 * @generated
354
	 */
355
	private boolean isInitialized = false;
356
357
	/**
358
	 * Complete the initialization of the package and its meta-model.  This
359
	 * method is guarded to have no affect on any invocation but its first.
360
	 * <!-- begin-user-doc -->
361
	 * <!-- end-user-doc -->
362
	 * @generated
363
	 */
364
	public void initializePackageContents() {
365
		if (isInitialized) return;
366
		isInitialized = true;
367
368
		// Initialize package
369
		setName(eNAME);
370
		setNsPrefix(eNS_PREFIX);
371
		setNsURI(eNS_URI);
372
373
		// Obtain other dependent packages
374
		TaxonomyPackageImpl theTaxonomyPackage = (TaxonomyPackageImpl)EPackage.Registry.INSTANCE.getEPackage(TaxonomyPackage.eNS_URI);
375
		RegistryPackageImpl theRegistryPackage = (RegistryPackageImpl)EPackage.Registry.INSTANCE.getEPackage(RegistryPackage.eNS_URI);
376
		XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
377
378
		// Add supertypes to classes
379
		uddiRegistryEClass.getESuperTypes().add(theRegistryPackage.getRegistry());
380
381
		// Initialize classes and features; add operations and parameters
382
		initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
383
		initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
384
		initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
385
		initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
386
		initEReference(getDocumentRoot_Taxonomies(), this.getTaxonomies(), null, "taxonomies", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
387
		initEReference(getDocumentRoot_UddiRegistry(), this.getUDDIRegistry(), null, "uddiRegistry", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
388
389
		initEClass(taxonomiesEClass, Taxonomies.class, "Taxonomies", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
390
		initEReference(getTaxonomies_Taxonomy(), theTaxonomyPackage.getTaxonomy(), null, "taxonomy", null, 0, -1, Taxonomies.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
391
392
		initEClass(uddiRegistryEClass, UDDIRegistry.class, "UDDIRegistry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
393
		initEAttribute(getUDDIRegistry_Version(), theXMLTypePackage.getString(), "version", null, 1, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
394
		initEAttribute(getUDDIRegistry_DiscoveryURL(), theXMLTypePackage.getAnyURI(), "discoveryURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
395
		initEAttribute(getUDDIRegistry_PublicationURL(), theXMLTypePackage.getAnyURI(), "publicationURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
396
		initEAttribute(getUDDIRegistry_SecuredDiscoveryURL(), theXMLTypePackage.getAnyURI(), "securedDiscoveryURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
397
		initEAttribute(getUDDIRegistry_SecuredPublicationURL(), theXMLTypePackage.getAnyURI(), "securedPublicationURL", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
398
		initEAttribute(getUDDIRegistry_DefaultLogin(), theXMLTypePackage.getString(), "defaultLogin", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
399
		initEAttribute(getUDDIRegistry_DefaultPassword(), theXMLTypePackage.getString(), "defaultPassword", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
400
		initEReference(getUDDIRegistry_Taxonomies(), this.getTaxonomies(), null, "taxonomies", null, 0, 1, UDDIRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
401
402
		// Create resource
403
		createResource(eNS_URI);
404
405
		// Create annotations
406
		// http:///org/eclipse/emf/ecore/util/ExtendedMetaData
407
		createExtendedMetaDataAnnotations();
408
	}
409
410
	/**
411
	 * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
412
	 * <!-- begin-user-doc -->
413
	 * <!-- end-user-doc -->
414
	 * @generated
415
	 */
416
	protected void createExtendedMetaDataAnnotations() {
417
		String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";			
418
		addAnnotation
419
		  (documentRootEClass, 
420
		   source, 
421
		   new String[] {
422
			 "name", "",
423
			 "kind", "mixed"
424
		   });		
425
		addAnnotation
426
		  (getDocumentRoot_Mixed(), 
427
		   source, 
428
		   new String[] {
429
			 "kind", "elementWildcard",
430
			 "name", ":mixed"
431
		   });		
432
		addAnnotation
433
		  (getDocumentRoot_XMLNSPrefixMap(), 
434
		   source, 
435
		   new String[] {
436
			 "kind", "attribute",
437
			 "name", "xmlns:prefix"
438
		   });		
439
		addAnnotation
440
		  (getDocumentRoot_XSISchemaLocation(), 
441
		   source, 
442
		   new String[] {
443
			 "kind", "attribute",
444
			 "name", "xsi:schemaLocation"
445
		   });		
446
		addAnnotation
447
		  (getDocumentRoot_Taxonomies(), 
448
		   source, 
449
		   new String[] {
450
			 "kind", "element",
451
			 "name", "taxonomies",
452
			 "namespace", "##targetNamespace"
453
		   });		
454
		addAnnotation
455
		  (getDocumentRoot_UddiRegistry(), 
456
		   source, 
457
		   new String[] {
458
			 "kind", "element",
459
			 "name", "uddiRegistry",
460
			 "namespace", "##targetNamespace"
461
		   });		
462
		addAnnotation
463
		  (taxonomiesEClass, 
464
		   source, 
465
		   new String[] {
466
			 "name", "Taxonomies",
467
			 "kind", "elementOnly"
468
		   });		
469
		addAnnotation
470
		  (getTaxonomies_Taxonomy(), 
471
		   source, 
472
		   new String[] {
473
			 "kind", "element",
474
			 "name", "taxonomy",
475
			 "namespace", "http://eclipse.org/wst/ws/internal/model/v10/taxonomy"
476
		   });		
477
		addAnnotation
478
		  (uddiRegistryEClass, 
479
		   source, 
480
		   new String[] {
481
			 "name", "UDDIRegistry",
482
			 "kind", "elementOnly"
483
		   });		
484
		addAnnotation
485
		  (getUDDIRegistry_Version(), 
486
		   source, 
487
		   new String[] {
488
			 "kind", "element",
489
			 "name", "version"
490
		   });		
491
		addAnnotation
492
		  (getUDDIRegistry_DiscoveryURL(), 
493
		   source, 
494
		   new String[] {
495
			 "kind", "element",
496
			 "name", "discoveryURL"
497
		   });		
498
		addAnnotation
499
		  (getUDDIRegistry_PublicationURL(), 
500
		   source, 
501
		   new String[] {
502
			 "kind", "element",
503
			 "name", "publicationURL"
504
		   });		
505
		addAnnotation
506
		  (getUDDIRegistry_SecuredDiscoveryURL(), 
507
		   source, 
508
		   new String[] {
509
			 "kind", "element",
510
			 "name", "securedDiscoveryURL"
511
		   });		
512
		addAnnotation
513
		  (getUDDIRegistry_SecuredPublicationURL(), 
514
		   source, 
515
		   new String[] {
516
			 "kind", "element",
517
			 "name", "securedPublicationURL"
518
		   });		
519
		addAnnotation
520
		  (getUDDIRegistry_DefaultLogin(), 
521
		   source, 
522
		   new String[] {
523
			 "kind", "element",
524
			 "name", "defaultLogin"
525
		   });		
526
		addAnnotation
527
		  (getUDDIRegistry_DefaultPassword(), 
528
		   source, 
529
		   new String[] {
530
			 "kind", "element",
531
			 "name", "defaultPassword"
532
		   });		
533
		addAnnotation
534
		  (getUDDIRegistry_Taxonomies(), 
535
		   source, 
536
		   new String[] {
537
			 "kind", "element",
538
			 "name", "taxonomies"
539
		   });
540
	}
541
542
} //UDDIRegistryPackageImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryAdapterFactory.java (+173 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util;
8
9
import org.eclipse.emf.common.notify.Adapter;
10
import org.eclipse.emf.common.notify.Notifier;
11
12
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
13
14
import org.eclipse.emf.ecore.EObject;
15
16
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
17
18
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.*;
19
20
/**
21
 * <!-- begin-user-doc -->
22
 * The <b>Adapter Factory</b> for the model.
23
 * It provides an adapter <code>createXXX</code> method for each class of the model.
24
 * <!-- end-user-doc -->
25
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage
26
 * @generated
27
 */
28
public class UDDIRegistryAdapterFactory extends AdapterFactoryImpl {
29
	/**
30
	 * The cached model package.
31
	 * <!-- begin-user-doc -->
32
	 * <!-- end-user-doc -->
33
	 * @generated
34
	 */
35
	protected static UDDIRegistryPackage modelPackage;
36
37
	/**
38
	 * Creates an instance of the adapter factory.
39
	 * <!-- begin-user-doc -->
40
	 * <!-- end-user-doc -->
41
	 * @generated
42
	 */
43
	public UDDIRegistryAdapterFactory() {
44
		if (modelPackage == null) {
45
			modelPackage = UDDIRegistryPackage.eINSTANCE;
46
		}
47
	}
48
49
	/**
50
	 * Returns whether this factory is applicable for the type of the object.
51
	 * <!-- begin-user-doc -->
52
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
53
	 * <!-- end-user-doc -->
54
	 * @return whether this factory is applicable for the type of the object.
55
	 * @generated
56
	 */
57
	public boolean isFactoryForType(Object object) {
58
		if (object == modelPackage) {
59
			return true;
60
		}
61
		if (object instanceof EObject) {
62
			return ((EObject)object).eClass().getEPackage() == modelPackage;
63
		}
64
		return false;
65
	}
66
67
	/**
68
	 * The switch the delegates to the <code>createXXX</code> methods.
69
	 * <!-- begin-user-doc -->
70
	 * <!-- end-user-doc -->
71
	 * @generated
72
	 */
73
	protected UDDIRegistrySwitch modelSwitch =
74
		new UDDIRegistrySwitch() {
75
			public Object caseDocumentRoot(DocumentRoot object) {
76
				return createDocumentRootAdapter();
77
			}
78
			public Object caseTaxonomies(Taxonomies object) {
79
				return createTaxonomiesAdapter();
80
			}
81
			public Object caseUDDIRegistry(UDDIRegistry object) {
82
				return createUDDIRegistryAdapter();
83
			}
84
			public Object caseRegistry(Registry object) {
85
				return createRegistryAdapter();
86
			}
87
			public Object defaultCase(EObject object) {
88
				return createEObjectAdapter();
89
			}
90
		};
91
92
	/**
93
	 * Creates an adapter for the <code>target</code>.
94
	 * <!-- begin-user-doc -->
95
	 * <!-- end-user-doc -->
96
	 * @param target the object to adapt.
97
	 * @return the adapter for the <code>target</code>.
98
	 * @generated
99
	 */
100
	public Adapter createAdapter(Notifier target) {
101
		return (Adapter)modelSwitch.doSwitch((EObject)target);
102
	}
103
104
105
	/**
106
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot <em>Document Root</em>}'.
107
	 * <!-- begin-user-doc -->
108
	 * This default implementation returns null so that we can easily ignore cases;
109
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
110
	 * <!-- end-user-doc -->
111
	 * @return the new adapter.
112
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.DocumentRoot
113
	 * @generated
114
	 */
115
	public Adapter createDocumentRootAdapter() {
116
		return null;
117
	}
118
119
	/**
120
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies <em>Taxonomies</em>}'.
121
	 * <!-- begin-user-doc -->
122
	 * This default implementation returns null so that we can easily ignore cases;
123
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
124
	 * <!-- end-user-doc -->
125
	 * @return the new adapter.
126
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.Taxonomies
127
	 * @generated
128
	 */
129
	public Adapter createTaxonomiesAdapter() {
130
		return null;
131
	}
132
133
	/**
134
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry <em>UDDIRegistry</em>}'.
135
	 * <!-- begin-user-doc -->
136
	 * This default implementation returns null so that we can easily ignore cases;
137
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
138
	 * <!-- end-user-doc -->
139
	 * @return the new adapter.
140
	 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry
141
	 * @generated
142
	 */
143
	public Adapter createUDDIRegistryAdapter() {
144
		return null;
145
	}
146
147
	/**
148
	 * Creates a new adapter for an object of class '{@link org.eclipse.wst.ws.internal.model.v10.registry.Registry <em>Registry</em>}'.
149
	 * <!-- begin-user-doc -->
150
	 * This default implementation returns null so that we can easily ignore cases;
151
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
152
	 * <!-- end-user-doc -->
153
	 * @return the new adapter.
154
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry
155
	 * @generated
156
	 */
157
	public Adapter createRegistryAdapter() {
158
		return null;
159
	}
160
161
	/**
162
	 * Creates a new adapter for the default case.
163
	 * <!-- begin-user-doc -->
164
	 * This default implementation returns null.
165
	 * <!-- end-user-doc -->
166
	 * @return the new adapter.
167
	 * @generated
168
	 */
169
	public Adapter createEObjectAdapter() {
170
		return null;
171
	}
172
173
} //UDDIRegistryAdapterFactory
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceFactoryImpl.java (+63 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.resource.Resource;
12
13
import org.eclipse.emf.ecore.util.ExtendedMetaData;
14
15
import org.eclipse.emf.ecore.xmi.XMLResource;
16
17
import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl;
18
19
/**
20
 * <!-- begin-user-doc -->
21
 * The <b>Resource Factory</b> associated with the package.
22
 * <!-- end-user-doc -->
23
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.util.UDDIRegistryResourceImpl
24
 * @generated
25
 */
26
public class UDDIRegistryResourceFactoryImpl extends XMLResourceFactoryImpl {
27
	/**
28
	 * <!-- begin-user-doc -->
29
	 * <!-- end-user-doc -->
30
	 * @generated
31
	 */
32
	protected ExtendedMetaData extendedMetaData;
33
34
	/**
35
	 * Creates an instance of the resource factory.
36
	 * <!-- begin-user-doc -->
37
	 * <!-- end-user-doc -->
38
	 * @generated
39
	 */
40
	public UDDIRegistryResourceFactoryImpl() {
41
		super();
42
		extendedMetaData = ExtendedMetaData.INSTANCE;
43
	}
44
45
	/**
46
	 * Creates an instance of the resource.
47
	 * <!-- begin-user-doc -->
48
	 * <!-- end-user-doc -->
49
	 * @generated
50
	 */
51
	public Resource createResource(URI uri) {
52
		XMLResource result = new UDDIRegistryResourceImpl(uri);
53
		result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
54
		result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
55
56
		result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
57
		result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
58
59
		result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
60
		return result;
61
	}
62
63
} //UDDIRegistryResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistryResourceImpl.java (+32 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util;
8
9
import org.eclipse.emf.common.util.URI;
10
11
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
12
13
/**
14
 * <!-- begin-user-doc -->
15
 * The <b>Resource </b> associated with the package.
16
 * <!-- end-user-doc -->
17
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.util.UDDIRegistryResourceFactoryImpl
18
 * @generated
19
 */
20
public class UDDIRegistryResourceImpl extends XMLResourceImpl {
21
	/**
22
	 * Creates an instance of the resource.
23
	 * <!-- begin-user-doc -->
24
	 * <!-- end-user-doc -->
25
	 * @param uri the URI of the new resource.
26
	 * @generated
27
	 */
28
	public UDDIRegistryResourceImpl(URI uri) {
29
		super(uri);
30
	}
31
32
} //UDDIRegistryResourceFactoryImpl
(-)src/org/eclipse/wst/ws/internal/model/v10/uddiregistry/util/UDDIRegistrySwitch.java (+190 lines)
Added Link Here
1
/**
2
 * <copyright>
3
 * </copyright>
4
 *
5
 * $Id$
6
 */
7
package org.eclipse.wst.ws.internal.model.v10.uddiregistry.util;
8
9
import java.util.List;
10
11
import org.eclipse.emf.ecore.EClass;
12
import org.eclipse.emf.ecore.EObject;
13
14
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
15
16
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.*;
17
18
/**
19
 * <!-- begin-user-doc -->
20
 * The <b>Switch</b> for the model's inheritance hierarchy.
21
 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
22
 * to invoke the <code>caseXXX</code> method for each class of the model,
23
 * starting with the actual class of the object
24
 * and proceeding up the inheritance hierarchy
25
 * until a non-null result is returned,
26
 * which is the result of the switch.
27
 * <!-- end-user-doc -->
28
 * @see org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage
29
 * @generated
30
 */
31
public class UDDIRegistrySwitch {
32
	/**
33
	 * The cached model package
34
	 * <!-- begin-user-doc -->
35
	 * <!-- end-user-doc -->
36
	 * @generated
37
	 */
38
	protected static UDDIRegistryPackage modelPackage;
39
40
	/**
41
	 * Creates an instance of the switch.
42
	 * <!-- begin-user-doc -->
43
	 * <!-- end-user-doc -->
44
	 * @generated
45
	 */
46
	public UDDIRegistrySwitch() {
47
		if (modelPackage == null) {
48
			modelPackage = UDDIRegistryPackage.eINSTANCE;
49
		}
50
	}
51
52
	/**
53
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
54
	 * <!-- begin-user-doc -->
55
	 * <!-- end-user-doc -->
56
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
57
	 * @generated
58
	 */
59
	public Object doSwitch(EObject theEObject) {
60
		return doSwitch(theEObject.eClass(), theEObject);
61
	}
62
63
	/**
64
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
65
	 * <!-- begin-user-doc -->
66
	 * <!-- end-user-doc -->
67
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
68
	 * @generated
69
	 */
70
	protected Object doSwitch(EClass theEClass, EObject theEObject) {
71
		if (theEClass.eContainer() == modelPackage) {
72
			return doSwitch(theEClass.getClassifierID(), theEObject);
73
		}
74
		else {
75
			List eSuperTypes = theEClass.getESuperTypes();
76
			return
77
				eSuperTypes.isEmpty() ?
78
					defaultCase(theEObject) :
79
					doSwitch((EClass)eSuperTypes.get(0), theEObject);
80
		}
81
	}
82
83
	/**
84
	 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
85
	 * <!-- begin-user-doc -->
86
	 * <!-- end-user-doc -->
87
	 * @return the first non-null result returned by a <code>caseXXX</code> call.
88
	 * @generated
89
	 */
90
	protected Object doSwitch(int classifierID, EObject theEObject) {
91
		switch (classifierID) {
92
			case UDDIRegistryPackage.DOCUMENT_ROOT: {
93
				DocumentRoot documentRoot = (DocumentRoot)theEObject;
94
				Object result = caseDocumentRoot(documentRoot);
95
				if (result == null) result = defaultCase(theEObject);
96
				return result;
97
			}
98
			case UDDIRegistryPackage.TAXONOMIES: {
99
				Taxonomies taxonomies = (Taxonomies)theEObject;
100
				Object result = caseTaxonomies(taxonomies);
101
				if (result == null) result = defaultCase(theEObject);
102
				return result;
103
			}
104
			case UDDIRegistryPackage.UDDI_REGISTRY: {
105
				UDDIRegistry uddiRegistry = (UDDIRegistry)theEObject;
106
				Object result = caseUDDIRegistry(uddiRegistry);
107
				if (result == null) result = caseRegistry(uddiRegistry);
108
				if (result == null) result = defaultCase(theEObject);
109
				return result;
110
			}
111
			default: return defaultCase(theEObject);
112
		}
113
	}
114
115
	/**
116
	 * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'.
117
	 * <!-- begin-user-doc -->
118
	 * This implementation returns null;
119
	 * returning a non-null result will terminate the switch.
120
	 * <!-- end-user-doc -->
121
	 * @param object the target of the switch.
122
	 * @return the result of interpretting the object as an instance of '<em>Document Root</em>'.
123
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
124
	 * @generated
125
	 */
126
	public Object caseDocumentRoot(DocumentRoot object) {
127
		return null;
128
	}
129
130
	/**
131
	 * Returns the result of interpretting the object as an instance of '<em>Taxonomies</em>'.
132
	 * <!-- begin-user-doc -->
133
	 * This implementation returns null;
134
	 * returning a non-null result will terminate the switch.
135
	 * <!-- end-user-doc -->
136
	 * @param object the target of the switch.
137
	 * @return the result of interpretting the object as an instance of '<em>Taxonomies</em>'.
138
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
139
	 * @generated
140
	 */
141
	public Object caseTaxonomies(Taxonomies object) {
142
		return null;
143
	}
144
145
	/**
146
	 * Returns the result of interpretting the object as an instance of '<em>UDDIRegistry</em>'.
147
	 * <!-- begin-user-doc -->
148
	 * This implementation returns null;
149
	 * returning a non-null result will terminate the switch.
150
	 * <!-- end-user-doc -->
151
	 * @param object the target of the switch.
152
	 * @return the result of interpretting the object as an instance of '<em>UDDIRegistry</em>'.
153
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
154
	 * @generated
155
	 */
156
	public Object caseUDDIRegistry(UDDIRegistry object) {
157
		return null;
158
	}
159
160
	/**
161
	 * Returns the result of interpretting the object as an instance of '<em>Registry</em>'.
162
	 * <!-- begin-user-doc -->
163
	 * This implementation returns null;
164
	 * returning a non-null result will terminate the switch.
165
	 * <!-- end-user-doc -->
166
	 * @param object the target of the switch.
167
	 * @return the result of interpretting the object as an instance of '<em>Registry</em>'.
168
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
169
	 * @generated
170
	 */
171
	public Object caseRegistry(Registry object) {
172
		return null;
173
	}
174
175
	/**
176
	 * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
177
	 * <!-- begin-user-doc -->
178
	 * This implementation returns null;
179
	 * returning a non-null result will terminate the switch, but this is the last case anyway.
180
	 * <!-- end-user-doc -->
181
	 * @param object the target of the switch.
182
	 * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
183
	 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
184
	 * @generated
185
	 */
186
	public Object defaultCase(EObject object) {
187
		return null;
188
	}
189
190
} //UDDIRegistrySwitch
(-)src/org/eclipse/wst/ws/internal/registry/GenericResourceFactory.java (+41 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.registry;
13
14
import org.eclipse.emf.common.util.URI;
15
import org.eclipse.emf.ecore.resource.Resource;
16
import org.eclipse.emf.ecore.util.ExtendedMetaData;
17
import org.eclipse.emf.ecore.xmi.XMLResource;
18
import org.eclipse.emf.ecore.xmi.impl.XMLResourceFactoryImpl;
19
import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
20
21
public class GenericResourceFactory extends XMLResourceFactoryImpl
22
{
23
	protected ExtendedMetaData extendedMetaData;
24
25
	public GenericResourceFactory()
26
	{
27
		super();
28
		extendedMetaData = ExtendedMetaData.INSTANCE;
29
	}
30
31
	public Resource createResource(URI uri)
32
	{
33
		XMLResource result = new XMLResourceImpl(uri);
34
		result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
35
		result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
36
		result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
37
		result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
38
		result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
39
		return result;
40
	}
41
}
(-)src/org/eclipse/wst/ws/internal/registry/IRegistryManager.java (+217 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.registry;
13
14
import java.net.MalformedURLException;
15
import java.net.URL;
16
17
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
18
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
19
20
/**
21
 * An IRegistryManager manages a family of <code>Registry</code>
22
 * and <code>Taxonomy</code> models persisted within some
23
 * addressable location such as under a directory in the
24
 * filesystem or under a folder in the Eclipse workspace,
25
 * and referenced from an index document at the same location. 
26
 * <p>
27
 * Call <code>RegisteryService.getDefaultRegistryManager()</code>
28
 * or <code>RegisteryService.getRegistryManager(URL)</code> to
29
 * get a new IRegistryManager.
30
 * 
31
 * @see org.eclipse.wst.ws.internal.registry.RegistryService#instance()
32
 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry
33
 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy
34
 * @author cbrealey
35
 */
36
public interface IRegistryManager
37
{
38
	/**
39
	 * A constant for use in the <code>removeRegistry(...)</code>
40
	 * and <code>removeTaxonomy(...)</code> methods that will
41
	 * cause the given registry or taxonomy document to be removed
42
	 * from the index, but not deleted.
43
	 * 
44
	 * @see #removeRegistry(String, boolean)
45
	 * @see #removeTaxonomy(String, boolean)
46
	 */
47
	public boolean KEEP_DOCUMENT = false;
48
49
	/**
50
	 * A constant for use in the <code>removeRegistry(...)</code>
51
	 * and <code>removeTaxonomy(...)</code> methods that will
52
	 * cause the given registry or taxonomy document to be removed
53
	 * from the index and deleted.
54
	 * 
55
	 * @see #removeRegistry(String, boolean)
56
	 * @see #removeTaxonomy(String, boolean)
57
	 */
58
	public boolean DELETE_DOCUMENT = true;
59
60
	/**
61
	 * Returns the URL of the XML index document that references
62
	 * the XML registry and taxonomy models managed by this
63
	 * Registry Manager.
64
	 * 
65
	 * @return The URL of the managing document.
66
	 * @throws MalformedURLException If a URL to the managing
67
	 * document cannot be determined or created.
68
	 */
69
	public URL getURL () throws MalformedURLException;
70
71
	/**
72
	 * Adds an <code>ITaxonomyFinder</code> that the
73
	 * <code>IRegistryManager</code> can use to find
74
	 * the set of <code>Taxonomy</code> models used
75
	 * by a given <code>Registry</code> model.
76
	 * <code>IRegistryManager.save(registry)</code> needs help finding
77
	 * the <code>Taxonomy</code> models used by a <code>Registry</code>,
78
	 * if any.
79
	 * 
80
	 * @param className The name of the concrete <code>Registry<code>
81
	 * class for which the <code>ITaxonomyFinder</code> is being added.
82
	 * @param taxonomyFinder An <code>ITaxonomyFinder</code> that knows
83
	 * how to determine the set of <code>Taxonomy</code> models a given
84
	 * concrete <code>Registry</code> model is using.
85
	 * @see ITaxonomyFinder
86
	 * @see #saveRegistry(Registry)
87
	 */
88
	public void addTaxonomyFinder ( String className, ITaxonomyFinder taxonomyFinder );
89
90
	/**
91
	 * Saves a <code>Registry</code> and any <code>Taxonomy</code>
92
	 * models it references to a set of XML documents located
93
	 * relative to the index XML document as identified by
94
	 * <code>getURL()</code>, and updates the index XML document
95
	 * with references to the saved registry and taxonomy documents.
96
	 * Relative pathnames to the registry and taxonomy XML documents
97
	 * are computed by the <code>IRegistryManager</code> and cannot
98
	 * be influenced by the caller.
99
	 * <p>
100
	 * The set of referenced <code>Taxonomy</code> models, if any,
101
	 * is determined by looking up an <code>ITaxonomyFinder</code>
102
	 * for the class name of the given <code>registry</code> and
103
	 * calling its <code>taxonomies</code> method.
104
	 * If no <code>ITaxonomyFinder</code> exists for the given
105
	 * <code>registry</code>, then no <code>Taxonomy</code> models
106
	 * will be saved.  
107
	 * 
108
	 * @param registry The <code>Registry</code> model (and
109
	 * referenced <code>Taxonomy</code> models) to save.
110
	 * @return The URI identifier of the registry as returned by
111
	 * <code>registry.getId()</code>.
112
	 * @see Registry
113
	 * @see #addTaxonomyFinder(String, ITaxonomyFinder)
114
	 */
115
	public String saveRegistry ( Registry registry );
116
117
	/**
118
	 * Loads a <code>Registry</code> from a registry XML document
119
	 * identified by the given URI in the index XML document at the
120
	 * location returned by <code>getURL()</code>.
121
	 * 
122
	 * @param uri The URI identifier of the registry as returned by
123
	 * <code>registry.getId()</code>.
124
	 * @return The <code>Registry</code> model.
125
	 * @see Registry
126
	 */
127
	public Registry loadRegistry ( String uri );
128
129
	/**
130
	 * Returns an array of URI identifiers to <code>Registry</code>
131
	 * models in the index managed by this <code>IRegistryManager</code>.
132
	 * 
133
	 * @return An array of URI identifiers, possibly empty but never null,
134
	 * to registered <code>Registry</code> models.
135
	 * @see Registry
136
	 */
137
	public String[] getRegistryURIs ();
138
139
	/**
140
	 * Removes the <code>Registry</code> model identified by the
141
	 * given <code>uri</code> from the index and either keeps or
142
	 * deletes the corresponding <code>Registry</code> document
143
	 * based on the value given for <code>deleteDocument</code>.
144
	 * 
145
	 * @param uri The URI identifier of the model to delete.
146
	 * @param deleteDocument Either <code>KEEP_DOCUMENT</code>
147
	 * or <code>DELETE_DOCUMENT</code> depending on whether the
148
	 * model document should be kept or deleted.
149
	 * @see Registry
150
	 * @see #KEEP_DOCUMENT
151
	 * @see #DELETE_DOCUMENT
152
	 */
153
	public void removeRegistry ( String uri, boolean deleteDocument );
154
155
	/**
156
	 * Saves a <code>Taxonomy</code> model to an XML document
157
	 * located relative to the index XML document as identified by
158
	 * <code>getURL()</code>, and updates the index XML document
159
	 * with references to the saved taxonomy document.
160
	 * The relative pathname to the taxonomy XML document is
161
	 * computed by the <code>IRegistryManager</code> and cannot
162
	 * be influenced by the caller.
163
	 * <p>
164
	 * Note that <code>Taxonomy</code> models referenced by a
165
	 * <code>Registry</code> model will be saved as a side effect
166
	 * of calling <code>saveRegistry</code> on that model. 
167
	 * 
168
	 * @param taxonomy The <code>Taxonomy</code> model to save.
169
	 * @return The URI identifier of the taxonomy as returned by
170
	 * <code>taxonomy.getId()</code>.
171
	 * @see Taxonomy
172
	 */
173
	public String saveTaxonomy ( Taxonomy taxonomy );
174
175
	/**
176
	 * Loads a <code>Taxonomy</code> from a taxonomy XML document
177
	 * identified by the given URI in the index XML document at the
178
	 * location returned by <code>getURL()</code>.
179
	 * <p>
180
	 * Note that <code>Taxonomy</code> models referenced by a
181
	 * <code>Registry</code> model will be loaded as a side effect
182
	 * of calling <code>loadRegistry()</code> followed by
183
	 * <code>UDDIRegistryService.getTaxonomies(Registry)</code>.
184
	 * 
185
	 * @param uri The URI identifier of the taxonomy as returned by
186
	 * <code>taxonomy.getId()</code>.
187
	 * @return The <code>Taxonomy</code> model.
188
	 * @see Taxonomy
189
	 */
190
	public Taxonomy loadTaxonomy ( String uri );
191
192
	/**
193
	 * Returns an array of URI identifiers to <code>Taxonomy</code>
194
	 * models in the index managed by this <code>IRegistryManager</code>.
195
	 * 
196
	 * @return An array of URI identifiers, possibly empty but never null,
197
	 * to registered <code>Taxonomy</code> models.
198
	 * @see Taxonomy
199
	 */
200
	public String[] getTaxonomyURIs ();
201
202
	/**
203
	 * Removes the <code>Taxonomy</code> model identified by the
204
	 * given <code>uri</code> from the index and either keeps or
205
	 * deletes the corresponding <code>Taxonomy</code> document
206
	 * based on the value given for <code>deleteDocument</code>.
207
	 * 
208
	 * @param uri The URI identifier of the model to delete.
209
	 * @param deleteDocument Either <code>KEEP_DOCUMENT</code>
210
	 * or <code>DELETE_DOCUMENT</code> depending on whether the
211
	 * model document should be kept or deleted.
212
	 * @see Taxonomy
213
	 * @see #KEEP_DOCUMENT
214
	 * @see #DELETE_DOCUMENT
215
	 */
216
	public void removeTaxonomy ( String uri, boolean deleteDocument );
217
}
(-)src/org/eclipse/wst/ws/internal/registry/ITaxonomyFinder.java (+38 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.registry;
13
14
import java.util.Iterator;
15
16
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
17
18
/**
19
 * An <code>ITaxonomyFinder</code> computes the set of
20
 * <code>Taxonomy</code> models referenced or used by a
21
 * <code>Registry</code>.
22
 * @author gilberta@ca.ibm.com
23
 * @see IRegistryManager
24
 */
25
public interface ITaxonomyFinder
26
{
27
	/**
28
	 * Returns an iterator over the set of taxonomies used
29
	 * by the given <code>registry</code>. This method may
30
	 * return an empty iterator or <b>null</b> if the
31
	 * <code>Registry</code> does not reference any taxonomies.
32
	 *
33
	 * @param registry The <code>Registry</code> for which
34
	 * a set of taxonomies might be found.
35
	 * @return An iterator of taxonomies or <b>null</b>.
36
	 */
37
	public Iterator taxonomies ( Registry registry );	
38
}
(-)src/org/eclipse/wst/ws/internal/registry/RegistryManager.java (+150 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.registry;
13
14
import java.net.MalformedURLException;
15
import java.net.URL;
16
import java.util.Hashtable;
17
import java.util.Iterator;
18
19
import org.eclipse.core.runtime.CoreException;
20
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
21
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
22
23
/**
24
 * A typical implementation of <code>IRegistryManager</code>
25
 * @author cbrealey
26
 * @see IRegistryManager
27
 */
28
public class RegistryManager implements IRegistryManager
29
{
30
	private static String REGISTRY = "registry";
31
	private static String TAXONOMY = "taxonomy";
32
	private static String XML = "xml";
33
	private Hashtable taxonomyFinders_;
34
	
35
	private URL registryURL_= null;
36
	private String registryPathname_ = null;
37
38
	public RegistryManager ( URL url )
39
	{
40
		registryURL_ = url;
41
		taxonomyFinders_ = new Hashtable();
42
	}
43
44
	public RegistryManager ( String pathname )
45
	{
46
		registryPathname_ = pathname;
47
		taxonomyFinders_ = new Hashtable();
48
	}
49
50
	public URL getURL () throws MalformedURLException
51
	{
52
		if (registryURL_ == null)
53
		{
54
			registryURL_ = new URL(registryPathname_);
55
		}
56
		return registryURL_;
57
	}
58
59
	private URL getURL ( String id ) throws MalformedURLException
60
	{
61
		String baseUrl = ""; 
62
		try {
63
			URL indexUrl = getURL();
64
			String indexString = indexUrl.toString();
65
			int index = indexString.indexOf("/"); //TODO: Shouldn't this be lastIndexOf?
66
			baseUrl = indexString.substring(0,index);
67
		} catch ( MalformedURLException me ) {
68
			//TODO: Why are we suppressing this exception?
69
		}
70
		String urlString = baseUrl + id + "." + XML;
71
		return new URL(urlString);
72
	}
73
	
74
	public void addTaxonomyFinder(String className, ITaxonomyFinder taxonomyFinder)
75
	{
76
		taxonomyFinders_.put(className,taxonomyFinder);
77
	}
78
79
	public String saveRegistry ( Registry registry )
80
	{
81
		ITaxonomyFinder finder = (ITaxonomyFinder)taxonomyFinders_.get(registry.getClass().getName());
82
		RegistryService registryService = RegistryService.instance();
83
		try
84
		{
85
			URL url = getURL(REGISTRY + registry.getId());
86
			registryService.saveRegistry(url,registry);
87
			Iterator it = finder.taxonomies(registry);
88
			if (it != null)
89
			{
90
				while (it.hasNext())
91
				{
92
					Taxonomy taxonomy = (Taxonomy)it.next();	
93
					url = null; //TODO: Seems like dead code.
94
					url = getURL(TAXONOMY + taxonomy.getId());
95
					registryService.saveTaxonomy(url,taxonomy);
96
				}
97
			}
98
		}
99
		catch ( MalformedURLException me )
100
		{
101
			//TODO: Why are we suppressing this exception?
102
		}
103
		catch ( CoreException ce )
104
		{
105
			//TODO: Why are we suppressing this exception?
106
		}	
107
		return registry.getId();
108
	}
109
	
110
	public Registry loadRegistry ( String uri )
111
	{
112
		//TODO: Implement me.
113
		return null;
114
	}
115
	
116
	public String[] getRegistryURIs ()
117
	{
118
		//TODO: Implement me.
119
		return new String[0];
120
	}
121
122
	public void removeRegistry ( String uri, boolean deleteDocument )
123
	{
124
		//TODO: Implement me.
125
	}
126
127
	public String saveTaxonomy ( Taxonomy taxonomy )
128
	{
129
		//TODO: Implement me.
130
		String uri = taxonomy.getId();
131
		return uri;
132
	}
133
	
134
	public Taxonomy loadTaxonomy ( String uri )
135
	{
136
		//TODO: Implement me.
137
		return null;
138
	}
139
	
140
	public String[] getTaxonomyURIs ()
141
	{
142
		//TODO: Implement me.
143
		return new String[0];
144
	}
145
146
	public void removeTaxonomy ( String uri, boolean deleteDocument )
147
	{
148
		//TODO: Implement me.
149
	}
150
}
(-)src/org/eclipse/wst/ws/internal/registry/RegistryService.java (+338 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.registry;
13
14
import java.io.File;
15
import java.io.FileOutputStream;
16
import java.io.IOException;
17
import java.io.InputStream;
18
import java.io.OutputStream;
19
import java.net.URL;
20
import java.net.URLConnection;
21
import java.util.Hashtable;
22
23
import org.eclipse.core.resources.ResourcesPlugin;
24
import org.eclipse.core.runtime.CoreException;
25
import org.eclipse.core.runtime.IPath;
26
import org.eclipse.core.runtime.IStatus;
27
import org.eclipse.core.runtime.Path;
28
import org.eclipse.core.runtime.Status;
29
import org.eclipse.emf.common.util.URI;
30
import org.eclipse.emf.ecore.resource.Resource;
31
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
32
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryFactory;
33
import org.eclipse.wst.ws.internal.model.v10.registry.RegistryPackage;
34
import org.eclipse.wst.ws.internal.model.v10.rtindex.RTIndexPackage;
35
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
36
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyFactory;
37
import org.eclipse.wst.ws.internal.model.v10.taxonomy.TaxonomyPackage;
38
import org.eclipse.wst.ws.internal.plugin.WSPlugin;
39
40
/**
41
 * RegistryService is the starting class of the Web service registry
42
 * programming model. Call the <code>RegistryService.instance()</code>
43
 * static method to get the singleton instance of this class.
44
 * <p>
45
 * RegistryService provides factory methods for getting new
46
 * instances of <code>IRegistryManager</code> objects which,
47
 * in turn, provide the means for registering and unregistering
48
 * groups of <code>Registry</code> and <code>Taxonomy</code> models
49
 * at URL addressable locations in the filesystem or elsewhere.
50
 * <p>
51
 * RegistryService provides utility methods to ease the creation,
52
 * loading and saving raw instances of the <code>Registry</code>
53
 * and <code>Taxonomy</code> models, and to simplify the process of
54
 * composing and finding <code>Taxonomy</code> models in
55
 * <code>Registry</code> models.
56
 * <p>
57
 * A typical use of <code>RegistryService</code> and its related
58
 * classes to create and save a new family of models is:
59
 * <blockquote>
60
 * <code>
61
 * RegistryService registryService = RegistryService.instance();
62
 * MyRegistry registry = MyRegistryFactory.eINSTANCE.createMyRegistry();
63
 * // build up your registry model here
64
 * Taxonomy taxonomy = registryService.newTaxonomy();
65
 * // build up your taxonomy model here
66
 * registryService.addTaxonomy(registry,taxonomy);
67
 * IRegistryManager registryManager = registryService.getDefaultRegistryManager();
68
 * registryManager.saveRegistry(registry);
69
 * </code>
70
 * </blockquote>
71
 * @see #instance()
72
 * @see IRegistryManager
73
 * @see Registry
74
 * @see Taxonomy
75
 * @author cbrealey
76
 */
77
public class RegistryService
78
{
79
	private static RegistryService instance_;
80
	private static final String DEFAULT_INDEX_XML_FILE = "DefaultIndex.xml";
81
	private Hashtable registryManagers_ = new Hashtable();
82
	private IRegistryManager defaultRegistryManager_ = null;
83
	private GenericResourceFactory resourceFactory_ = new GenericResourceFactory();
84
85
	/**
86
	 * A RegistryService cannot be directly constructed.
87
	 * Use @link #instance() to get the singleton of this class.
88
	 */
89
	private RegistryService ()
90
	{
91
		Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("xml",resourceFactory_);
92
		RegistryPackage.eINSTANCE.getClass();
93
		TaxonomyPackage.eINSTANCE.getClass();
94
		RTIndexPackage.eINSTANCE.getClass();
95
	}
96
97
	/**
98
	 * Returns the singleton of this class.
99
	 * @return The singleton of this class.
100
	 */
101
	public static RegistryService instance ()
102
	{
103
		if (instance_ == null)
104
		{
105
			instance_ = new RegistryService();
106
		}
107
		return instance_;
108
	}
109
	
110
	/**
111
	 * Creates a default <code>IRegistryManager</code> for the system.
112
	 * @return The default <code>IRegistryManager</code> for the system.
113
	 * @see IRegistryManager
114
	 */
115
	public IRegistryManager getDefaultRegistryManager ()
116
	{
117
		if (defaultRegistryManager_ == null)
118
		{
119
			String indexFilename = WSPlugin.getDefault().getStateLocation().append(DEFAULT_INDEX_XML_FILE).toString();
120
			defaultRegistryManager_ = new RegistryManager(indexFilename);
121
		}
122
		return defaultRegistryManager_;
123
	}
124
125
	/**
126
	 * Creates a new or existing <code>IRegistryManager</code> for the given URL.
127
	 * @param url A URL to the XML document that persists
128
	 * the set of registries managed by this <code>IRegistryManager</code>.
129
	 * @return The new or existing <code>RegistryManager</code> for the given URL.
130
	 * @see IRegistryManager
131
	 */
132
	public IRegistryManager getRegistryManager ( URL url )
133
	{
134
		IRegistryManager registryManager = (IRegistryManager)registryManagers_.get(url);
135
		if (registryManager == null)
136
		{
137
			registryManager = new RegistryManager(url);
138
			registryManagers_.put(url,registryManager);
139
		}
140
		return registryManager;
141
	}
142
	
143
	/**
144
	 * Removes the <code>IRegistryManager</code> for the given URL.
145
	 * No physical resources are deleted.
146
	 * @param url A URL to the XML document that persists
147
	 * the set of registries managed by this <code>IRegistryManager</code>.
148
	 * @see IRegistryManager
149
	 */
150
	public void removeRegistryManager ( URL url )
151
	{
152
		registryManagers_.remove(url);
153
	}
154
155
	/**
156
	 * Creates and returns a new <code>Registry</code> model.
157
	 * As a general rule, this method has little actual value as
158
	 * most concrete registry models will be of types that extend
159
	 * the base Registry model, such as <code>UDDIRegistry</code>.
160
	 * For example, <code>UDDIRegistryService.newUDDIRegistry()</code>
161
	 * returns a new <code>UDDIRegistry</code>. Providers of other
162
	 * concrete types of registries may provide similar facilities.
163
	 * @return A new <code>Registry</code> model. Never returns null.
164
	 * @see Registry
165
	 * @see UDDIRegistryService#newUDDIRegistry()
166
	 */
167
	public Registry newRegistry ()
168
	{
169
		return RegistryFactory.eINSTANCE.createRegistry();
170
	}
171
	
172
	/**
173
	 * Loads the <code>Registry</code> model from an XML document.
174
	 * If loading the model of a registry that extends the base
175
	 * Registry interface and Schema, you must initialize the EMF
176
	 * eCore package (eg. <code>MyRegistryPackage.eINSTANCE</code>
177
	 * for your model before calling this load method.
178
	 * For UDDI Registry models, this is done automatically by
179
	 * calling <code>UDDIRegistryService.instance()</code>.
180
	 * @param url The URL to the XML document to load.
181
	 * @return The <code>Registry</code> model.
182
	 * @throws <code>CoreException</code> If the model cannot be loaded.
183
	 * @see Registry
184
	 * @see UDDIRegistryService#instance()
185
	 */
186
	public Registry loadRegistry ( URL url ) throws CoreException
187
	{
188
		Resource resource = resourceFactory_.createResource(URI.createURI("*.xml"));
189
		try
190
		{
191
			resource.load(getInputStreamFor(url),null);
192
		}
193
		catch (IOException e)
194
		{
195
			throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e));
196
		}
197
		org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot document = (org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot)resource.getContents().get(0);
198
		return document.getRegistry();
199
	}
200
201
	/**
202
	 * Saves the <code>Registry</code> model to an XML document.
203
	 * @param url The URL to the XML document to save.
204
	 * @param registry The <code>Registry</code> model to save.
205
	 * @throws <code>CoreException</code> If the model cannot be saved.
206
	 * @see Registry
207
	 */
208
	public void saveRegistry ( URL url, Registry registry ) throws CoreException
209
	{
210
		org.eclipse.wst.ws.internal.model.v10.registry.DocumentRoot document = RegistryFactory.eINSTANCE.createDocumentRoot();
211
		document.setRegistry(registry);
212
		Resource resource = resourceFactory_.createResource(URI.createURI("*.xml"));
213
		resource.getContents().add(document);
214
		try
215
		{
216
			resource.save(getOutputStreamFor(url),null);
217
		}
218
		catch (IOException e)
219
		{
220
			throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e));
221
		}
222
	}
223
224
	/**
225
	 * Creates and returns a new <code>Taxonomy</code> model.
226
	 * @return A new <code>Taxonomy</code> model. Never returns null.
227
	 * @see Taxonomy
228
	 */
229
	public Taxonomy newTaxonomy ()
230
	{
231
		return TaxonomyFactory.eINSTANCE.createTaxonomy();
232
	}
233
	
234
	/**
235
	 * Loads the <code>Taxonomy</code> model from an XML document.
236
	 * @param url The URL to the XML document to load.
237
	 * @return the <code>Taxonomy</code> model.
238
	 * @throws <code>CoreException</code> If the model cannot be loaded.
239
	 * @see Taxonomy
240
	 */
241
	public Taxonomy loadTaxonomy ( URL url ) throws CoreException
242
	{
243
		Resource resource = resourceFactory_.createResource(URI.createURI("*.xml"));
244
		try
245
		{
246
			resource.load(getInputStreamFor(url),null);
247
		}
248
		catch (IOException e)
249
		{
250
			throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e));
251
		}
252
		org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot document = (org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot)resource.getContents().get(0);
253
		return document.getTaxonomy();
254
	}
255
256
	/**
257
	 * Saves the <code>Taxonomy</code> model to an XML document.
258
	 * @param url The URL to the XML document to save.
259
	 * @param taxonomy The <code>Taxonomy</code> model to save.
260
	 * @throws <code>CoreException</code> If the model cannot be saved.
261
	 * @see Taxonomy
262
	 */
263
	public void saveTaxonomy ( URL url, Taxonomy taxonomy ) throws CoreException
264
	{
265
		org.eclipse.wst.ws.internal.model.v10.taxonomy.DocumentRoot document = TaxonomyFactory.eINSTANCE.createDocumentRoot();
266
		document.setTaxonomy(taxonomy);
267
		Resource resource = resourceFactory_.createResource(URI.createURI("*.xml"));
268
		resource.getContents().add(document);
269
		try
270
		{
271
			resource.save(getOutputStreamFor(url),null);
272
		}
273
		catch (IOException e)
274
		{
275
			throw new CoreException(new Status(IStatus.ERROR,WSPlugin.ID,0,"",e));
276
		}
277
	}
278
279
	/**
280
	 * Opens an <code>OutputStream</code> for writing to
281
	 * the given <code>url</code>.
282
	 * @param url The URL of the resource to write.
283
	 * @return An OuptutStream to write to.
284
	 * @throws IOException If the stream could not be opened.
285
	 */
286
	private static OutputStream getOutputStreamFor ( URL url ) throws IOException
287
	{
288
		OutputStream outputStream = null;
289
		if ("platform".equals(url.getProtocol()))
290
		{
291
			String urlFile = url.getFile().trim();
292
			IPath path = new Path(urlFile).removeFirstSegments(1);
293
			if (path.segmentCount() <= 1)
294
			{
295
				throw new IOException("The Platform URL {0} is not bound to a local, writable file.");
296
			}
297
			IPath osPath = ResourcesPlugin.getWorkspace().getRoot().getFile(path).getLocation();
298
			if (osPath == null)
299
			{
300
				throw new IOException("The Platform URL {0} is not bound to a local, writable file.");
301
			}
302
			File file = new File(osPath.toString());
303
			if (file.isDirectory())
304
			{
305
				throw new IOException("The Platform URL {0} is bound to a folder.");
306
			}
307
			outputStream = new FileOutputStream(file);
308
		}
309
		else if ("file".equals(url.getProtocol()))
310
		{
311
			File file = new File(url.getFile().trim());
312
			if (file.isDirectory())
313
			{
314
				throw new IOException("The File URL {0} is bound to a directory.");
315
			}
316
			outputStream = new FileOutputStream(file);
317
		}
318
		else
319
		{
320
			URLConnection connection = url.openConnection();
321
			connection.setDoOutput(true);
322
			outputStream = connection.getOutputStream();
323
		}
324
		return outputStream;
325
	}
326
327
	/**
328
	 * Opens an <code>InputStream</code> for reading from
329
	 * the given <code>url</code>.
330
	 * @param url The URL of the resource to read.
331
	 * @return An InputStream to read from.
332
	 * @throws IOException If the stream could not be opened.
333
	 */
334
	private static InputStream getInputStreamFor ( URL url ) throws IOException
335
	{
336
		return url.openStream();
337
	}
338
}
(-)src/org/eclipse/wst/ws/internal/registry/UDDIRegistryService.java (+145 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.registry;
13
14
import org.eclipse.emf.common.util.EList;
15
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
16
import org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy;
17
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry;
18
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryFactory;
19
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistryPackage;
20
21
/**
22
 * UDDIRegistryService is an adjunct to <code>RegistryService</code>.
23
 * Call the <code>RegistryService.instance()</code> static method to
24
 * get the singleton instance of this class.
25
 * <p>
26
 * UDDIRegistryService provides utility methods to ease the creation
27
 * of new <code>UDDIRegistry</code> models and the management of their
28
 * relationships to <code>Taxonomy</code> models.
29
 * <p>
30
 * Utility methods for loading and saving <code>Registry</code> and
31
 * <code>Taxonomy</code> models are on <code>RegistryService</code>.
32
 * Methods for managing an indexed family of <code>Registry</code> and
33
 * <code>Taxonomy</code> models are on <code>IRegistryManager</code>.
34
 * <p>
35
 * A typical use of <code>UDDIRegistryService</code> and its related
36
 * classes to create and save a new family of models is:
37
 * <blockquote>
38
 * <code>
39
 * RegistryService registryService = RegistryService.instance();
40
 * UDDIRegistryService uddiRegistryService = UDDIRegistryService.instance();
41
 * UDDIRegistry uddiRegistry = uddiRegistryService.newUDDIRegistry();
42
 * // build up your registry model here
43
 * Taxonomy taxonomy = registryService.newTaxonomy();
44
 * // build up your taxonomy model here
45
 * uddiRegistryService.addTaxonomy(uddiRegistry,taxonomy);
46
 * IRegistryManager registryManager = registryService.getDefaultRegistryManager();
47
 * registryManager.saveRegistry(uddiRegistry);
48
 * </code>
49
 * </blockquote>
50
 * @see #instance()
51
 * @see RegistryService
52
 * @see IRegistryManager
53
 * @see UDDIRegistry
54
 * @see Taxonomy
55
 * @author cbrealey
56
 */
57
public class UDDIRegistryService
58
{
59
	private static UDDIRegistryService instance_;
60
61
	/**
62
	 * A UDDIRegistryService cannot be directly constructed.
63
	 * Use @link #instance() to get the singleton of this class.
64
	 */
65
	private UDDIRegistryService ()
66
	{
67
		UDDIRegistryPackage.eINSTANCE.getClass();
68
	}
69
70
	/**
71
	 * Returns the singleton of this class.
72
	 * @return The singleton of this class.
73
	 */
74
	public static UDDIRegistryService instance ()
75
	{
76
		if (instance_ == null)
77
		{
78
			instance_ = new UDDIRegistryService();
79
		}
80
		return instance_;
81
	}
82
83
	/**
84
	 * Adds a reference from the given <code>UDDIRegistry</code>
85
	 * to the given <code>Taxonomy</code> object.
86
	 * @param uddiRegistry The <code>UDDIRegistry</code> to which the reference
87
	 * to the given <code>Taxonomy</code> object should be added.
88
	 * @param taxonomy The <code>Taxonomy</code> object to add.
89
	 * @see org.eclipse.wst.ws.internal.movel.v10.uddiregistry.UDDIRegistry
90
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry
91
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy
92
	 */
93
	public void addTaxonomy ( UDDIRegistry uddiRegistry, Taxonomy taxonomy )
94
	{
95
		EList list = uddiRegistry.getTaxonomies().getTaxonomy();
96
		list.add(taxonomy);
97
	}
98
99
	/**
100
	 * Adds references from the given <code>UDDIRegistry</code>
101
	 * to all of the given <code>Taxonomy</code> objects.
102
	 * @param uddiRegistry The <code>UDDIRegistry</code> to which references
103
	 * to the given <code>Taxonomy</code> objects should be added.
104
	 * @param taxonomies The array of <code>Taxonomy</code> objects to add.
105
	 * @see org.eclipse.wst.ws.internal.movel.v10.uddiregistry.UDDIRegistry
106
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry
107
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy
108
	 */
109
	public void addTaxonomies ( UDDIRegistry uddiRegistry, Taxonomy[] taxonomies )
110
	{
111
		EList list = uddiRegistry.getTaxonomies().getTaxonomy();
112
		for (int i=0; i<taxonomies.length; i++)
113
		{
114
			list.add(taxonomies[i]);
115
		}
116
	}
117
118
	/**
119
	 * Loads as necessary and returns an array of <code>Taxonomy</code>
120
	 * models referenced by the given <code>UDDIRegistry</code> model, or
121
	 * an empty array if there are no such taxonomies. 
122
	 * @param registry The <code>UDDIRegistry</code> whose
123
	 * <code>Taxonomy</code> models to find.
124
	 * @return The array, never null but possibly length zero,
125
	 * of <code>Taxonomy</code> models.
126
	 * @see org.eclipse.wst.ws.internal.movel.v10.uddiregistry.UDDIRegistry
127
	 * @see org.eclipse.wst.ws.internal.model.v10.registry.Registry
128
	 * @see org.eclipse.wst.ws.internal.model.v10.taxonomy.Taxonomy
129
	 */
130
	public Taxonomy[] getTaxonomies ( UDDIRegistry uddiRegistry )
131
	{
132
		EList list = uddiRegistry.getTaxonomies().getTaxonomy();
133
		return (Taxonomy[])list.toArray(new Taxonomy[0]);
134
	}
135
	
136
	/**
137
	 * Creates and returns a new <code>UDDIRegistry</code> model.
138
	 * @return A new <code>UDDIRegistry</code> model. Never returns null.
139
	 * @see Registry
140
	 */
141
	public UDDIRegistry newUDDIRegistry ()
142
	{
143
		return UDDIRegistryFactory.eINSTANCE.createUDDIRegistry();
144
	}
145
}
(-)src/org/eclipse/wst/ws/internal/registry/UDDITaxonomyFinder.java (+40 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.wst.ws.internal.registry;
13
14
import java.util.Iterator;
15
16
import org.eclipse.wst.ws.internal.model.v10.registry.Registry;
17
import org.eclipse.wst.ws.internal.model.v10.uddiregistry.UDDIRegistry;
18
19
/**
20
 * This <code>ITaxonomyFinder</code> for UDDI registries
21
 * returns an iterator over the set of <code>Taxonomy</code>
22
 * models used (supported by) the registry.
23
 * @author gilberta@ca.ibm.com
24
 * @see UDDIRegistry
25
 */
26
public class UDDITaxonomyFinder implements ITaxonomyFinder
27
{
28
	/* (non-Javadoc)
29
	 * @see org.eclipse.wst.ws.internal.registry.ITaxonomyFinder#taxonomies(org.eclipse.wst.ws.internal.model.v10.registry.Registry)
30
	 */
31
	public Iterator taxonomies ( Registry registry )
32
	{
33
		if ( registry instanceof UDDIRegistry )
34
		{
35
			UDDIRegistry uddiRegistry = (UDDIRegistry)registry;	  
36
			return uddiRegistry.getTaxonomies().getTaxonomy().iterator();
37
		}
38
		return null;
39
	}
40
}

Return to bug 118087