summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-12 04:06:41 (EDT)
committer Stephan Born2012-09-28 06:32:40 (EDT)
commit4bfb2f71b36233f308989df421f41b4bd6edaaea (patch)
treeaeed29c7d5c25919ab8c32dcfe94487b723f0a89
parent9476debaf7a37ea0cd6a63fb9fec0b0a88135fee (diff)
downloadorg.eclipse.stardust.ide-4bfb2f71b36233f308989df421f41b4bd6edaaea.zip
org.eclipse.stardust.ide-4bfb2f71b36233f308989df421f41b4bd6edaaea.tar.gz
org.eclipse.stardust.ide-4bfb2f71b36233f308989df421f41b4bd6edaaea.tar.bz2
CRNT-26125 Pepper: ModelBuilder API - Create accesspoints for MTA / UI Mashup (Primitive Accesspoints)
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@59109 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/accesspoints/StructAccessPointType.java64
1 files changed, 64 insertions, 0 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/accesspoints/StructAccessPointType.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/accesspoints/StructAccessPointType.java
new file mode 100644
index 0000000..dd7d5ac
--- /dev/null
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/accesspoints/StructAccessPointType.java
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ * Copyright (c) 2011 SunGard CSA LLC and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SunGard CSA LLC - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.stardust.model.xpdl.builder.accesspoints;
+
+import org.eclipse.stardust.engine.core.struct.IXPathMap;
+import org.eclipse.stardust.engine.core.struct.TypedXPath;
+import org.eclipse.stardust.model.xpdl.carnot.impl.AccessPointTypeImpl;
+
+public class StructAccessPointType extends AccessPointTypeImpl
+{
+ private TypedXPath xPath;
+ private IXPathMap xPathMap;
+
+ public StructAccessPointType(TypedXPath xPath, IXPathMap xPathMap)
+ {
+ this.xPath = xPath;
+ this.xPathMap = xPathMap;
+ }
+
+ public TypedXPath getXPath()
+ {
+ return xPath;
+ }
+
+ public IXPathMap getXPathMap()
+ {
+ return xPathMap;
+ }
+
+ public int hashCode()
+ {
+ final int PRIME = 31;
+ int result = 1;
+ result = PRIME * result + ((name == null) ? 0 : name.hashCode());
+ return result;
+ }
+
+ public boolean equals(Object obj)
+ {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final StructAccessPointType other = (StructAccessPointType) obj;
+ if (name == null)
+ {
+ if (other.name != null)
+ return false;
+ }
+ else if (!name.equals(other.name))
+ return false;
+ return true;
+ }
+} \ No newline at end of file