/eclipse/plugins/org.switchyard.tools.models.switchyard1_0/src/org/switchyard/tools/models/switchyard1_0/switchyard/impl/DocumentRootImpl.java

https://github.com/jboss-switchyard/tools · Java · 1296 lines · 625 code · 98 blank · 573 comment · 27 complexity · 153845996ea97498bc605c203e8c31d6 MD5 · raw file

  1. /**
  2. * <copyright>
  3. * </copyright>
  4. *
  5. * $Id$
  6. */
  7. package org.switchyard.tools.models.switchyard1_0.switchyard.impl;
  8. import org.eclipse.emf.common.notify.Notification;
  9. import org.eclipse.emf.common.notify.NotificationChain;
  10. import org.eclipse.emf.common.util.EMap;
  11. import org.eclipse.emf.ecore.EClass;
  12. import org.eclipse.emf.ecore.EStructuralFeature;
  13. import org.eclipse.emf.ecore.EcorePackage;
  14. import org.eclipse.emf.ecore.InternalEObject;
  15. import org.eclipse.emf.ecore.impl.ENotificationImpl;
  16. import org.eclipse.emf.ecore.impl.EObjectImpl;
  17. import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
  18. import org.eclipse.emf.ecore.util.BasicFeatureMap;
  19. import org.eclipse.emf.ecore.util.EcoreEMap;
  20. import org.eclipse.emf.ecore.util.FeatureMap;
  21. import org.eclipse.emf.ecore.util.InternalEList;
  22. import org.switchyard.tools.models.switchyard1_0.switchyard.ArtifactType;
  23. import org.switchyard.tools.models.switchyard1_0.switchyard.ArtifactsType;
  24. import org.switchyard.tools.models.switchyard1_0.switchyard.DocumentRoot;
  25. import org.switchyard.tools.models.switchyard1_0.switchyard.DomainType;
  26. import org.switchyard.tools.models.switchyard1_0.switchyard.EsbInterface;
  27. import org.switchyard.tools.models.switchyard1_0.switchyard.JavaOperationSelectorType;
  28. import org.switchyard.tools.models.switchyard1_0.switchyard.PropertiesType;
  29. import org.switchyard.tools.models.switchyard1_0.switchyard.PropertyType;
  30. import org.switchyard.tools.models.switchyard1_0.switchyard.RegexOperationSelectorType;
  31. import org.switchyard.tools.models.switchyard1_0.switchyard.ResourceType;
  32. import org.switchyard.tools.models.switchyard1_0.switchyard.SecuritiesType;
  33. import org.switchyard.tools.models.switchyard1_0.switchyard.SecurityType;
  34. import org.switchyard.tools.models.switchyard1_0.switchyard.StaticOperationSelectorType;
  35. import org.switchyard.tools.models.switchyard1_0.switchyard.SwitchYardBindingType;
  36. import org.switchyard.tools.models.switchyard1_0.switchyard.SwitchYardOperationSelectorType;
  37. import org.switchyard.tools.models.switchyard1_0.switchyard.SwitchYardType;
  38. import org.switchyard.tools.models.switchyard1_0.switchyard.SwitchyardPackage;
  39. import org.switchyard.tools.models.switchyard1_0.switchyard.ThrottlingType;
  40. import org.switchyard.tools.models.switchyard1_0.switchyard.TransformType;
  41. import org.switchyard.tools.models.switchyard1_0.switchyard.TransformsType;
  42. import org.switchyard.tools.models.switchyard1_0.switchyard.ValidateType;
  43. import org.switchyard.tools.models.switchyard1_0.switchyard.ValidatesType;
  44. import org.switchyard.tools.models.switchyard1_0.switchyard.XPathOperationSelectorType;
  45. /**
  46. * <!-- begin-user-doc -->
  47. * An implementation of the model object '<em><b>Document Root</b></em>'.
  48. * <!-- end-user-doc -->
  49. * <p>
  50. * The following features are implemented:
  51. * </p>
  52. * <ul>
  53. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
  54. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
  55. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
  56. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getArtifact <em>Artifact</em>}</li>
  57. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getArtifacts <em>Artifacts</em>}</li>
  58. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getBindingSwitchyard <em>Binding Switchyard</em>}</li>
  59. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getDomain <em>Domain</em>}</li>
  60. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getInterfaceEsb <em>Interface Esb</em>}</li>
  61. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getOperationSelector <em>Operation Selector</em>}</li>
  62. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getOperationSelectorSwitchyard <em>Operation Selector Switchyard</em>}</li>
  63. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getOperationSelectorJava <em>Operation Selector Java</em>}</li>
  64. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getOperationSelectorRegex <em>Operation Selector Regex</em>}</li>
  65. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getOperationSelectorXpath <em>Operation Selector Xpath</em>}</li>
  66. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getProperties <em>Properties</em>}</li>
  67. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getProperty <em>Property</em>}</li>
  68. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getResource <em>Resource</em>}</li>
  69. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getSecurities <em>Securities</em>}</li>
  70. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getSecurity <em>Security</em>}</li>
  71. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getSwitchyard <em>Switchyard</em>}</li>
  72. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getThrottling <em>Throttling</em>}</li>
  73. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getTransform <em>Transform</em>}</li>
  74. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getTransforms <em>Transforms</em>}</li>
  75. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getValidate <em>Validate</em>}</li>
  76. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getValidates <em>Validates</em>}</li>
  77. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getClustered <em>Clustered</em>}</li>
  78. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getLoadBalance <em>Load Balance</em>}</li>
  79. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getPreferLocal <em>Prefer Local</em>}</li>
  80. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getSecurity1 <em>Security1</em>}</li>
  81. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getTarget <em>Target</em>}</li>
  82. * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getTargetNamespace <em>Target Namespace</em>}</li>
  83. * </ul>
  84. *
  85. * @generated
  86. */
  87. public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
  88. /**
  89. * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
  90. * <!-- begin-user-doc -->
  91. * <!-- end-user-doc -->
  92. * @see #getMixed()
  93. * @generated
  94. * @ordered
  95. */
  96. protected FeatureMap mixed;
  97. /**
  98. * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
  99. * <!-- begin-user-doc -->
  100. * <!-- end-user-doc -->
  101. * @see #getXMLNSPrefixMap()
  102. * @generated
  103. * @ordered
  104. */
  105. protected EMap<String, String> xMLNSPrefixMap;
  106. /**
  107. * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
  108. * <!-- begin-user-doc -->
  109. * <!-- end-user-doc -->
  110. * @see #getXSISchemaLocation()
  111. * @generated
  112. * @ordered
  113. */
  114. protected EMap<String, String> xSISchemaLocation;
  115. /**
  116. * The default value of the '{@link #getClustered() <em>Clustered</em>}' attribute.
  117. * <!-- begin-user-doc -->
  118. * <!-- end-user-doc -->
  119. * @see #getClustered()
  120. * @generated
  121. * @ordered
  122. */
  123. protected static final Object CLUSTERED_EDEFAULT = null;
  124. /**
  125. * The cached value of the '{@link #getClustered() <em>Clustered</em>}' attribute.
  126. * <!-- begin-user-doc -->
  127. * <!-- end-user-doc -->
  128. * @see #getClustered()
  129. * @generated
  130. * @ordered
  131. */
  132. protected Object clustered = CLUSTERED_EDEFAULT;
  133. /**
  134. * The default value of the '{@link #getLoadBalance() <em>Load Balance</em>}' attribute.
  135. * <!-- begin-user-doc -->
  136. * <!-- end-user-doc -->
  137. * @see #getLoadBalance()
  138. * @generated
  139. * @ordered
  140. */
  141. protected static final String LOAD_BALANCE_EDEFAULT = null;
  142. /**
  143. * The cached value of the '{@link #getLoadBalance() <em>Load Balance</em>}' attribute.
  144. * <!-- begin-user-doc -->
  145. * <!-- end-user-doc -->
  146. * @see #getLoadBalance()
  147. * @generated
  148. * @ordered
  149. */
  150. protected String loadBalance = LOAD_BALANCE_EDEFAULT;
  151. /**
  152. * The default value of the '{@link #getPreferLocal() <em>Prefer Local</em>}' attribute.
  153. * <!-- begin-user-doc -->
  154. * <!-- end-user-doc -->
  155. * @see #getPreferLocal()
  156. * @generated
  157. * @ordered
  158. */
  159. protected static final Object PREFER_LOCAL_EDEFAULT = null;
  160. /**
  161. * The cached value of the '{@link #getPreferLocal() <em>Prefer Local</em>}' attribute.
  162. * <!-- begin-user-doc -->
  163. * <!-- end-user-doc -->
  164. * @see #getPreferLocal()
  165. * @generated
  166. * @ordered
  167. */
  168. protected Object preferLocal = PREFER_LOCAL_EDEFAULT;
  169. /**
  170. * The default value of the '{@link #getSecurity1() <em>Security1</em>}' attribute.
  171. * <!-- begin-user-doc -->
  172. * <!-- end-user-doc -->
  173. * @see #getSecurity1()
  174. * @generated
  175. * @ordered
  176. */
  177. protected static final String SECURITY1_EDEFAULT = null;
  178. /**
  179. * The cached value of the '{@link #getSecurity1() <em>Security1</em>}' attribute.
  180. * <!-- begin-user-doc -->
  181. * <!-- end-user-doc -->
  182. * @see #getSecurity1()
  183. * @generated
  184. * @ordered
  185. */
  186. protected String security1 = SECURITY1_EDEFAULT;
  187. /**
  188. * The default value of the '{@link #getTarget() <em>Target</em>}' attribute.
  189. * <!-- begin-user-doc -->
  190. * <!-- end-user-doc -->
  191. * @see #getTarget()
  192. * @generated
  193. * @ordered
  194. */
  195. protected static final String TARGET_EDEFAULT = null;
  196. /**
  197. * The cached value of the '{@link #getTarget() <em>Target</em>}' attribute.
  198. * <!-- begin-user-doc -->
  199. * <!-- end-user-doc -->
  200. * @see #getTarget()
  201. * @generated
  202. * @ordered
  203. */
  204. protected String target = TARGET_EDEFAULT;
  205. /**
  206. * The default value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
  207. * <!-- begin-user-doc -->
  208. * <!-- end-user-doc -->
  209. * @see #getTargetNamespace()
  210. * @generated
  211. * @ordered
  212. */
  213. protected static final String TARGET_NAMESPACE_EDEFAULT = null;
  214. /**
  215. * The cached value of the '{@link #getTargetNamespace() <em>Target Namespace</em>}' attribute.
  216. * <!-- begin-user-doc -->
  217. * <!-- end-user-doc -->
  218. * @see #getTargetNamespace()
  219. * @generated
  220. * @ordered
  221. */
  222. protected String targetNamespace = TARGET_NAMESPACE_EDEFAULT;
  223. /**
  224. * <!-- begin-user-doc -->
  225. * <!-- end-user-doc -->
  226. * @generated
  227. */
  228. protected DocumentRootImpl() {
  229. super();
  230. }
  231. /**
  232. * <!-- begin-user-doc -->
  233. * <!-- end-user-doc -->
  234. * @generated
  235. */
  236. @Override
  237. protected EClass eStaticClass() {
  238. return SwitchyardPackage.Literals.DOCUMENT_ROOT;
  239. }
  240. /**
  241. * <!-- begin-user-doc -->
  242. * <!-- end-user-doc -->
  243. * @generated
  244. */
  245. public FeatureMap getMixed() {
  246. if (mixed == null) {
  247. mixed = new BasicFeatureMap(this, SwitchyardPackage.DOCUMENT_ROOT__MIXED);
  248. }
  249. return mixed;
  250. }
  251. /**
  252. * <!-- begin-user-doc -->
  253. * <!-- end-user-doc -->
  254. * @generated NOT
  255. */
  256. @SuppressWarnings("serial")
  257. public EMap<String, String> getXMLNSPrefixMap() {
  258. if (xMLNSPrefixMap == null) {
  259. xMLNSPrefixMap = new EcoreEMap<String, String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
  260. EStringToStringMapEntryImpl.class, null) {
  261. {
  262. initializeDelegateEList();
  263. }
  264. @Override
  265. protected void initializeDelegateEList() {
  266. delegateEList = new DelegateEObjectContainmentEList<Entry<String, String>>(entryClass,
  267. DocumentRootImpl.this, SwitchyardPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP) {
  268. @Override
  269. protected void dispatchNotification(Notification notification) {
  270. }
  271. };
  272. }
  273. };
  274. }
  275. return xMLNSPrefixMap;
  276. }
  277. /**
  278. * <!-- begin-user-doc -->
  279. * <!-- end-user-doc -->
  280. * @generated
  281. */
  282. public EMap<String, String> getXSISchemaLocation() {
  283. if (xSISchemaLocation == null) {
  284. xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, SwitchyardPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
  285. }
  286. return xSISchemaLocation;
  287. }
  288. /**
  289. * <!-- begin-user-doc -->
  290. * <!-- end-user-doc -->
  291. * @generated
  292. */
  293. public ArtifactType getArtifact() {
  294. return (ArtifactType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__ARTIFACT, true);
  295. }
  296. /**
  297. * <!-- begin-user-doc -->
  298. * <!-- end-user-doc -->
  299. * @generated
  300. */
  301. public NotificationChain basicSetArtifact(ArtifactType newArtifact, NotificationChain msgs) {
  302. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__ARTIFACT, newArtifact, msgs);
  303. }
  304. /**
  305. * <!-- begin-user-doc -->
  306. * <!-- end-user-doc -->
  307. * @generated
  308. */
  309. public void setArtifact(ArtifactType newArtifact) {
  310. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__ARTIFACT, newArtifact);
  311. }
  312. /**
  313. * <!-- begin-user-doc -->
  314. * <!-- end-user-doc -->
  315. * @generated
  316. */
  317. public ArtifactsType getArtifacts() {
  318. return (ArtifactsType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__ARTIFACTS, true);
  319. }
  320. /**
  321. * <!-- begin-user-doc -->
  322. * <!-- end-user-doc -->
  323. * @generated
  324. */
  325. public NotificationChain basicSetArtifacts(ArtifactsType newArtifacts, NotificationChain msgs) {
  326. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__ARTIFACTS, newArtifacts, msgs);
  327. }
  328. /**
  329. * <!-- begin-user-doc -->
  330. * <!-- end-user-doc -->
  331. * @generated
  332. */
  333. public void setArtifacts(ArtifactsType newArtifacts) {
  334. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__ARTIFACTS, newArtifacts);
  335. }
  336. /**
  337. * <!-- begin-user-doc -->
  338. * <!-- end-user-doc -->
  339. * @generated
  340. */
  341. public SwitchYardBindingType getBindingSwitchyard() {
  342. return (SwitchYardBindingType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__BINDING_SWITCHYARD, true);
  343. }
  344. /**
  345. * <!-- begin-user-doc -->
  346. * <!-- end-user-doc -->
  347. * @generated
  348. */
  349. public NotificationChain basicSetBindingSwitchyard(SwitchYardBindingType newBindingSwitchyard, NotificationChain msgs) {
  350. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__BINDING_SWITCHYARD, newBindingSwitchyard, msgs);
  351. }
  352. /**
  353. * <!-- begin-user-doc -->
  354. * <!-- end-user-doc -->
  355. * @generated
  356. */
  357. public DomainType getDomain() {
  358. return (DomainType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__DOMAIN, true);
  359. }
  360. /**
  361. * <!-- begin-user-doc -->
  362. * <!-- end-user-doc -->
  363. * @generated
  364. */
  365. public NotificationChain basicSetDomain(DomainType newDomain, NotificationChain msgs) {
  366. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__DOMAIN, newDomain, msgs);
  367. }
  368. /**
  369. * <!-- begin-user-doc -->
  370. * <!-- end-user-doc -->
  371. * @generated
  372. */
  373. public void setDomain(DomainType newDomain) {
  374. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__DOMAIN, newDomain);
  375. }
  376. /**
  377. * <!-- begin-user-doc -->
  378. * <!-- end-user-doc -->
  379. * @generated
  380. */
  381. public EsbInterface getInterfaceEsb() {
  382. return (EsbInterface)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__INTERFACE_ESB, true);
  383. }
  384. /**
  385. * <!-- begin-user-doc -->
  386. * <!-- end-user-doc -->
  387. * @generated
  388. */
  389. public NotificationChain basicSetInterfaceEsb(EsbInterface newInterfaceEsb, NotificationChain msgs) {
  390. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__INTERFACE_ESB, newInterfaceEsb, msgs);
  391. }
  392. /**
  393. * <!-- begin-user-doc -->
  394. * <!-- end-user-doc -->
  395. * @generated
  396. */
  397. public void setInterfaceEsb(EsbInterface newInterfaceEsb) {
  398. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__INTERFACE_ESB, newInterfaceEsb);
  399. }
  400. /**
  401. * <!-- begin-user-doc -->
  402. * <!-- end-user-doc -->
  403. * @generated
  404. */
  405. public StaticOperationSelectorType getOperationSelector() {
  406. return (StaticOperationSelectorType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR, true);
  407. }
  408. /**
  409. * <!-- begin-user-doc -->
  410. * <!-- end-user-doc -->
  411. * @generated
  412. */
  413. public NotificationChain basicSetOperationSelector(StaticOperationSelectorType newOperationSelector, NotificationChain msgs) {
  414. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR, newOperationSelector, msgs);
  415. }
  416. /**
  417. * <!-- begin-user-doc -->
  418. * <!-- end-user-doc -->
  419. * @generated
  420. */
  421. public void setOperationSelector(StaticOperationSelectorType newOperationSelector) {
  422. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR, newOperationSelector);
  423. }
  424. /**
  425. * <!-- begin-user-doc -->
  426. * <!-- end-user-doc -->
  427. * @generated
  428. */
  429. public PropertiesType getProperties() {
  430. return (PropertiesType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__PROPERTIES, true);
  431. }
  432. /**
  433. * <!-- begin-user-doc -->
  434. * <!-- end-user-doc -->
  435. * @generated
  436. */
  437. public NotificationChain basicSetProperties(PropertiesType newProperties, NotificationChain msgs) {
  438. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__PROPERTIES, newProperties, msgs);
  439. }
  440. /**
  441. * <!-- begin-user-doc -->
  442. * <!-- end-user-doc -->
  443. * @generated
  444. */
  445. public void setProperties(PropertiesType newProperties) {
  446. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__PROPERTIES, newProperties);
  447. }
  448. /**
  449. * <!-- begin-user-doc -->
  450. * <!-- end-user-doc -->
  451. * @generated
  452. */
  453. public PropertyType getProperty() {
  454. return (PropertyType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__PROPERTY, true);
  455. }
  456. /**
  457. * <!-- begin-user-doc -->
  458. * <!-- end-user-doc -->
  459. * @generated
  460. */
  461. public NotificationChain basicSetProperty(PropertyType newProperty, NotificationChain msgs) {
  462. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__PROPERTY, newProperty, msgs);
  463. }
  464. /**
  465. * <!-- begin-user-doc -->
  466. * <!-- end-user-doc -->
  467. * @generated
  468. */
  469. public void setProperty(PropertyType newProperty) {
  470. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__PROPERTY, newProperty);
  471. }
  472. /**
  473. * <!-- begin-user-doc -->
  474. * <!-- end-user-doc -->
  475. * @generated
  476. */
  477. public ResourceType getResource() {
  478. return (ResourceType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__RESOURCE, true);
  479. }
  480. /**
  481. * <!-- begin-user-doc -->
  482. * <!-- end-user-doc -->
  483. * @generated
  484. */
  485. public NotificationChain basicSetResource(ResourceType newResource, NotificationChain msgs) {
  486. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__RESOURCE, newResource, msgs);
  487. }
  488. /**
  489. * <!-- begin-user-doc -->
  490. * <!-- end-user-doc -->
  491. * @generated
  492. */
  493. public void setResource(ResourceType newResource) {
  494. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__RESOURCE, newResource);
  495. }
  496. /**
  497. * <!-- begin-user-doc -->
  498. * <!-- end-user-doc -->
  499. * @generated
  500. */
  501. public SwitchYardType getSwitchyard() {
  502. return (SwitchYardType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__SWITCHYARD, true);
  503. }
  504. /**
  505. * <!-- begin-user-doc -->
  506. * <!-- end-user-doc -->
  507. * @generated
  508. */
  509. public NotificationChain basicSetSwitchyard(SwitchYardType newSwitchyard, NotificationChain msgs) {
  510. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__SWITCHYARD, newSwitchyard, msgs);
  511. }
  512. /**
  513. * <!-- begin-user-doc -->
  514. * <!-- end-user-doc -->
  515. * @generated
  516. */
  517. public void setSwitchyard(SwitchYardType newSwitchyard) {
  518. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__SWITCHYARD, newSwitchyard);
  519. }
  520. /**
  521. * <!-- begin-user-doc -->
  522. * <!-- end-user-doc -->
  523. * @generated
  524. */
  525. public ThrottlingType getThrottling() {
  526. return (ThrottlingType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__THROTTLING, true);
  527. }
  528. /**
  529. * <!-- begin-user-doc -->
  530. * <!-- end-user-doc -->
  531. * @generated
  532. */
  533. public NotificationChain basicSetThrottling(ThrottlingType newThrottling, NotificationChain msgs) {
  534. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__THROTTLING, newThrottling, msgs);
  535. }
  536. /**
  537. * <!-- begin-user-doc -->
  538. * <!-- end-user-doc -->
  539. * @generated
  540. */
  541. public void setThrottling(ThrottlingType newThrottling) {
  542. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__THROTTLING, newThrottling);
  543. }
  544. /**
  545. * <!-- begin-user-doc -->
  546. * <!-- end-user-doc -->
  547. * @generated
  548. */
  549. public TransformType getTransform() {
  550. return (TransformType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__TRANSFORM, true);
  551. }
  552. /**
  553. * <!-- begin-user-doc -->
  554. * <!-- end-user-doc -->
  555. * @generated
  556. */
  557. public NotificationChain basicSetTransform(TransformType newTransform, NotificationChain msgs) {
  558. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__TRANSFORM, newTransform, msgs);
  559. }
  560. /**
  561. * <!-- begin-user-doc -->
  562. * <!-- end-user-doc -->
  563. * @generated
  564. */
  565. public TransformsType getTransforms() {
  566. return (TransformsType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__TRANSFORMS, true);
  567. }
  568. /**
  569. * <!-- begin-user-doc -->
  570. * <!-- end-user-doc -->
  571. * @generated
  572. */
  573. public NotificationChain basicSetTransforms(TransformsType newTransforms, NotificationChain msgs) {
  574. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__TRANSFORMS, newTransforms, msgs);
  575. }
  576. /**
  577. * <!-- begin-user-doc -->
  578. * <!-- end-user-doc -->
  579. * @generated
  580. */
  581. public void setTransforms(TransformsType newTransforms) {
  582. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__TRANSFORMS, newTransforms);
  583. }
  584. /**
  585. * <!-- begin-user-doc -->
  586. * <!-- end-user-doc -->
  587. * @generated
  588. */
  589. public ValidateType getValidate() {
  590. return (ValidateType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATE, true);
  591. }
  592. /**
  593. * <!-- begin-user-doc -->
  594. * <!-- end-user-doc -->
  595. * @generated
  596. */
  597. public NotificationChain basicSetValidate(ValidateType newValidate, NotificationChain msgs) {
  598. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATE, newValidate, msgs);
  599. }
  600. /**
  601. * <!-- begin-user-doc -->
  602. * <!-- end-user-doc -->
  603. * @generated
  604. */
  605. public ValidatesType getValidates() {
  606. return (ValidatesType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATES, true);
  607. }
  608. /**
  609. * <!-- begin-user-doc -->
  610. * <!-- end-user-doc -->
  611. * @generated
  612. */
  613. public NotificationChain basicSetValidates(ValidatesType newValidates, NotificationChain msgs) {
  614. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATES, newValidates, msgs);
  615. }
  616. /**
  617. * <!-- begin-user-doc -->
  618. * <!-- end-user-doc -->
  619. * @generated
  620. */
  621. public void setValidates(ValidatesType newValidates) {
  622. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATES, newValidates);
  623. }
  624. /**
  625. * <!-- begin-user-doc -->
  626. * <!-- end-user-doc -->
  627. * @generated
  628. */
  629. public Object getClustered() {
  630. return clustered;
  631. }
  632. /**
  633. * <!-- begin-user-doc -->
  634. * <!-- end-user-doc -->
  635. * @generated
  636. */
  637. public void setClustered(Object newClustered) {
  638. Object oldClustered = clustered;
  639. clustered = newClustered;
  640. if (eNotificationRequired())
  641. eNotify(new ENotificationImpl(this, Notification.SET, SwitchyardPackage.DOCUMENT_ROOT__CLUSTERED, oldClustered, clustered));
  642. }
  643. /**
  644. * <!-- begin-user-doc -->
  645. * <!-- end-user-doc -->
  646. * @generated
  647. */
  648. public SwitchYardOperationSelectorType getOperationSelectorSwitchyard() {
  649. return (SwitchYardOperationSelectorType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_SWITCHYARD, true);
  650. }
  651. /**
  652. * <!-- begin-user-doc -->
  653. * <!-- end-user-doc -->
  654. * @generated
  655. */
  656. public NotificationChain basicSetOperationSelectorSwitchyard(SwitchYardOperationSelectorType newOperationSelectorSwitchyard, NotificationChain msgs) {
  657. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_SWITCHYARD, newOperationSelectorSwitchyard, msgs);
  658. }
  659. /**
  660. * <!-- begin-user-doc -->
  661. * <!-- end-user-doc -->
  662. * @generated
  663. */
  664. public JavaOperationSelectorType getOperationSelectorJava() {
  665. return (JavaOperationSelectorType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_JAVA, true);
  666. }
  667. /**
  668. * <!-- begin-user-doc -->
  669. * <!-- end-user-doc -->
  670. * @generated
  671. */
  672. public NotificationChain basicSetOperationSelectorJava(JavaOperationSelectorType newOperationSelectorJava, NotificationChain msgs) {
  673. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_JAVA, newOperationSelectorJava, msgs);
  674. }
  675. /**
  676. * <!-- begin-user-doc -->
  677. * <!-- end-user-doc -->
  678. * @generated
  679. */
  680. public void setOperationSelectorJava(JavaOperationSelectorType newOperationSelectorJava) {
  681. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_JAVA, newOperationSelectorJava);
  682. }
  683. /**
  684. * <!-- begin-user-doc -->
  685. * <!-- end-user-doc -->
  686. * @generated
  687. */
  688. public RegexOperationSelectorType getOperationSelectorRegex() {
  689. return (RegexOperationSelectorType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_REGEX, true);
  690. }
  691. /**
  692. * <!-- begin-user-doc -->
  693. * <!-- end-user-doc -->
  694. * @generated
  695. */
  696. public NotificationChain basicSetOperationSelectorRegex(RegexOperationSelectorType newOperationSelectorRegex, NotificationChain msgs) {
  697. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_REGEX, newOperationSelectorRegex, msgs);
  698. }
  699. /**
  700. * <!-- begin-user-doc -->
  701. * <!-- end-user-doc -->
  702. * @generated
  703. */
  704. public void setOperationSelectorRegex(RegexOperationSelectorType newOperationSelectorRegex) {
  705. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_REGEX, newOperationSelectorRegex);
  706. }
  707. /**
  708. * <!-- begin-user-doc -->
  709. * <!-- end-user-doc -->
  710. * @generated
  711. */
  712. public XPathOperationSelectorType getOperationSelectorXpath() {
  713. return (XPathOperationSelectorType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_XPATH, true);
  714. }
  715. /**
  716. * <!-- begin-user-doc -->
  717. * <!-- end-user-doc -->
  718. * @generated
  719. */
  720. public NotificationChain basicSetOperationSelectorXpath(XPathOperationSelectorType newOperationSelectorXpath, NotificationChain msgs) {
  721. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_XPATH, newOperationSelectorXpath, msgs);
  722. }
  723. /**
  724. * <!-- begin-user-doc -->
  725. * <!-- end-user-doc -->
  726. * @generated
  727. */
  728. public void setOperationSelectorXpath(XPathOperationSelectorType newOperationSelectorXpath) {
  729. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__OPERATION_SELECTOR_XPATH, newOperationSelectorXpath);
  730. }
  731. /**
  732. * <!-- begin-user-doc -->
  733. * <!-- end-user-doc -->
  734. * @generated
  735. */
  736. public SecurityType getSecurity() {
  737. return (SecurityType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__SECURITY, true);
  738. }
  739. /**
  740. * <!-- begin-user-doc -->
  741. * <!-- end-user-doc -->
  742. * @generated
  743. */
  744. public NotificationChain basicSetSecurity(SecurityType newSecurity, NotificationChain msgs) {
  745. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__SECURITY, newSecurity, msgs);
  746. }
  747. /**
  748. * <!-- begin-user-doc -->
  749. * <!-- end-user-doc -->
  750. * @generated
  751. */
  752. public void setSecurity(SecurityType newSecurity) {
  753. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__SECURITY, newSecurity);
  754. }
  755. /**
  756. * <!-- begin-user-doc -->
  757. * <!-- end-user-doc -->
  758. * @generated
  759. */
  760. public String getTarget() {
  761. return target;
  762. }
  763. /**
  764. * <!-- begin-user-doc -->
  765. * <!-- end-user-doc -->
  766. * @generated
  767. */
  768. public void setTarget(String newTarget) {
  769. String oldTarget = target;
  770. target = newTarget;
  771. if (eNotificationRequired())
  772. eNotify(new ENotificationImpl(this, Notification.SET, SwitchyardPackage.DOCUMENT_ROOT__TARGET, oldTarget, target));
  773. }
  774. /**
  775. * <!-- begin-user-doc -->
  776. * <!-- end-user-doc -->
  777. * @generated
  778. */
  779. public String getTargetNamespace() {
  780. return targetNamespace;
  781. }
  782. /**
  783. * <!-- begin-user-doc -->
  784. * <!-- end-user-doc -->
  785. * @generated
  786. */
  787. public void setTargetNamespace(String newTargetNamespace) {
  788. String oldTargetNamespace = targetNamespace;
  789. targetNamespace = newTargetNamespace;
  790. if (eNotificationRequired())
  791. eNotify(new ENotificationImpl(this, Notification.SET, SwitchyardPackage.DOCUMENT_ROOT__TARGET_NAMESPACE, oldTargetNamespace, targetNamespace));
  792. }
  793. /**
  794. * <!-- begin-user-doc -->
  795. * <!-- end-user-doc -->
  796. * @generated
  797. */
  798. public String getLoadBalance() {
  799. return loadBalance;
  800. }
  801. /**
  802. * <!-- begin-user-doc -->
  803. * <!-- end-user-doc -->
  804. * @generated
  805. */
  806. public void setLoadBalance(String newLoadBalance) {
  807. String oldLoadBalance = loadBalance;
  808. loadBalance = newLoadBalance;
  809. if (eNotificationRequired())
  810. eNotify(new ENotificationImpl(this, Notification.SET, SwitchyardPackage.DOCUMENT_ROOT__LOAD_BALANCE, oldLoadBalance, loadBalance));
  811. }
  812. /**
  813. * <!-- begin-user-doc -->
  814. * <!-- end-user-doc -->
  815. * @generated
  816. */
  817. public Object getPreferLocal() {
  818. return preferLocal;
  819. }
  820. /**
  821. * <!-- begin-user-doc -->
  822. * <!-- end-user-doc -->
  823. * @generated
  824. */
  825. public void setPreferLocal(Object newPreferLocal) {
  826. Object oldPreferLocal = preferLocal;
  827. preferLocal = newPreferLocal;
  828. if (eNotificationRequired())
  829. eNotify(new ENotificationImpl(this, Notification.SET, SwitchyardPackage.DOCUMENT_ROOT__PREFER_LOCAL, oldPreferLocal, preferLocal));
  830. }
  831. /**
  832. * <!-- begin-user-doc -->
  833. * <!-- end-user-doc -->
  834. * @generated
  835. */
  836. public String getSecurity1() {
  837. return security1;
  838. }
  839. /**
  840. * <!-- begin-user-doc -->
  841. * <!-- end-user-doc -->
  842. * @generated
  843. */
  844. public void setSecurity1(String newSecurity1) {
  845. String oldSecurity1 = security1;
  846. security1 = newSecurity1;
  847. if (eNotificationRequired())
  848. eNotify(new ENotificationImpl(this, Notification.SET, SwitchyardPackage.DOCUMENT_ROOT__SECURITY1, oldSecurity1, security1));
  849. }
  850. /**
  851. * <!-- begin-user-doc -->
  852. * <!-- end-user-doc -->
  853. * @generated
  854. */
  855. public SecuritiesType getSecurities() {
  856. return (SecuritiesType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__SECURITIES, true);
  857. }
  858. /**
  859. * <!-- begin-user-doc -->
  860. * <!-- end-user-doc -->
  861. * @generated
  862. */
  863. public NotificationChain basicSetSecurities(SecuritiesType newSecurities, NotificationChain msgs) {
  864. return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__SECURITIES, newSecurities, msgs);
  865. }
  866. /**
  867. * <!-- begin-user-doc -->
  868. * <!-- end-user-doc -->
  869. * @generated
  870. */
  871. public void setSecurities(SecuritiesType newSecurities) {
  872. ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__SECURITIES, newSecurities);
  873. }
  874. /**
  875. * <!-- begin-user-doc -->
  876. * <!-- end-user-doc -->
  877. * @generated
  878. */
  879. @Override
  880. public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
  881. switch (featureID) {
  882. case SwitchyardPackage.DOCUMENT_ROOT__MIXED:
  883. return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
  884. case SwitchyardPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
  885. return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
  886. case SwitchyardPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
  887. return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
  888. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACT:
  889. return basicSetArtifact(null, msgs);
  890. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACTS:
  891. return basicSetArtifacts(null, msgs);
  892. case SwitchyardPackage.DOCUMENT_ROOT__BINDING_SWITCHYARD:
  893. return basicSetBindingSwitchyard(null, msgs);
  894. case SwitchyardPackage.DOCUMENT_ROOT__DOMAIN:
  895. return basicSetDomain(null, msgs);
  896. case SwitchyardPackage.DOCUMENT_ROOT__INTERFACE_ESB:
  897. return basicSetInterfaceEsb(null, msgs);
  898. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR:
  899. return basicSetOperationSelector(null, msgs);
  900. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_SWITCHYARD:
  901. return basicSetOperationSelectorSwitchyard(null, msgs);
  902. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_JAVA:
  903. return basicSetOperationSelectorJava(null, msgs);
  904. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_REGEX:
  905. return basicSetOperationSelectorRegex(null, msgs);
  906. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_XPATH:
  907. return basicSetOperationSelectorXpath(null, msgs);
  908. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTIES:
  909. return basicSetProperties(null, msgs);
  910. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTY:
  911. return basicSetProperty(null, msgs);
  912. case SwitchyardPackage.DOCUMENT_ROOT__RESOURCE:
  913. return basicSetResource(null, msgs);
  914. case SwitchyardPackage.DOCUMENT_ROOT__SECURITIES:
  915. return basicSetSecurities(null, msgs);
  916. case SwitchyardPackage.DOCUMENT_ROOT__SECURITY:
  917. return basicSetSecurity(null, msgs);
  918. case SwitchyardPackage.DOCUMENT_ROOT__SWITCHYARD:
  919. return basicSetSwitchyard(null, msgs);
  920. case SwitchyardPackage.DOCUMENT_ROOT__THROTTLING:
  921. return basicSetThrottling(null, msgs);
  922. case SwitchyardPackage.DOCUMENT_ROOT__TRANSFORM:
  923. return basicSetTransform(null, msgs);
  924. case SwitchyardPackage.DOCUMENT_ROOT__TRANSFORMS:
  925. return basicSetTransforms(null, msgs);
  926. case SwitchyardPackage.DOCUMENT_ROOT__VALIDATE:
  927. return basicSetValidate(null, msgs);
  928. case SwitchyardPackage.DOCUMENT_ROOT__VALIDATES:
  929. return basicSetValidates(null, msgs);
  930. }
  931. return super.eInverseRemove(otherEnd, featureID, msgs);
  932. }
  933. /**
  934. * <!-- begin-user-doc -->
  935. * <!-- end-user-doc -->
  936. * @generated
  937. */
  938. @Override
  939. public Object eGet(int featureID, boolean resolve, boolean coreType) {
  940. switch (featureID) {
  941. case SwitchyardPackage.DOCUMENT_ROOT__MIXED:
  942. if (coreType) return getMixed();
  943. return ((FeatureMap.Internal)getMixed()).getWrapper();
  944. case SwitchyardPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
  945. if (coreType) return getXMLNSPrefixMap();
  946. else return getXMLNSPrefixMap().map();
  947. case SwitchyardPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
  948. if (coreType) return getXSISchemaLocation();
  949. else return getXSISchemaLocation().map();
  950. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACT:
  951. return getArtifact();
  952. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACTS:
  953. return getArtifacts();
  954. case SwitchyardPackage.DOCUMENT_ROOT__BINDING_SWITCHYARD:
  955. return getBindingSwitchyard();
  956. case SwitchyardPackage.DOCUMENT_ROOT__DOMAIN:
  957. return getDomain();
  958. case SwitchyardPackage.DOCUMENT_ROOT__INTERFACE_ESB:
  959. return getInterfaceEsb();
  960. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR:
  961. return getOperationSelector();
  962. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_SWITCHYARD:
  963. return getOperationSelectorSwitchyard();
  964. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_JAVA:
  965. return getOperationSelectorJava();
  966. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_REGEX:
  967. return getOperationSelectorRegex();
  968. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_XPATH:
  969. return getOperationSelectorXpath();
  970. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTIES:
  971. return getProperties();
  972. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTY:
  973. return getProperty();
  974. case SwitchyardPackage.DOCUMENT_ROOT__RESOURCE:
  975. return getResource();
  976. case SwitchyardPackage.DOCUMENT_ROOT__SECURITIES:
  977. return getSecurities();
  978. case SwitchyardPackage.DOCUMENT_ROOT__SECURITY:
  979. return getSecurity();
  980. case SwitchyardPackage.DOCUMENT_ROOT__SWITCHYARD:
  981. return getSwitchyard();
  982. case SwitchyardPackage.DOCUMENT_ROOT__THROTTLING:
  983. return getThrottling();
  984. case SwitchyardPackage.DOCUMENT_ROOT__TRANSFORM:
  985. return getTransform();
  986. case SwitchyardPackage.DOCUMENT_ROOT__TRANSFORMS:
  987. return getTransforms();
  988. case SwitchyardPackage.DOCUMENT_ROOT__VALIDATE:
  989. return getValidate();
  990. case SwitchyardPackage.DOCUMENT_ROOT__VALIDATES:
  991. return getValidates();
  992. case SwitchyardPackage.DOCUMENT_ROOT__CLUSTERED:
  993. return getClustered();
  994. case SwitchyardPackage.DOCUMENT_ROOT__LOAD_BALANCE:
  995. return getLoadBalance();
  996. case SwitchyardPackage.DOCUMENT_ROOT__PREFER_LOCAL:
  997. return getPreferLocal();
  998. case SwitchyardPackage.DOCUMENT_ROOT__SECURITY1:
  999. return getSecurity1();
  1000. case SwitchyardPackage.DOCUMENT_ROOT__TARGET:
  1001. return getTarget();
  1002. case SwitchyardPackage.DOCUMENT_ROOT__TARGET_NAMESPACE:
  1003. return getTargetNamespace();
  1004. }
  1005. return super.eGet(featureID, resolve, coreType);
  1006. }
  1007. /**
  1008. * <!-- begin-user-doc -->
  1009. * <!-- end-user-doc -->
  1010. * @generated
  1011. */
  1012. @Override
  1013. public void eSet(int featureID, Object newValue) {
  1014. switch (featureID) {
  1015. case SwitchyardPackage.DOCUMENT_ROOT__MIXED:
  1016. ((FeatureMap.Internal)getMixed()).set(newValue);
  1017. return;
  1018. case SwitchyardPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
  1019. ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
  1020. return;
  1021. case SwitchyardPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
  1022. ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
  1023. return;
  1024. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACT:
  1025. setArtifact((ArtifactType)newValue);
  1026. return;
  1027. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACTS:
  1028. setArtifacts((ArtifactsType)newValue);
  1029. return;
  1030. case SwitchyardPackage.DOCUMENT_ROOT__DOMAIN:
  1031. setDomain((DomainType)newValue);
  1032. return;
  1033. case SwitchyardPackage.DOCUMENT_ROOT__INTERFACE_ESB:
  1034. setInterfaceEsb((EsbInterface)newValue);
  1035. return;
  1036. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR:
  1037. setOperationSelector((StaticOperationSelectorType)newValue);
  1038. return;
  1039. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_JAVA:
  1040. setOperationSelectorJava((JavaOperationSelectorType)newValue);
  1041. return;
  1042. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_REGEX:
  1043. setOperationSelectorRegex((RegexOperationSelectorType)newValue);
  1044. return;
  1045. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_XPATH:
  1046. setOperationSelectorXpath((XPathOperationSelectorType)newValue);
  1047. return;
  1048. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTIES:
  1049. setProperties((PropertiesType)newValue);
  1050. return;
  1051. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTY:
  1052. setProperty((PropertyType)newValue);
  1053. return;
  1054. case SwitchyardPackage.DOCUMENT_ROOT__RESOURCE:
  1055. setResource((ResourceType)newValue);
  1056. return;
  1057. case SwitchyardPackage.DOCUMENT_ROOT__SECURITIES:
  1058. setSecurities((SecuritiesType)newValue);
  1059. return;
  1060. case SwitchyardPackage.DOCUMENT_ROOT__SECURITY:
  1061. setSecurity((SecurityType)newValue);
  1062. return;
  1063. case SwitchyardPackage.DOCUMENT_ROOT__SWITCHYARD:
  1064. setSwitchyard((SwitchYardType)newValue);
  1065. return;
  1066. case SwitchyardPackage.DOCUMENT_ROOT__THROTTLING:
  1067. setThrottling((ThrottlingType)newValue);
  1068. return;
  1069. case SwitchyardPackage.DOCUMENT_ROOT__TRANSFORMS:
  1070. setTransforms((TransformsType)newValue);
  1071. return;
  1072. case SwitchyardPackage.DOCUMENT_ROOT__VALIDATES:
  1073. setValidates((ValidatesType)newValue);
  1074. return;
  1075. case SwitchyardPackage.DOCUMENT_ROOT__CLUSTERED:
  1076. setClustered(newValue);
  1077. return;
  1078. case SwitchyardPackage.DOCUMENT_ROOT__LOAD_BALANCE:
  1079. setLoadBalance((String)newValue);
  1080. return;
  1081. case SwitchyardPackage.DOCUMENT_ROOT__PREFER_LOCAL:
  1082. setPreferLocal(newValue);
  1083. return;
  1084. case SwitchyardPackage.DOCUMENT_ROOT__SECURITY1:
  1085. setSecurity1((String)newValue);
  1086. return;
  1087. case SwitchyardPackage.DOCUMENT_ROOT__TARGET:
  1088. setTarget((String)newValue);
  1089. return;
  1090. case SwitchyardPackage.DOCUMENT_ROOT__TARGET_NAMESPACE:
  1091. setTargetNamespace((String)newValue);
  1092. return;
  1093. }
  1094. super.eSet(featureID, newValue);
  1095. }
  1096. /**
  1097. * <!-- begin-user-doc -->
  1098. * <!-- end-user-doc -->
  1099. * @generated
  1100. */
  1101. @Override
  1102. public void eUnset(int featureID) {
  1103. switch (featureID) {
  1104. case SwitchyardPackage.DOCUMENT_ROOT__MIXED:
  1105. getMixed().clear();
  1106. return;
  1107. case SwitchyardPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
  1108. getXMLNSPrefixMap().clear();
  1109. return;
  1110. case SwitchyardPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
  1111. getXSISchemaLocation().clear();
  1112. return;
  1113. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACT:
  1114. setArtifact((ArtifactType)null);
  1115. return;
  1116. case SwitchyardPackage.DOCUMENT_ROOT__ARTIFACTS:
  1117. setArtifacts((ArtifactsType)null);
  1118. return;
  1119. case SwitchyardPackage.DOCUMENT_ROOT__DOMAIN:
  1120. setDomain((DomainType)null);
  1121. return;
  1122. case SwitchyardPackage.DOCUMENT_ROOT__INTERFACE_ESB:
  1123. setInterfaceEsb((EsbInterface)null);
  1124. return;
  1125. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR:
  1126. setOperationSelector((StaticOperationSelectorType)null);
  1127. return;
  1128. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_JAVA:
  1129. setOperationSelectorJava((JavaOperationSelectorType)null);
  1130. return;
  1131. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_REGEX:
  1132. setOperationSelectorRegex((RegexOperationSelectorType)null);
  1133. return;
  1134. case SwitchyardPackage.DOCUMENT_ROOT__OPERATION_SELECTOR_XPATH:
  1135. setOperationSelectorXpath((XPathOperationSelectorType)null);
  1136. return;
  1137. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTIES:
  1138. setProperties((PropertiesType)null);
  1139. return;
  1140. case SwitchyardPackage.DOCUMENT_ROOT__PROPERTY:
  1141. setProperty((PropertyType)null);
  1142. return;
  1143. case SwitchyardPackage.DOCUMENT_ROOT__RESOURCE:
  1144. setResource((ResourceType)null);
  1145. return;
  1146. case SwitchyardPackage.DOCUMENT_ROOT__SECURITIES:
  1147. setSecurities((SecuritiesType)null);
  1148. return;
  1149. case SwitchyardPackage.DOCUMENT_ROOT__SECURITY:
  1150. setSecurity((SecurityType)null);
  1151. return;
  1152. case SwitchyardPackage.DOCUMENT_ROOT__SWITCHYARD:
  1153. setSwitchyard((SwitchYardType)null);
  1154. return;
  1155. case SwitchyardPackage.DOCUMENT_ROOT__THROTTLING:
  1156. setThrottling((ThrottlingType)null);
  1157. return;
  1158. case SwitchyardPackage.DOCUMENT_ROOT__TRANSFORMS:
  1159. setTransforms((TransformsType)null);
  1160. return;
  1161. case SwitchyardPackage.DOCUMENT_ROOT__VALIDATES:
  1162. setValidates((ValidatesType)null);
  1163. return;
  1164. case SwitchyardPackage.DOCUMENT_ROOT__CLUSTERED:
  1165. setClustered(CLUSTERED_EDEFAULT);
  1166. return;
  1167. case SwitchyardPackage.DOCUMENT_ROOT__LOAD_BALANCE:
  1168. setLoadBalance(LOAD_BALANCE_EDEFAULT);
  1169. return;
  1170. case SwitchyardPackage.DOCUMENT_ROOT__PREFER_LOCAL:
  1171. setPreferLocal(PREFER_LOCAL_EDEFAULT);
  1172. return;
  1173. case SwitchyardPackage.DOCUMENT_ROOT__SECURITY1:
  1174. setSecurity1(SECURITY1_EDEFAULT);
  1175. return;
  1176. case SwitchyardPackage.DOCUMENT_ROOT__TARGET:
  1177. setTarget(TARGET_EDEFAULT);
  1178. return;
  1179. case SwitchyardPackage.DOCUMENT_ROOT__TARGET_NAMESPACE:
  1180. setTargetNamespace(TARGET_NAMESPACE_EDEFAULT);
  1181. return;
  1182. }
  1183. super.eUnset(featureID);
  1184. }
  1185. /**
  1186. * <!-- begin-user-doc -->
  1187. * <!-- end-user-doc -->
  1188. * @generated
  1189. */
  1190. @Override
  1191. public boolean eIsSet(int featureID) {
  1192. switch (featureID) {
  1193. case SwitchyardPackage.DOCUMENT_ROOT__MIXED:
  1194. return mixed != null && !mixed.isEmpty();
  1195. case SwitchyardPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
  1196. return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
  1197. case SwitchyardPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
  1198. return xSISchemaLocation != null