summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-05 05:35:09 (EDT)
committer Stephan Born2012-09-10 08:46:53 (EDT)
commit60e35032a30869747e698bdc0c1520b26c13c3a6 (patch)
tree17d2700aa27e3a547a2ba090db6baf3244bf71a6
parent41cb3bda875359a93676d3d3682c6ff985392061 (diff)
downloadorg.eclipse.stardust.ide-60e35032a30869747e698bdc0c1520b26c13c3a6.zip
org.eclipse.stardust.ide-60e35032a30869747e698bdc0c1520b26c13c3a6.tar.gz
org.eclipse.stardust.ide-60e35032a30869747e698bdc0c1520b26c13c3a6.tar.bz2
Added methods for updating StructuredData and Primitives.
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@58929 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
index 06ad68d..4ea062f 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/ModelBuilderFacade.java
@@ -418,12 +418,30 @@ public class ModelBuilderFacade
return data;
}
+ /**
+ * Update the type of a primitive data.
+ *
+ * @param data the primitive data to update
+ * @param primitiveTypeID the id of the primitive type to assign
+ *
+ * @return
+ */
public void updatePrimitiveData(DataType data, String primitiveTypeID)
{
AttributeUtil.setAttribute(data, PredefinedConstants.TYPE_ATT,
Type.class.getName(), primitiveTypeID);
}
+ /**
+ * Update the type declaration a structured data refers to.
+ *
+ * <p>The <i>typeFullID</i> id is provided as <b>ModelID:TypedeclarationID</b>.</p>
+ *
+ * @param data the structured data to update
+ * @param typeFullID full qualified id of the type declaration to assign to the data
+ *
+ * @return
+ */
public void updateStructuredDataType(DataType data, String typeFullID)
{
ModelType model = ModelUtils.findContainingModel(data);