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

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