tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r437778 [11/42] - in /incubator/tuscany/java: ./ buildtools/ buildtools/src/main/resources/ das/ das/rdb/ das/rdb/src/main/java/org/apache/tuscany/das/rdb/ das/rdb/src/main/java/org/apache/tuscany/das/rdb/generator/impl/ das/rdb/src/main/ja...
Date Mon, 28 Aug 2006 18:54:46 GMT
Propchange: incubator/tuscany/java/sca/tools/src/main/resources/META-INF/LICENSE.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: incubator/tuscany/java/sca/tools/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: incubator/tuscany/java/sca/tools/src/main/resources/META-INF/README.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerValue.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerValue.java?rev=437778&r1=437777&r2=437778&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerValue.java (original)
+++ incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerValue.java Mon Aug 28 11:53:49 2006
@@ -1,36 +1,36 @@
-/**
- *
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.tuscany.tools.java2wsdl.generate;
-
-import org.apache.tuscany.tools.java2wsdl.generate.customer.Customer;
-
-public class CustomerValue {
-
-	public int getValue(String custId, String stockSymbol) {
-		return 0;
-	}
-
-	public Customer getCustomerDetails(String custId) {
-		return new Customer();
-	}
-
-	public String noArgsServiceMethod()
-    {
-      return new String();   
-    }
-	
-}
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.tuscany.tools.java2wsdl.generate;
+
+import org.apache.tuscany.tools.java2wsdl.generate.customer.Customer;
+
+public class CustomerValue {
+
+	public int getValue(String custId, String stockSymbol) {
+		return 0;
+	}
+
+	public Customer getCustomerDetails(String custId) {
+		return new Customer();
+	}
+
+	public String noArgsServiceMethod()
+    {
+      return new String();   
+    }
+	
+}

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerValue.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerValue.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerWithAccount.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerWithAccount.java?rev=437778&r1=437777&r2=437778&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerWithAccount.java (original)
+++ incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerWithAccount.java Mon Aug 28 11:53:49 2006
@@ -1,47 +1,47 @@
-/**
- *
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.tuscany.tools.java2wsdl.generate;
-
-import org.apache.tuscany.tools.java2wsdl.generate.account.Account;
-import org.apache.tuscany.tools.java2wsdl.generate.customer.Customer;
-
-public class CustomerWithAccount {
-
-	private Customer customer = new Customer();
-
-	private Account[] accounts;
-
-	public int getValue(String custId, String stockSymbol) {
-		return 123;
-	}
-
-	public Customer getCustomerDetails(String custId) {
-		return customer;
-	}
-
-	public Account getCustomerAccount(String custId, String accountId) {
-		return accounts[0];
-	}
-
-	public Account[] getAccounts() {
-		return accounts;
-	}
-
-	public void setAccounts(Account[] accounts) {
-		this.accounts = accounts;
-	}
-}
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.tuscany.tools.java2wsdl.generate;
+
+import org.apache.tuscany.tools.java2wsdl.generate.account.Account;
+import org.apache.tuscany.tools.java2wsdl.generate.customer.Customer;
+
+public class CustomerWithAccount {
+
+	private Customer customer = new Customer();
+
+	private Account[] accounts;
+
+	public int getValue(String custId, String stockSymbol) {
+		return 123;
+	}
+
+	public Customer getCustomerDetails(String custId) {
+		return customer;
+	}
+
+	public Account getCustomerAccount(String custId, String accountId) {
+		return accounts[0];
+	}
+
+	public Account[] getAccounts() {
+		return accounts;
+	}
+
+	public void setAccounts(Account[] accounts) {
+		this.accounts = accounts;
+	}
+}

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerWithAccount.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/CustomerWithAccount.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/TuscanyJava2WSDLTestCase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Aug 28 11:53:49 2006
@@ -1 +1 @@
-Rev,Date
+Rev Date

Modified: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/account/Account.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/account/Account.java?rev=437778&r1=437777&r2=437778&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/account/Account.java (original)
+++ incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/account/Account.java Mon Aug 28 11:53:49 2006
@@ -1,51 +1,51 @@
-/**
- *
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.tuscany.tools.java2wsdl.generate.account;
-
-import java.math.BigDecimal;
-
-public class Account {
-	int accountType;
-
-	String accountNo;
-
-	BigDecimal balance;
-
-	public String getAccountNo() {
-		return accountNo;
-	}
-
-	public void setAccountNo(String accountNo) {
-		this.accountNo = accountNo;
-	}
-
-	public int getAccountType() {
-		return accountType;
-	}
-
-	public void setAccountType(int accountType) {
-		this.accountType = accountType;
-	}
-
-	public BigDecimal getBalance() {
-		return balance;
-	}
-
-	public void setBalance(BigDecimal balance) {
-		this.balance = balance;
-	}
-}
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.tuscany.tools.java2wsdl.generate.account;
+
+import java.math.BigDecimal;
+
+public class Account {
+	int accountType;
+
+	String accountNo;
+
+	BigDecimal balance;
+
+	public String getAccountNo() {
+		return accountNo;
+	}
+
+	public void setAccountNo(String accountNo) {
+		this.accountNo = accountNo;
+	}
+
+	public int getAccountType() {
+		return accountType;
+	}
+
+	public void setAccountType(int accountType) {
+		this.accountType = accountType;
+	}
+
+	public BigDecimal getBalance() {
+		return balance;
+	}
+
+	public void setBalance(BigDecimal balance) {
+		this.balance = balance;
+	}
+}

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/account/Account.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/account/Account.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/customer/Customer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/customer/Customer.java?rev=437778&r1=437777&r2=437778&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/customer/Customer.java (original)
+++ incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/customer/Customer.java Mon Aug 28 11:53:49 2006
@@ -1,27 +1,27 @@
-/**
- *
- *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.apache.tuscany.tools.java2wsdl.generate.customer;
-
-public class Customer {
-	private String name = "";
-
-	public int custType = 0;
-
-	public String getName() {
-		return name;
-	}
-}
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.apache.tuscany.tools.java2wsdl.generate.customer;
+
+public class Customer {
+	private String name = "";
+
+	public int custType = 0;
+
+	public String getName() {
+		return name;
+	}
+}

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/customer/Customer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/java2wsdl/generate/customer/Customer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/apache/tuscany/tools/wsdl2java/generate/WSDL2JavaGeneratorTestCase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Mon Aug 28 11:53:49 2006
@@ -1 +1 @@
-Rev,Date
+Rev Date

Modified: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/CreditReport.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/CreditReport.java?rev=437778&r1=437777&r2=437778&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/CreditReport.java (original)
+++ incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/CreditReport.java Mon Aug 28 11:53:49 2006
@@ -1,177 +1,177 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.example.creditscore.doclit;
-
-import org.apache.tuscany.sdo.impl.DataObjectImpl;
-
-import org.eclipse.emf.ecore.EClass;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Credit Report</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- *   <li>{@link org.example.creditscore.doclit.CreditReport#getScore <em>Score</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class CreditReport extends DataObjectImpl
-{
-  /**
-   * The default value of the '{@link #getScore() <em>Score</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getScore()
-   * @generated
-   * @ordered
-   */
-  protected static final int SCORE_EDEFAULT = 0;
-
-  /**
-   * The cached value of the '{@link #getScore() <em>Score</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getScore()
-   * @generated
-   * @ordered
-   */
-  protected int score = SCORE_EDEFAULT;
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  protected CreditReport()
-  {
-    super();
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  protected EClass eStaticClass()
-  {
-    return DoclitPackage.Literals.CREDIT_REPORT;
-  }
-
-  /**
-   * Returns the value of the '<em><b>Score</b></em>' attribute.
-   * <!-- begin-user-doc -->
-   * <p>
-   * If the meaning of the '<em>Score</em>' attribute isn't clear,
-   * there really should be more of a description here...
-   * </p>
-   * <!-- end-user-doc -->
-   * @return the value of the '<em>Score</em>' attribute.
-   * @see #setScore(int)
-   * @generated
-   */
-  public int getScore()
-  {
-    return score;
-  }
-
-  /**
-   * Sets the value of the '{@link org.example.creditscore.doclit.CreditReport#getScore <em>Score</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @param value the new value of the '<em>Score</em>' attribute.
-   * @see #getScore()
-   * @generated
-   */
-  public void setScore(int newScore)
-  {
-    score = newScore;
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public Object eGet(int featureID, boolean resolve, boolean coreType)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CREDIT_REPORT__SCORE:
-        return new Integer(getScore());
-    }
-    return super.eGet(featureID, resolve, coreType);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public void eSet(int featureID, Object newValue)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CREDIT_REPORT__SCORE:
-        setScore(((Integer)newValue).intValue());
-        return;
-    }
-    super.eSet(featureID, newValue);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public void eUnset(int featureID)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CREDIT_REPORT__SCORE:
-        setScore(SCORE_EDEFAULT);
-        return;
-    }
-    super.eUnset(featureID);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public boolean eIsSet(int featureID)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CREDIT_REPORT__SCORE:
-        return score != SCORE_EDEFAULT;
-    }
-    return super.eIsSet(featureID);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public String toString()
-  {
-    if (eIsProxy()) return super.toString();
-
-    StringBuffer result = new StringBuffer(super.toString());
-    result.append(" (score: ");
-    result.append(score);
-    result.append(')');
-    return result.toString();
-  }
-
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.example.creditscore.doclit;
+
+import org.apache.tuscany.sdo.impl.DataObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Credit Report</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.example.creditscore.doclit.CreditReport#getScore <em>Score</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CreditReport extends DataObjectImpl
+{
+  /**
+   * The default value of the '{@link #getScore() <em>Score</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getScore()
+   * @generated
+   * @ordered
+   */
+  protected static final int SCORE_EDEFAULT = 0;
+
+  /**
+   * The cached value of the '{@link #getScore() <em>Score</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getScore()
+   * @generated
+   * @ordered
+   */
+  protected int score = SCORE_EDEFAULT;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected CreditReport()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return DoclitPackage.Literals.CREDIT_REPORT;
+  }
+
+  /**
+   * Returns the value of the '<em><b>Score</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Score</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Score</em>' attribute.
+   * @see #setScore(int)
+   * @generated
+   */
+  public int getScore()
+  {
+    return score;
+  }
+
+  /**
+   * Sets the value of the '{@link org.example.creditscore.doclit.CreditReport#getScore <em>Score</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Score</em>' attribute.
+   * @see #getScore()
+   * @generated
+   */
+  public void setScore(int newScore)
+  {
+    score = newScore;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CREDIT_REPORT__SCORE:
+        return new Integer(getScore());
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CREDIT_REPORT__SCORE:
+        setScore(((Integer)newValue).intValue());
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CREDIT_REPORT__SCORE:
+        setScore(SCORE_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CREDIT_REPORT__SCORE:
+        return score != SCORE_EDEFAULT;
+    }
+    return super.eIsSet(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String toString()
+  {
+    if (eIsProxy()) return super.toString();
+
+    StringBuffer result = new StringBuffer(super.toString());
+    result.append(" (score: ");
+    result.append(score);
+    result.append(')');
+    return result.toString();
+  }
+
 } // CreditReport

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/CreditReport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/CreditReport.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/Customer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/Customer.java?rev=437778&r1=437777&r2=437778&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/Customer.java (original)
+++ incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/Customer.java Mon Aug 28 11:53:49 2006
@@ -1,303 +1,303 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.example.creditscore.doclit;
-
-import org.apache.tuscany.sdo.impl.DataObjectImpl;
-
-import org.eclipse.emf.ecore.EClass;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Customer</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- *   <li>{@link org.example.creditscore.doclit.Customer#getSsn <em>Ssn</em>}</li>
- *   <li>{@link org.example.creditscore.doclit.Customer#getFirstName <em>First Name</em>}</li>
- *   <li>{@link org.example.creditscore.doclit.Customer#getLastName <em>Last Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class Customer extends DataObjectImpl
-{
-  /**
-   * The default value of the '{@link #getSsn() <em>Ssn</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getSsn()
-   * @generated
-   * @ordered
-   */
-  protected static final String SSN_EDEFAULT = null;
-
-  /**
-   * The cached value of the '{@link #getSsn() <em>Ssn</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getSsn()
-   * @generated
-   * @ordered
-   */
-  protected String ssn = SSN_EDEFAULT;
-
-  /**
-   * The default value of the '{@link #getFirstName() <em>First Name</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getFirstName()
-   * @generated
-   * @ordered
-   */
-  protected static final String FIRST_NAME_EDEFAULT = null;
-
-  /**
-   * The cached value of the '{@link #getFirstName() <em>First Name</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getFirstName()
-   * @generated
-   * @ordered
-   */
-  protected String firstName = FIRST_NAME_EDEFAULT;
-
-  /**
-   * The default value of the '{@link #getLastName() <em>Last Name</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getLastName()
-   * @generated
-   * @ordered
-   */
-  protected static final String LAST_NAME_EDEFAULT = null;
-
-  /**
-   * The cached value of the '{@link #getLastName() <em>Last Name</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @see #getLastName()
-   * @generated
-   * @ordered
-   */
-  protected String lastName = LAST_NAME_EDEFAULT;
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  protected Customer()
-  {
-    super();
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  protected EClass eStaticClass()
-  {
-    return DoclitPackage.Literals.CUSTOMER;
-  }
-
-  /**
-   * Returns the value of the '<em><b>Ssn</b></em>' attribute.
-   * <!-- begin-user-doc -->
-   * <p>
-   * If the meaning of the '<em>Ssn</em>' attribute isn't clear,
-   * there really should be more of a description here...
-   * </p>
-   * <!-- end-user-doc -->
-   * @return the value of the '<em>Ssn</em>' attribute.
-   * @see #setSsn(String)
-   * @generated
-   */
-  public String getSsn()
-  {
-    return ssn;
-  }
-
-  /**
-   * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getSsn <em>Ssn</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @param value the new value of the '<em>Ssn</em>' attribute.
-   * @see #getSsn()
-   * @generated
-   */
-  public void setSsn(String newSsn)
-  {
-    ssn = newSsn;
-  }
-
-  /**
-   * Returns the value of the '<em><b>First Name</b></em>' attribute.
-   * <!-- begin-user-doc -->
-   * <p>
-   * If the meaning of the '<em>First Name</em>' attribute isn't clear,
-   * there really should be more of a description here...
-   * </p>
-   * <!-- end-user-doc -->
-   * @return the value of the '<em>First Name</em>' attribute.
-   * @see #setFirstName(String)
-   * @generated
-   */
-  public String getFirstName()
-  {
-    return firstName;
-  }
-
-  /**
-   * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getFirstName <em>First Name</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @param value the new value of the '<em>First Name</em>' attribute.
-   * @see #getFirstName()
-   * @generated
-   */
-  public void setFirstName(String newFirstName)
-  {
-    firstName = newFirstName;
-  }
-
-  /**
-   * Returns the value of the '<em><b>Last Name</b></em>' attribute.
-   * <!-- begin-user-doc -->
-   * <p>
-   * If the meaning of the '<em>Last Name</em>' attribute isn't clear,
-   * there really should be more of a description here...
-   * </p>
-   * <!-- end-user-doc -->
-   * @return the value of the '<em>Last Name</em>' attribute.
-   * @see #setLastName(String)
-   * @generated
-   */
-  public String getLastName()
-  {
-    return lastName;
-  }
-
-  /**
-   * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getLastName <em>Last Name</em>}' attribute.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @param value the new value of the '<em>Last Name</em>' attribute.
-   * @see #getLastName()
-   * @generated
-   */
-  public void setLastName(String newLastName)
-  {
-    lastName = newLastName;
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public Object eGet(int featureID, boolean resolve, boolean coreType)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CUSTOMER__SSN:
-        return getSsn();
-      case DoclitPackage.CUSTOMER__FIRST_NAME:
-        return getFirstName();
-      case DoclitPackage.CUSTOMER__LAST_NAME:
-        return getLastName();
-    }
-    return super.eGet(featureID, resolve, coreType);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public void eSet(int featureID, Object newValue)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CUSTOMER__SSN:
-        setSsn((String)newValue);
-        return;
-      case DoclitPackage.CUSTOMER__FIRST_NAME:
-        setFirstName((String)newValue);
-        return;
-      case DoclitPackage.CUSTOMER__LAST_NAME:
-        setLastName((String)newValue);
-        return;
-    }
-    super.eSet(featureID, newValue);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public void eUnset(int featureID)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CUSTOMER__SSN:
-        setSsn(SSN_EDEFAULT);
-        return;
-      case DoclitPackage.CUSTOMER__FIRST_NAME:
-        setFirstName(FIRST_NAME_EDEFAULT);
-        return;
-      case DoclitPackage.CUSTOMER__LAST_NAME:
-        setLastName(LAST_NAME_EDEFAULT);
-        return;
-    }
-    super.eUnset(featureID);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public boolean eIsSet(int featureID)
-  {
-    switch (featureID)
-    {
-      case DoclitPackage.CUSTOMER__SSN:
-        return SSN_EDEFAULT == null ? ssn != null : !SSN_EDEFAULT.equals(ssn);
-      case DoclitPackage.CUSTOMER__FIRST_NAME:
-        return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName);
-      case DoclitPackage.CUSTOMER__LAST_NAME:
-        return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName);
-    }
-    return super.eIsSet(featureID);
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public String toString()
-  {
-    if (eIsProxy()) return super.toString();
-
-    StringBuffer result = new StringBuffer(super.toString());
-    result.append(" (ssn: ");
-    result.append(ssn);
-    result.append(", firstName: ");
-    result.append(firstName);
-    result.append(", lastName: ");
-    result.append(lastName);
-    result.append(')');
-    return result.toString();
-  }
-
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.example.creditscore.doclit;
+
+import org.apache.tuscany.sdo.impl.DataObjectImpl;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Customer</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.example.creditscore.doclit.Customer#getSsn <em>Ssn</em>}</li>
+ *   <li>{@link org.example.creditscore.doclit.Customer#getFirstName <em>First Name</em>}</li>
+ *   <li>{@link org.example.creditscore.doclit.Customer#getLastName <em>Last Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class Customer extends DataObjectImpl
+{
+  /**
+   * The default value of the '{@link #getSsn() <em>Ssn</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getSsn()
+   * @generated
+   * @ordered
+   */
+  protected static final String SSN_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getSsn() <em>Ssn</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getSsn()
+   * @generated
+   * @ordered
+   */
+  protected String ssn = SSN_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getFirstName() <em>First Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getFirstName()
+   * @generated
+   * @ordered
+   */
+  protected static final String FIRST_NAME_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getFirstName() <em>First Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getFirstName()
+   * @generated
+   * @ordered
+   */
+  protected String firstName = FIRST_NAME_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getLastName() <em>Last Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getLastName()
+   * @generated
+   * @ordered
+   */
+  protected static final String LAST_NAME_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getLastName() <em>Last Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getLastName()
+   * @generated
+   * @ordered
+   */
+  protected String lastName = LAST_NAME_EDEFAULT;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected Customer()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return DoclitPackage.Literals.CUSTOMER;
+  }
+
+  /**
+   * Returns the value of the '<em><b>Ssn</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Ssn</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Ssn</em>' attribute.
+   * @see #setSsn(String)
+   * @generated
+   */
+  public String getSsn()
+  {
+    return ssn;
+  }
+
+  /**
+   * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getSsn <em>Ssn</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Ssn</em>' attribute.
+   * @see #getSsn()
+   * @generated
+   */
+  public void setSsn(String newSsn)
+  {
+    ssn = newSsn;
+  }
+
+  /**
+   * Returns the value of the '<em><b>First Name</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>First Name</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>First Name</em>' attribute.
+   * @see #setFirstName(String)
+   * @generated
+   */
+  public String getFirstName()
+  {
+    return firstName;
+  }
+
+  /**
+   * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getFirstName <em>First Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>First Name</em>' attribute.
+   * @see #getFirstName()
+   * @generated
+   */
+  public void setFirstName(String newFirstName)
+  {
+    firstName = newFirstName;
+  }
+
+  /**
+   * Returns the value of the '<em><b>Last Name</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Last Name</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Last Name</em>' attribute.
+   * @see #setLastName(String)
+   * @generated
+   */
+  public String getLastName()
+  {
+    return lastName;
+  }
+
+  /**
+   * Sets the value of the '{@link org.example.creditscore.doclit.Customer#getLastName <em>Last Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Last Name</em>' attribute.
+   * @see #getLastName()
+   * @generated
+   */
+  public void setLastName(String newLastName)
+  {
+    lastName = newLastName;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CUSTOMER__SSN:
+        return getSsn();
+      case DoclitPackage.CUSTOMER__FIRST_NAME:
+        return getFirstName();
+      case DoclitPackage.CUSTOMER__LAST_NAME:
+        return getLastName();
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CUSTOMER__SSN:
+        setSsn((String)newValue);
+        return;
+      case DoclitPackage.CUSTOMER__FIRST_NAME:
+        setFirstName((String)newValue);
+        return;
+      case DoclitPackage.CUSTOMER__LAST_NAME:
+        setLastName((String)newValue);
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CUSTOMER__SSN:
+        setSsn(SSN_EDEFAULT);
+        return;
+      case DoclitPackage.CUSTOMER__FIRST_NAME:
+        setFirstName(FIRST_NAME_EDEFAULT);
+        return;
+      case DoclitPackage.CUSTOMER__LAST_NAME:
+        setLastName(LAST_NAME_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case DoclitPackage.CUSTOMER__SSN:
+        return SSN_EDEFAULT == null ? ssn != null : !SSN_EDEFAULT.equals(ssn);
+      case DoclitPackage.CUSTOMER__FIRST_NAME:
+        return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName);
+      case DoclitPackage.CUSTOMER__LAST_NAME:
+        return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName);
+    }
+    return super.eIsSet(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String toString()
+  {
+    if (eIsProxy()) return super.toString();
+
+    StringBuffer result = new StringBuffer(super.toString());
+    result.append(" (ssn: ");
+    result.append(ssn);
+    result.append(", firstName: ");
+    result.append(firstName);
+    result.append(", lastName: ");
+    result.append(lastName);
+    result.append(')');
+    return result.toString();
+  }
+
 } // Customer

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/Customer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/Customer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/DoclitFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/DoclitFactory.java?rev=437778&r1=437777&r2=437778&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/DoclitFactory.java (original)
+++ incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/DoclitFactory.java Mon Aug 28 11:53:49 2006
@@ -1,147 +1,147 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.example.creditscore.doclit;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @generated
- */
-public class DoclitFactory extends EFactoryImpl
-{
-  /**
-   * The singleton instance of the factory.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public static final DoclitFactory eINSTANCE = init();
-
-  /**
-   * The singleton instance of the factory.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public static final DoclitFactory INSTANCE = org.example.creditscore.doclit.DoclitFactory.eINSTANCE;
-
-  /**
-   * Creates the default factory implementation.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public static DoclitFactory init()
-  {
-    try
-    {
-      DoclitFactory theDoclitFactory = (DoclitFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.example.org/creditscore/doclit/"); 
-      if (theDoclitFactory != null)
-      {
-        return theDoclitFactory;
-      }
-    }
-    catch (Exception exception)
-    {
-      EcorePlugin.INSTANCE.log(exception);
-    }
-    return new DoclitFactory();
-  }
-
-  /**
-   * Creates an instance of the factory.
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public DoclitFactory()
-  {
-    super();
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public EObject create(EClass eClass)
-  {
-    switch (eClass.getClassifierID())
-    {
-      case DoclitPackage.CREDIT_REPORT: return (EObject)createCreditReport();
-      case DoclitPackage.CUSTOMER: return (EObject)createCustomer();
-      case DoclitPackage.DOCUMENT_ROOT: return (EObject)createDocumentRoot();
-      default:
-        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
-    }
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public CreditReport createCreditReport()
-  {
-    CreditReport creditReport = new CreditReport();
-    return creditReport;
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public Customer createCustomer()
-  {
-    Customer customer = new Customer();
-    return customer;
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public EObject createDocumentRoot()
-  {
-    EObject documentRoot = super.create(DoclitPackage.Literals.DOCUMENT_ROOT);
-    return documentRoot;
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @generated
-   */
-  public DoclitPackage getDoclitPackage()
-  {
-    return (DoclitPackage)getEPackage();
-  }
-
-  /**
-   * <!-- begin-user-doc -->
-   * <!-- end-user-doc -->
-   * @deprecated
-   * @generated
-   */
-  public static DoclitPackage getPackage()
-  {
-    return DoclitPackage.eINSTANCE;
-  }
-
-} //DoclitFactory
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.example.creditscore.doclit;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DoclitFactory extends EFactoryImpl
+{
+  /**
+   * The singleton instance of the factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final DoclitFactory eINSTANCE = init();
+
+  /**
+   * The singleton instance of the factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static final DoclitFactory INSTANCE = org.example.creditscore.doclit.DoclitFactory.eINSTANCE;
+
+  /**
+   * Creates the default factory implementation.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public static DoclitFactory init()
+  {
+    try
+    {
+      DoclitFactory theDoclitFactory = (DoclitFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.example.org/creditscore/doclit/"); 
+      if (theDoclitFactory != null)
+      {
+        return theDoclitFactory;
+      }
+    }
+    catch (Exception exception)
+    {
+      EcorePlugin.INSTANCE.log(exception);
+    }
+    return new DoclitFactory();
+  }
+
+  /**
+   * Creates an instance of the factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public DoclitFactory()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public EObject create(EClass eClass)
+  {
+    switch (eClass.getClassifierID())
+    {
+      case DoclitPackage.CREDIT_REPORT: return (EObject)createCreditReport();
+      case DoclitPackage.CUSTOMER: return (EObject)createCustomer();
+      case DoclitPackage.DOCUMENT_ROOT: return (EObject)createDocumentRoot();
+      default:
+        throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+    }
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public CreditReport createCreditReport()
+  {
+    CreditReport creditReport = new CreditReport();
+    return creditReport;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Customer createCustomer()
+  {
+    Customer customer = new Customer();
+    return customer;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public EObject createDocumentRoot()
+  {
+    EObject documentRoot = super.create(DoclitPackage.Literals.DOCUMENT_ROOT);
+    return documentRoot;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public DoclitPackage getDoclitPackage()
+  {
+    return (DoclitPackage)getEPackage();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @deprecated
+   * @generated
+   */
+  public static DoclitPackage getPackage()
+  {
+    return DoclitPackage.eINSTANCE;
+  }
+
+} //DoclitFactory

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/DoclitFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/tools/src/test/java/org/example/creditscore/doclit/DoclitFactory.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message