From c993ba575bdd1530b7bbc0c6a19c32e66fce4b89 Mon Sep 17 00:00:00 2001
From: lresende
- * The following features are supported:
- *
- *
- *
"0"
.
- *
- * - * If the meaning of the 'Account Num' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Account Num' attribute. - * @see #isSetAccountNum() - * @see #unsetAccountNum() - * @see #setAccountNum(int) - * @generated - */ - int getAccountNum(); - - /** - * Sets the value of the '{@link com.example.customer.Account#getAccountNum Account Num}' attribute. - * - * - * @param value the new value of the 'Account Num' attribute. - * @see #isSetAccountNum() - * @see #unsetAccountNum() - * @see #getAccountNum() - * @generated - */ - void setAccountNum(int value); - - /** - * Unsets the value of the '{@link com.example.customer.Account#getAccountNum Account Num}' attribute. - * - * - * @see #isSetAccountNum() - * @see #getAccountNum() - * @see #setAccountNum(int) - * @generated - */ - void unsetAccountNum(); - - /** - * Returns whether the value of the '{@link com.example.customer.Account#getAccountNum Account Num}' attribute is set. - * - * - * @return whether the value of the 'Account Num' attribute is set. - * @see #unsetAccountNum() - * @see #getAccountNum() - * @see #setAccountNum(int) - * @generated - */ - boolean isSetAccountNum(); - -} // Account diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/Customer.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/Customer.java deleted file mode 100644 index 213afd0da8..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/Customer.java +++ /dev/null @@ -1,144 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.customer; - -import java.io.Serializable; - -/** - * - * A representation of the model object 'Customer'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Account' containment reference isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Account' containment reference. - * @see #isSetAccount() - * @see #unsetAccount() - * @see #setAccount(Account) - * @generated - */ - Account getAccount(); - - /** - * Sets the value of the '{@link com.example.customer.Customer#getAccount Account}' containment reference. - * - * - * @param value the new value of the 'Account' containment reference. - * @see #isSetAccount() - * @see #unsetAccount() - * @see #getAccount() - * @generated - */ - void setAccount(Account value); - - /** - * Unsets the value of the '{@link com.example.customer.Customer#getAccount Account}' containment reference. - * - * - * @see #isSetAccount() - * @see #getAccount() - * @see #setAccount(Account) - * @generated - */ - void unsetAccount(); - - /** - * Returns whether the value of the '{@link com.example.customer.Customer#getAccount Account}' containment reference is set. - * - * - * @return whether the value of the 'Account' containment reference is set. - * @see #unsetAccount() - * @see #getAccount() - * @see #setAccount(Account) - * @generated - */ - boolean isSetAccount(); - - /** - * Returns the value of the 'First Name' attribute. - * - *- * If the meaning of the 'First Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'First Name' attribute. - * @see #isSetFirstName() - * @see #unsetFirstName() - * @see #setFirstName(String) - * @generated - */ - String getFirstName(); - - /** - * Sets the value of the '{@link com.example.customer.Customer#getFirstName First Name}' attribute. - * - * - * @param value the new value of the 'First Name' attribute. - * @see #isSetFirstName() - * @see #unsetFirstName() - * @see #getFirstName() - * @generated - */ - void setFirstName(String value); - - /** - * Unsets the value of the '{@link com.example.customer.Customer#getFirstName First Name}' attribute. - * - * - * @see #isSetFirstName() - * @see #getFirstName() - * @see #setFirstName(String) - * @generated - */ - void unsetFirstName(); - - /** - * Returns whether the value of the '{@link com.example.customer.Customer#getFirstName First Name}' attribute is set. - * - * - * @return whether the value of the 'First Name' attribute is set. - * @see #unsetFirstName() - * @see #getFirstName() - * @see #setFirstName(String) - * @generated - */ - boolean isSetFirstName(); - -} // Customer diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/CustomerFactory.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/CustomerFactory.java deleted file mode 100644 index 59f94f673a..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/CustomerFactory.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.customer; - -import commonj.sdo.helper.HelperContext; - - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @generated - */ -public interface CustomerFactory -{ - - /** - * The singleton instance of the factory. - * - * - * @generated - */ - CustomerFactory INSTANCE = com.example.customer.impl.CustomerFactoryImpl.init(); - - /** - * Returns a new object of class 'Account'. - * - * - * @return a new object of class 'Account'. - * @generated - */ - Account createAccount(); - - /** - * Returns a new object of class 'Customer'. - * - * - * @return a new object of class 'Customer'. - * @generated - */ - Customer createCustomer(); - - /** - * Registers the types supported by this Factory within the supplied scope.argument - * - * - * @param scope an instance of HelperContext used to manage the scoping of types. - * @generated - */ - public void register(HelperContext scope); - -} //CustomerFactory diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/impl/AccountImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/impl/AccountImpl.java deleted file mode 100644 index a5d03e0b25..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/customer/impl/AccountImpl.java +++ /dev/null @@ -1,256 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.customer.impl; - -import com.example.customer.Account; -import com.example.customer.CustomerFactory; - -import commonj.sdo.Type; - -import org.apache.tuscany.sdo.impl.DataObjectBase; - -/** - * - * An implementation of the model object 'Account'. - * - *- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are supported: - *
- * If the meaning of the 'Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Name' attribute. - * @see #isSetName() - * @see #unsetName() - * @see #setName(String) - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link com.example.extensible.customer.CustomerType#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #isSetName() - * @see #unsetName() - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Unsets the value of the '{@link com.example.extensible.customer.CustomerType#getName Name}' attribute. - * - * - * @see #isSetName() - * @see #getName() - * @see #setName(String) - * @generated - */ - void unsetName(); - - /** - * Returns whether the value of the '{@link com.example.extensible.customer.CustomerType#getName Name}' attribute is set. - * - * - * @return whether the value of the 'Name' attribute is set. - * @see #unsetName() - * @see #getName() - * @see #setName(String) - * @generated - */ - boolean isSetName(); - - /** - * Returns the value of the 'Number' attribute. - * - *- * If the meaning of the 'Number' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Number' attribute. - * @see #isSetNumber() - * @see #unsetNumber() - * @see #setNumber(BigInteger) - * @generated - */ - BigInteger getNumber(); - - /** - * Sets the value of the '{@link com.example.extensible.customer.CustomerType#getNumber Number}' attribute. - * - * - * @param value the new value of the 'Number' attribute. - * @see #isSetNumber() - * @see #unsetNumber() - * @see #getNumber() - * @generated - */ - void setNumber(BigInteger value); - - /** - * Unsets the value of the '{@link com.example.extensible.customer.CustomerType#getNumber Number}' attribute. - * - * - * @see #isSetNumber() - * @see #getNumber() - * @see #setNumber(BigInteger) - * @generated - */ - void unsetNumber(); - - /** - * Returns whether the value of the '{@link com.example.extensible.customer.CustomerType#getNumber Number}' attribute is set. - * - * - * @return whether the value of the 'Number' attribute is set. - * @see #unsetNumber() - * @see #getNumber() - * @see #setNumber(BigInteger) - * @generated - */ - boolean isSetNumber(); - - /** - * Returns the value of the 'Info' containment reference. - * - *- * If the meaning of the 'Info' containment reference isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Info' containment reference. - * @see #isSetInfo() - * @see #unsetInfo() - * @see #setInfo(InfoType) - * @generated - */ - InfoType getInfo(); - - /** - * Sets the value of the '{@link com.example.extensible.customer.CustomerType#getInfo Info}' containment reference. - * - * - * @param value the new value of the 'Info' containment reference. - * @see #isSetInfo() - * @see #unsetInfo() - * @see #getInfo() - * @generated - */ - void setInfo(InfoType value); - - /** - * Unsets the value of the '{@link com.example.extensible.customer.CustomerType#getInfo Info}' containment reference. - * - * - * @see #isSetInfo() - * @see #getInfo() - * @see #setInfo(InfoType) - * @generated - */ - void unsetInfo(); - - /** - * Returns whether the value of the '{@link com.example.extensible.customer.CustomerType#getInfo Info}' containment reference is set. - * - * - * @return whether the value of the 'Info' containment reference is set. - * @see #unsetInfo() - * @see #getInfo() - * @see #setInfo(InfoType) - * @generated - */ - boolean isSetInfo(); - -} // CustomerType diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/CustomersType.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/CustomersType.java deleted file mode 100644 index 5d24e228b2..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/CustomersType.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.extensible.customer; - -import java.io.Serializable; - -import java.util.List; - -/** - * - * A representation of the model object 'Customers Type'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Customer' containment reference list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Customer' containment reference list. - * @generated - */ - List getCustomer(); - -} // CustomersType diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/InfoType.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/InfoType.java deleted file mode 100644 index 8bda4f74b2..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/InfoType.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.extensible.customer; - -import java.io.Serializable; - -/** - * - * A representation of the model object 'Info Type'. - * - * - * - * @extends Serializable - * @generated - */ -public interface InfoType extends Serializable -{ -} // InfoType diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/impl/CustomerFactoryImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/impl/CustomerFactoryImpl.java deleted file mode 100644 index 67bc859536..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/impl/CustomerFactoryImpl.java +++ /dev/null @@ -1,410 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.extensible.customer.impl; - -import commonj.sdo.helper.HelperContext; -import org.apache.tuscany.sdo.helper.TypeHelperImpl; - -import com.example.extensible.customer.*; - -import commonj.sdo.DataObject; -import commonj.sdo.Property; -import commonj.sdo.Type; - -import org.apache.tuscany.sdo.impl.FactoryBase; - -import org.apache.tuscany.sdo.model.ModelFactory; - -import org.apache.tuscany.sdo.model.impl.ModelFactoryImpl; - -/** - * - * An implementation of the model Factory. - * Generator information: - * patternVersion=1.2; - * - * @generated - */ -public class CustomerFactoryImpl extends FactoryBase implements CustomerFactory -{ - - /** - * The package namespace URI. - * - * - * @generated - */ - public static final String NAMESPACE_URI = "http://www.example.com/extensible/customer"; - - /** - * The package namespace name. - * - * - * @generated - */ - public static final String NAMESPACE_PREFIX = "customer"; - - /** - * The version of the generator pattern used to generate this class. - * - * - * @generated - */ - public static final String PATTERN_VERSION = "1.2"; - - public static final int CUSTOMERS_TYPE = 1; - public static final int CUSTOMER_TYPE = 2; - public static final int INFO_TYPE = 3; - public static final int CUST_NAME_TYPE = 4; - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public CustomerFactoryImpl() - { - super(NAMESPACE_URI, NAMESPACE_PREFIX, "com.example.extensible.customer"); - } - - /** - * Registers the Factory instance so that it is available within the supplied scope. - * @argument scope a HelperContext instance that will make the types supported by this Factory available. - * - * - * @generated - */ - public void register(HelperContext scope) - { - if(scope == null) { - throw new IllegalArgumentException("Scope can not be null"); - } - - //Register dependent packages with provided scope - ModelFactory.INSTANCE.register(scope); - - // Initialize this package - TypeHelperImpl th = (TypeHelperImpl)scope.getTypeHelper(); - th.getExtendedMetaData().putPackage(NAMESPACE_URI, this); - } - - /** - * - * - * @generated - */ - public DataObject create(int typeNumber) - { - switch (typeNumber) - { - case CUSTOMERS_TYPE: return (DataObject)createCustomersType(); - case CUSTOMER_TYPE: return (DataObject)createCustomerType(); - case INFO_TYPE: return (DataObject)createInfoType(); - default: - return super.create(typeNumber); - } - } - - /** - * - * - * @generated - */ - public Object createFromString(int typeNumber, String initialValue) - { - switch (typeNumber) - { - case CUST_NAME_TYPE: - return createCustNameTypeFromString(initialValue); - default: - throw new IllegalArgumentException("The type number '" + typeNumber + "' is not a valid datatype"); - } - } - - /** - * - * - * @generated - */ - public String convertToString(int typeNumber, Object instanceValue) - { - switch (typeNumber) - { - case CUST_NAME_TYPE: - return convertCustNameTypeToString(instanceValue); - default: - throw new IllegalArgumentException("The type number '" + typeNumber + "' is not a valid datatype"); - } - } - /** - * - * - * @generated - */ - public CustomersType createCustomersType() - { - CustomersTypeImpl customersType = new CustomersTypeImpl(); - return customersType; - } - /** - * - * - * @generated - */ - public CustomerType createCustomerType() - { - CustomerTypeImpl customerType = new CustomerTypeImpl(); - return customerType; - } - /** - * - * - * @generated - */ - public InfoType createInfoType() - { - InfoTypeImpl infoType = new InfoTypeImpl(); - return infoType; - } - - // Following creates and initializes SDO metadata for the supported types. - protected Type customersTypeType = null; - - public Type getCustomersType() - { - return customersTypeType; - } - - protected Type customerTypeType = null; - - public Type getCustomerType() - { - return customerTypeType; - } - - protected Type infoTypeType = null; - - public Type getInfoType() - { - return infoTypeType; - } - - protected Type custNameTypeType = null; - - public Type getCustNameType() - { - return custNameTypeType; - } - - - private static CustomerFactoryImpl instance = null; - public static CustomerFactoryImpl init() - { - if (instance != null ) return instance; - instance = new CustomerFactoryImpl(); - - // Initialize dependent packages - ModelFactory ModelFactoryInstance = ModelFactory.INSTANCE; - - // Create package meta-data objects - instance.createMetaData(); - - // Initialize created meta-data - instance.initializeMetaData(); - - // Mark meta-data to indicate it can't be changed - //theCustomerFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ???? - - return instance; - } - - private boolean isCreated = false; - - public void createMetaData() - { - if (isCreated) return; - isCreated = true; - - // Create types and their properties - customersTypeType = createType(false, CUSTOMERS_TYPE); - createProperty(false, customersTypeType,CustomersTypeImpl.INTERNAL_CUSTOMER); - customerTypeType = createType(false, CUSTOMER_TYPE); - createProperty(true, customerTypeType,CustomerTypeImpl.INTERNAL_NAME); - createProperty(true, customerTypeType,CustomerTypeImpl.INTERNAL_NUMBER); - createProperty(false, customerTypeType,CustomerTypeImpl.INTERNAL_INFO); - infoTypeType = createType(false, INFO_TYPE); - - // Create data types - custNameTypeType = createType(true, CUST_NAME_TYPE ); - } - - private boolean isInitialized = false; - - public void initializeMetaData() - { - if (isInitialized) return; - isInitialized = true; - - // Obtain other dependent packages - ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)ModelFactory.INSTANCE; - Property property = null; - - // Add supertypes to types - - // Initialize types and properties - initializeType(customersTypeType, CustomersType.class, "CustomersType", false); - property = getLocalProperty(customersTypeType, 0); - initializeProperty(property, this.getCustomerType(), "customer", null, 1, -1, CustomersType.class, false, false, false, true , null); - - initializeType(customerTypeType, CustomerType.class, "CustomerType", false); - property = getLocalProperty(customerTypeType, 0); - initializeProperty(property, this.getCustNameType(), "name", null, 1, 1, CustomerType.class, false, true, false); - - property = getLocalProperty(customerTypeType, 1); - initializeProperty(property, theModelPackageImpl.getInteger(), "number", null, 1, 1, CustomerType.class, false, true, false); - - property = getLocalProperty(customerTypeType, 2); - initializeProperty(property, this.getInfoType(), "info", null, 1, 1, CustomerType.class, false, true, false, true , null); - - initializeType(infoTypeType, InfoType.class, "InfoType", false); - // Initialize data types - initializeType(custNameTypeType, String.class, "CustNameType", true, false); - - createXSDMetaData(theModelPackageImpl); - } - - protected void createXSDMetaData(ModelFactoryImpl theModelPackageImpl) - { - super.initXSD(); - - Property property = null; - - - addXSDMapping - (customersTypeType, - new String[] - { - "name", "CustomersType", - "kind", "elementOnly" - }); - - addXSDMapping - (getProperty(customersTypeType, CustomersTypeImpl.INTERNAL_CUSTOMER), - new String[] - { - "kind", "element", - "name", "customer", - "namespace", "##targetNamespace" - }); - - addXSDMapping - (customerTypeType, - new String[] - { - "name", "CustomerType", - "kind", "elementOnly" - }); - - addXSDMapping - (getProperty(customerTypeType, CustomerTypeImpl.INTERNAL_NAME), - new String[] - { - "kind", "element", - "name", "name", - "namespace", "##targetNamespace" - }); - - addXSDMapping - (getProperty(customerTypeType, CustomerTypeImpl.INTERNAL_NUMBER), - new String[] - { - "kind", "element", - "name", "number", - "namespace", "##targetNamespace" - }); - - addXSDMapping - (getProperty(customerTypeType, CustomerTypeImpl.INTERNAL_INFO), - new String[] - { - "kind", "element", - "name", "info" - }); - - property = createGlobalProperty - ("customer", - this.getCustomerType(), - new String[] - { - "kind", "element", - "name", "customer", - "namespace", "##targetNamespace" - }); - - property = createGlobalProperty - ("customers", - this.getCustomersType(), - new String[] - { - "kind", "element", - "name", "customers", - "namespace", "##targetNamespace" - }); - - addXSDMapping - (infoTypeType, - new String[] - { - "name", "InfoType", - "kind", "empty" - }); - - addXSDMapping - (custNameTypeType, - new String[] - { - "name", "CustNameType", - "baseType", "commonj.sdo#String" - }); - - } - - /** - * - * - * @generated - */ - public String createCustNameTypeFromString(String initialValue) - { - return (String)((ModelFactoryImpl)ModelFactory.INSTANCE).createStringFromString(initialValue); - } - - /** - * - * - * @generated - */ - public String convertCustNameTypeToString(Object instanceValue) - { - return ((ModelFactoryImpl)ModelFactory.INSTANCE).convertStringToString(instanceValue); - } - -} //CustomerFactoryImpl diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/impl/CustomerTypeImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/impl/CustomerTypeImpl.java deleted file mode 100644 index 216f1ba9ff..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/extensible/customer/impl/CustomerTypeImpl.java +++ /dev/null @@ -1,524 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.extensible.customer.impl; - -import com.example.extensible.customer.CustomerFactory; -import com.example.extensible.customer.CustomerType; -import com.example.extensible.customer.InfoType; - -import commonj.sdo.Type; - -import java.math.BigInteger; - -import org.apache.tuscany.sdo.impl.DataObjectBase; - -/** - * - * An implementation of the model object 'Type'. - * - *- * The following features are implemented: - *
- * The following features are implemented: - *
- *
- * - * @generated - */ -public class InfoTypeImpl extends DataObjectBase implements InfoType -{ - - public final static int SDO_PROPERTY_COUNT = 0; - - public final static int EXTENDED_PROPERTY_COUNT = 0; - - - /** - * The number of properties for this type. - * - * - * @generated - * @ordered - */ - public final static int INTERNAL_PROPERTY_COUNT = 0; - - protected int internalConvertIndex(int internalIndex) - { - switch (internalIndex) - { - } - return super.internalConvertIndex(internalIndex); - } - - - /** - * - * - * @generated - */ - public InfoTypeImpl() - { - super(); - } - - /** - * - * - * @generated - */ - public Type getStaticType() - { - return ((CustomerFactoryImpl)CustomerFactory.INSTANCE).getInfoType(); - } - -} //InfoTypeImpl diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/noInterfaces/simple/Quote.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/noInterfaces/simple/Quote.java deleted file mode 100644 index f01784049f..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/noInterfaces/simple/Quote.java +++ /dev/null @@ -1,1237 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.noInterfaces.simple; - -import commonj.sdo.Type; - -import java.io.Serializable; - -import java.math.BigDecimal; - -import java.util.Collection; -import java.util.List; - -import org.apache.tuscany.sdo.impl.DataObjectBase; - -/** - * - * A representation of the model object 'Quote'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Symbol' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #setSymbol(String) - * @generated - */ - public String getSymbol() - { - return symbol; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getSymbol Symbol}' attribute. - * - * - * @param value the new value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #getSymbol() - * @generated - */ - public void setSymbol(String newSymbol) - { - String oldSymbol = symbol; - symbol = newSymbol; - boolean oldSymbol_set_ = symbol_set_; - symbol_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_SYMBOL, oldSymbol, symbol, !oldSymbol_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getSymbol Symbol}' attribute. - * - * - * @see #isSetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - public void unsetSymbol() - { - String oldSymbol = symbol; - boolean oldSymbol_set_ = symbol_set_; - symbol = SYMBOL_DEFAULT_; - symbol_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_SYMBOL, oldSymbol, SYMBOL_DEFAULT_, oldSymbol_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getSymbol Symbol}' attribute is set. - * - * - * @return whether the value of the 'Symbol' attribute is set. - * @see #unsetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - public boolean isSetSymbol() - { - return symbol_set_; - } - - /** - * Returns the value of the 'Company Name' attribute. - * - *- * If the meaning of the 'Company Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #setCompanyName(String) - * @generated - */ - public String getCompanyName() - { - return companyName; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getCompanyName Company Name}' attribute. - * - * - * @param value the new value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #getCompanyName() - * @generated - */ - public void setCompanyName(String newCompanyName) - { - String oldCompanyName = companyName; - companyName = newCompanyName; - boolean oldCompanyName_set_ = companyName_set_; - companyName_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_COMPANY_NAME, oldCompanyName, companyName, !oldCompanyName_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getCompanyName Company Name}' attribute. - * - * - * @see #isSetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - public void unsetCompanyName() - { - String oldCompanyName = companyName; - boolean oldCompanyName_set_ = companyName_set_; - companyName = COMPANY_NAME_DEFAULT_; - companyName_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_COMPANY_NAME, oldCompanyName, COMPANY_NAME_DEFAULT_, oldCompanyName_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getCompanyName Company Name}' attribute is set. - * - * - * @return whether the value of the 'Company Name' attribute is set. - * @see #unsetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - public boolean isSetCompanyName() - { - return companyName_set_; - } - - /** - * Returns the value of the 'Price' attribute. - * - *- * If the meaning of the 'Price' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - public BigDecimal getPrice() - { - return price; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getPrice Price}' attribute. - * - * - * @param value the new value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #getPrice() - * @generated - */ - public void setPrice(BigDecimal newPrice) - { - BigDecimal oldPrice = price; - price = newPrice; - boolean oldPrice_set_ = price_set_; - price_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_PRICE, oldPrice, price, !oldPrice_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getPrice Price}' attribute. - * - * - * @see #isSetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - public void unsetPrice() - { - BigDecimal oldPrice = price; - boolean oldPrice_set_ = price_set_; - price = PRICE_DEFAULT_; - price_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_PRICE, oldPrice, PRICE_DEFAULT_, oldPrice_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getPrice Price}' attribute is set. - * - * - * @return whether the value of the 'Price' attribute is set. - * @see #unsetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - public boolean isSetPrice() - { - return price_set_; - } - - /** - * Returns the value of the 'Open1' attribute. - * - *- * If the meaning of the 'Open1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - public BigDecimal getOpen1() - { - return open1; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getOpen1 Open1}' attribute. - * - * - * @param value the new value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #getOpen1() - * @generated - */ - public void setOpen1(BigDecimal newOpen1) - { - BigDecimal oldOpen1 = open1; - open1 = newOpen1; - boolean oldOpen1_set_ = open1_set_; - open1_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_OPEN1, oldOpen1, open1, !oldOpen1_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getOpen1 Open1}' attribute. - * - * - * @see #isSetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - public void unsetOpen1() - { - BigDecimal oldOpen1 = open1; - boolean oldOpen1_set_ = open1_set_; - open1 = OPEN1_DEFAULT_; - open1_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_OPEN1, oldOpen1, OPEN1_DEFAULT_, oldOpen1_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getOpen1 Open1}' attribute is set. - * - * - * @return whether the value of the 'Open1' attribute is set. - * @see #unsetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - public boolean isSetOpen1() - { - return open1_set_; - } - - /** - * Returns the value of the 'High' attribute. - * - *- * If the meaning of the 'High' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - public BigDecimal getHigh() - { - return high; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getHigh High}' attribute. - * - * - * @param value the new value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #getHigh() - * @generated - */ - public void setHigh(BigDecimal newHigh) - { - BigDecimal oldHigh = high; - high = newHigh; - boolean oldHigh_set_ = high_set_; - high_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_HIGH, oldHigh, high, !oldHigh_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getHigh High}' attribute. - * - * - * @see #isSetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - public void unsetHigh() - { - BigDecimal oldHigh = high; - boolean oldHigh_set_ = high_set_; - high = HIGH_DEFAULT_; - high_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_HIGH, oldHigh, HIGH_DEFAULT_, oldHigh_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getHigh High}' attribute is set. - * - * - * @return whether the value of the 'High' attribute is set. - * @see #unsetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - public boolean isSetHigh() - { - return high_set_; - } - - /** - * Returns the value of the 'Low' attribute. - * - *- * If the meaning of the 'Low' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #setLow(BigDecimal) - * @generated - */ - public BigDecimal getLow() - { - return low; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getLow Low}' attribute. - * - * - * @param value the new value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #getLow() - * @generated - */ - public void setLow(BigDecimal newLow) - { - BigDecimal oldLow = low; - low = newLow; - boolean oldLow_set_ = low_set_; - low_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_LOW, oldLow, low, !oldLow_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getLow Low}' attribute. - * - * - * @see #isSetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - public void unsetLow() - { - BigDecimal oldLow = low; - boolean oldLow_set_ = low_set_; - low = LOW_DEFAULT_; - low_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_LOW, oldLow, LOW_DEFAULT_, oldLow_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getLow Low}' attribute is set. - * - * - * @return whether the value of the 'Low' attribute is set. - * @see #unsetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - public boolean isSetLow() - { - return low_set_; - } - - /** - * Returns the value of the 'Volume' attribute. - * - *- * If the meaning of the 'Volume' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #setVolume(double) - * @generated - */ - public double getVolume() - { - return volume; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getVolume Volume}' attribute. - * - * - * @param value the new value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #getVolume() - * @generated - */ - public void setVolume(double newVolume) - { - double oldVolume = volume; - volume = newVolume; - boolean oldVolume_set_ = volume_set_; - volume_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_VOLUME, oldVolume, volume, !oldVolume_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getVolume Volume}' attribute. - * - * - * @see #isSetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - public void unsetVolume() - { - double oldVolume = volume; - boolean oldVolume_set_ = volume_set_; - volume = VOLUME_DEFAULT_; - volume_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_VOLUME, oldVolume, VOLUME_DEFAULT_, oldVolume_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getVolume Volume}' attribute is set. - * - * - * @return whether the value of the 'Volume' attribute is set. - * @see #unsetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - public boolean isSetVolume() - { - return volume_set_; - } - - /** - * Returns the value of the 'Change1' attribute. - * - *- * If the meaning of the 'Change1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #setChange1(double) - * @generated - */ - public double getChange1() - { - return change1; - } - /** - * Sets the value of the '{@link com.example.noInterfaces.simple.Quote#getChange1 Change1}' attribute. - * - * - * @param value the new value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #getChange1() - * @generated - */ - public void setChange1(double newChange1) - { - double oldChange1 = change1; - change1 = newChange1; - boolean oldChange1_set_ = change1_set_; - change1_set_ = true; - if (isNotifying()) - notify(ChangeKind.SET, INTERNAL_CHANGE1, oldChange1, change1, !oldChange1_set_); - } - - /** - * Unsets the value of the '{@link com.example.noInterfaces.simple.Quote#getChange1 Change1}' attribute. - * - * - * @see #isSetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - public void unsetChange1() - { - double oldChange1 = change1; - boolean oldChange1_set_ = change1_set_; - change1 = CHANGE1_DEFAULT_; - change1_set_ = false; - if (isNotifying()) - notify(ChangeKind.UNSET, INTERNAL_CHANGE1, oldChange1, CHANGE1_DEFAULT_, oldChange1_set_); - } - - /** - * Returns whether the value of the '{@link com.example.noInterfaces.simple.Quote#getChange1 Change1}' attribute is set. - * - * - * @return whether the value of the 'Change1' attribute is set. - * @see #unsetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - public boolean isSetChange1() - { - return change1_set_; - } - - /** - * Returns the value of the 'Quotes' containment reference list. - * The list contents are of type {@link com.example.noInterfaces.simple.Quote}. - * - *- * If the meaning of the 'Quotes' containment reference list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Quotes' containment reference list. - * @generated - */ - public List getQuotes() - { - if (quotes == null) - { - quotes = createPropertyList(ListKind.CONTAINMENT, Quote.class, QUOTES, 0); - } - return quotes; - } - /** - * - * - * @generated - */ - public ChangeContext inverseRemove(Object otherEnd, int propertyIndex, ChangeContext changeContext) - { - switch (propertyIndex) - { - case QUOTES: - return removeFromList(getQuotes(), otherEnd, changeContext); - } - return super.inverseRemove(otherEnd, propertyIndex, changeContext); - } - - /** - * - * - * @generated - */ - public Object get(int propertyIndex, boolean resolve) - { - switch (propertyIndex) - { - case SYMBOL: - return getSymbol(); - case COMPANY_NAME: - return getCompanyName(); - case PRICE: - return getPrice(); - case OPEN1: - return getOpen1(); - case HIGH: - return getHigh(); - case LOW: - return getLow(); - case VOLUME: - return new Double(getVolume()); - case CHANGE1: - return new Double(getChange1()); - case QUOTES: - return getQuotes(); - } - return super.get(propertyIndex, resolve); - } - - /** - * - * - * @generated - */ - public void set(int propertyIndex, Object newValue) - { - switch (propertyIndex) - { - case SYMBOL: - setSymbol((String)newValue); - return; - case COMPANY_NAME: - setCompanyName((String)newValue); - return; - case PRICE: - setPrice((BigDecimal)newValue); - return; - case OPEN1: - setOpen1((BigDecimal)newValue); - return; - case HIGH: - setHigh((BigDecimal)newValue); - return; - case LOW: - setLow((BigDecimal)newValue); - return; - case VOLUME: - setVolume(((Double)newValue).doubleValue()); - return; - case CHANGE1: - setChange1(((Double)newValue).doubleValue()); - return; - case QUOTES: - getQuotes().clear(); - getQuotes().addAll((Collection)newValue); - return; - } - super.set(propertyIndex, newValue); - } - - /** - * - * - * @generated - */ - public void unset(int propertyIndex) - { - switch (propertyIndex) - { - case SYMBOL: - unsetSymbol(); - return; - case COMPANY_NAME: - unsetCompanyName(); - return; - case PRICE: - unsetPrice(); - return; - case OPEN1: - unsetOpen1(); - return; - case HIGH: - unsetHigh(); - return; - case LOW: - unsetLow(); - return; - case VOLUME: - unsetVolume(); - return; - case CHANGE1: - unsetChange1(); - return; - case QUOTES: - getQuotes().clear(); - return; - } - super.unset(propertyIndex); - } - - /** - * - * - * @generated - */ - public boolean isSet(int propertyIndex) - { - switch (propertyIndex) - { - case SYMBOL: - return isSetSymbol(); - case COMPANY_NAME: - return isSetCompanyName(); - case PRICE: - return isSetPrice(); - case OPEN1: - return isSetOpen1(); - case HIGH: - return isSetHigh(); - case LOW: - return isSetLow(); - case VOLUME: - return isSetVolume(); - case CHANGE1: - return isSetChange1(); - case QUOTES: - return quotes != null && !quotes.isEmpty(); - } - return super.isSet(propertyIndex); - } - - /** - * - * - * @generated - */ - public String toString() - { - if (isProxy(this)) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (symbol: "); - if (symbol_set_) result.append(symbol); else result.append("- * The following features are supported: - *
- * If the meaning of the 'Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Name' attribute. - * @see #isSetName() - * @see #unsetName() - * @see #setName(String) - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link com.example.open.OneElementAndAnyAttr#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #isSetName() - * @see #unsetName() - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Unsets the value of the '{@link com.example.open.OneElementAndAnyAttr#getName Name}' attribute. - * - * - * @see #isSetName() - * @see #getName() - * @see #setName(String) - * @generated - */ - void unsetName(); - - /** - * Returns whether the value of the '{@link com.example.open.OneElementAndAnyAttr#getName Name}' attribute is set. - * - * - * @return whether the value of the 'Name' attribute is set. - * @see #unsetName() - * @see #getName() - * @see #setName(String) - * @generated - */ - boolean isSetName(); - - /** - * Returns the value of the 'Any Attribute' attribute list. - * - *- * If the meaning of the 'Any Attribute' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Any Attribute' attribute list. - * @generated - */ - Sequence getAnyAttribute(); - -} // OneElementAndAnyAttr diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/open/OpenFactory.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/open/OpenFactory.java deleted file mode 100644 index cc248c1ac5..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/open/OpenFactory.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.open; - -import commonj.sdo.helper.HelperContext; - - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @generated - */ -public interface OpenFactory -{ - - /** - * The singleton instance of the factory. - * - * - * @generated - */ - OpenFactory INSTANCE = com.example.open.impl.OpenFactoryImpl.init(); - - /** - * Returns a new object of class 'One Element And Any Attr'. - * - * - * @return a new object of class 'One Element And Any Attr'. - * @generated - */ - OneElementAndAnyAttr createOneElementAndAnyAttr(); - - /** - * Registers the types supported by this Factory within the supplied scope.argument - * - * - * @param scope an instance of HelperContext used to manage the scoping of types. - * @generated - */ - public void register(HelperContext scope); - -} //OpenFactory diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/open/impl/OneElementAndAnyAttrImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/open/impl/OneElementAndAnyAttrImpl.java deleted file mode 100644 index 1746f04d5b..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/open/impl/OneElementAndAnyAttrImpl.java +++ /dev/null @@ -1,323 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.open.impl; - -import com.example.open.OneElementAndAnyAttr; -import com.example.open.OpenFactory; - -import commonj.sdo.Sequence; -import commonj.sdo.Type; - -import org.apache.tuscany.sdo.impl.DataObjectBase; - -/** - * - * An implementation of the model object 'One Element And Any Attr'. - * - *- * The following features are implemented: - *
- * The following features are supported: - *
- * If the meaning of the 'Group' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Group' attribute list. - * @generated - */ - Sequence getGroup(); - - /** - * Returns the value of the 'S' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *- * If the meaning of the 'S' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'S' attribute list. - * @generated - */ - List getS(); - - /** - * Returns the value of the 'I' attribute list. - * The list contents are of type {@link java.lang.Integer}. - * - *- * If the meaning of the 'I' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'I' attribute list. - * @generated - */ - List getI(); - - /** - * Returns the value of the 'F' attribute list. - * The list contents are of type {@link java.lang.Float}. - * - *- * If the meaning of the 'F' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'F' attribute list. - * @generated - */ - List getF(); - -} // RCType diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/repchoice/RepchoiceFactory.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/repchoice/RepchoiceFactory.java deleted file mode 100644 index 9a7c3033a5..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/repchoice/RepchoiceFactory.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.repchoice; - -import commonj.sdo.helper.HelperContext; - - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @generated - */ -public interface RepchoiceFactory -{ - - /** - * The singleton instance of the factory. - * - * - * @generated - */ - RepchoiceFactory INSTANCE = com.example.repchoice.impl.RepchoiceFactoryImpl.init(); - - /** - * Returns a new object of class 'RC Type'. - * - * - * @return a new object of class 'RC Type'. - * @generated - */ - RCType createRCType(); - - /** - * Registers the types supported by this Factory within the supplied scope.argument - * - * - * @param scope an instance of HelperContext used to manage the scoping of types. - * @generated - */ - public void register(HelperContext scope); - -} //RepchoiceFactory diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/repchoice/impl/RCTypeImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/repchoice/impl/RCTypeImpl.java deleted file mode 100644 index eb1310cc9d..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/repchoice/impl/RCTypeImpl.java +++ /dev/null @@ -1,322 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.repchoice.impl; - -import com.example.repchoice.RCType; -import com.example.repchoice.RepchoiceFactory; - -import commonj.sdo.Sequence; -import commonj.sdo.Type; - -import java.util.Collection; -import java.util.List; - -import org.apache.tuscany.sdo.impl.DataObjectBase; - -/** - * - * An implementation of the model object 'RC Type'. - * - *- * The following features are implemented: - *
- * The following features are supported: - *
- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Mixed' attribute list. - * @generated - */ - Sequence getMixed(); - - /** - * Returns the value of the 'Symbol' attribute. - * - *- * If the meaning of the 'Symbol' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #setSymbol(String) - * @generated - */ - String getSymbol(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getSymbol Symbol}' attribute. - * - * - * @param value the new value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #getSymbol() - * @generated - */ - void setSymbol(String value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getSymbol Symbol}' attribute. - * - * - * @see #isSetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - void unsetSymbol(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getSymbol Symbol}' attribute is set. - * - * - * @return whether the value of the 'Symbol' attribute is set. - * @see #unsetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - boolean isSetSymbol(); - - /** - * Returns the value of the 'Company Name' attribute. - * - *- * If the meaning of the 'Company Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #setCompanyName(String) - * @generated - */ - String getCompanyName(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getCompanyName Company Name}' attribute. - * - * - * @param value the new value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #getCompanyName() - * @generated - */ - void setCompanyName(String value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getCompanyName Company Name}' attribute. - * - * - * @see #isSetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - void unsetCompanyName(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getCompanyName Company Name}' attribute is set. - * - * - * @return whether the value of the 'Company Name' attribute is set. - * @see #unsetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - boolean isSetCompanyName(); - - /** - * Returns the value of the 'Price' attribute. - * - *- * If the meaning of the 'Price' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - BigDecimal getPrice(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getPrice Price}' attribute. - * - * - * @param value the new value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #getPrice() - * @generated - */ - void setPrice(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getPrice Price}' attribute. - * - * - * @see #isSetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - void unsetPrice(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getPrice Price}' attribute is set. - * - * - * @return whether the value of the 'Price' attribute is set. - * @see #unsetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - boolean isSetPrice(); - - /** - * Returns the value of the 'Open1' attribute. - * - *- * If the meaning of the 'Open1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - BigDecimal getOpen1(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getOpen1 Open1}' attribute. - * - * - * @param value the new value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #getOpen1() - * @generated - */ - void setOpen1(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getOpen1 Open1}' attribute. - * - * - * @see #isSetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - void unsetOpen1(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getOpen1 Open1}' attribute is set. - * - * - * @return whether the value of the 'Open1' attribute is set. - * @see #unsetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - boolean isSetOpen1(); - - /** - * Returns the value of the 'High' attribute. - * - *- * If the meaning of the 'High' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - BigDecimal getHigh(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getHigh High}' attribute. - * - * - * @param value the new value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #getHigh() - * @generated - */ - void setHigh(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getHigh High}' attribute. - * - * - * @see #isSetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - void unsetHigh(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getHigh High}' attribute is set. - * - * - * @return whether the value of the 'High' attribute is set. - * @see #unsetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - boolean isSetHigh(); - - /** - * Returns the value of the 'Low' attribute. - * - *- * If the meaning of the 'Low' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #setLow(BigDecimal) - * @generated - */ - BigDecimal getLow(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getLow Low}' attribute. - * - * - * @param value the new value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #getLow() - * @generated - */ - void setLow(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getLow Low}' attribute. - * - * - * @see #isSetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - void unsetLow(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getLow Low}' attribute is set. - * - * - * @return whether the value of the 'Low' attribute is set. - * @see #unsetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - boolean isSetLow(); - - /** - * Returns the value of the 'Volume' attribute. - * - *- * If the meaning of the 'Volume' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #setVolume(double) - * @generated - */ - double getVolume(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getVolume Volume}' attribute. - * - * - * @param value the new value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #getVolume() - * @generated - */ - void setVolume(double value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getVolume Volume}' attribute. - * - * - * @see #isSetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - void unsetVolume(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getVolume Volume}' attribute is set. - * - * - * @return whether the value of the 'Volume' attribute is set. - * @see #unsetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - boolean isSetVolume(); - - /** - * Returns the value of the 'Change1' attribute. - * - *- * If the meaning of the 'Change1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #setChange1(double) - * @generated - */ - double getChange1(); - - /** - * Sets the value of the '{@link com.example.sequences.MixedQuote#getChange1 Change1}' attribute. - * - * - * @param value the new value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #getChange1() - * @generated - */ - void setChange1(double value); - - /** - * Unsets the value of the '{@link com.example.sequences.MixedQuote#getChange1 Change1}' attribute. - * - * - * @see #isSetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - void unsetChange1(); - - /** - * Returns whether the value of the '{@link com.example.sequences.MixedQuote#getChange1 Change1}' attribute is set. - * - * - * @return whether the value of the 'Change1' attribute is set. - * @see #unsetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - boolean isSetChange1(); - - /** - * Returns the value of the 'Quotes' containment reference list. - * The list contents are of type {@link com.example.sequences.MixedQuote}. - * - *- * If the meaning of the 'Quotes' containment reference list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Quotes' containment reference list. - * @generated - */ - List getQuotes(); - -} // MixedQuote diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/MixedRepeatingChoice.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/MixedRepeatingChoice.java deleted file mode 100644 index dba64b0487..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/MixedRepeatingChoice.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.sequences; - -import commonj.sdo.Sequence; - -import java.io.Serializable; - -import java.util.List; - -/** - * - * A representation of the model object 'Mixed Repeating Choice'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Mixed' attribute list. - * @generated - */ - Sequence getMixed(); - - /** - * Returns the value of the 'Group' attribute list. - * - *- * If the meaning of the 'Group' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Group' attribute list. - * @generated - */ - Sequence getGroup(); - - /** - * Returns the value of the 'A' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *- * If the meaning of the 'A' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'A' attribute list. - * @generated - */ - List getA(); - - /** - * Returns the value of the 'B' attribute list. - * The list contents are of type {@link java.lang.Integer}. - * - *- * If the meaning of the 'B' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'B' attribute list. - * @generated - */ - List getB(); - -} // MixedRepeatingChoice diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/RepeatingChoice.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/RepeatingChoice.java deleted file mode 100644 index 3f0b0839f2..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/RepeatingChoice.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.sequences; - -import commonj.sdo.Sequence; - -import java.io.Serializable; - -import java.util.List; - -/** - * - * A representation of the model object 'Repeating Choice'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Group' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Group' attribute list. - * @generated - */ - Sequence getGroup(); - - /** - * Returns the value of the 'A' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *- * If the meaning of the 'A' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'A' attribute list. - * @generated - */ - List getA(); - - /** - * Returns the value of the 'B' attribute list. - * The list contents are of type {@link java.lang.Integer}. - * - *- * If the meaning of the 'B' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'B' attribute list. - * @generated - */ - List getB(); - -} // RepeatingChoice diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/SequencesFactory.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/SequencesFactory.java deleted file mode 100644 index 900b51ddc3..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/SequencesFactory.java +++ /dev/null @@ -1,97 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.sequences; - -import commonj.sdo.helper.HelperContext; - - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @generated - */ -public interface SequencesFactory -{ - - /** - * The singleton instance of the factory. - * - * - * @generated - */ - SequencesFactory INSTANCE = com.example.sequences.impl.SequencesFactoryImpl.init(); - - /** - * Returns a new object of class 'Mixed Quote'. - * - * - * @return a new object of class 'Mixed Quote'. - * @generated - */ - MixedQuote createMixedQuote(); - - /** - * Returns a new object of class 'Mixed Repeating Choice'. - * - * - * @return a new object of class 'Mixed Repeating Choice'. - * @generated - */ - MixedRepeatingChoice createMixedRepeatingChoice(); - - /** - * Returns a new object of class 'Repeating Choice'. - * - * - * @return a new object of class 'Repeating Choice'. - * @generated - */ - RepeatingChoice createRepeatingChoice(); - - /** - * Returns a new object of class 'Two RCs'. - * - * - * @return a new object of class 'Two RCs'. - * @generated - */ - TwoRCs createTwoRCs(); - - /** - * Returns a new object of class 'Two RCs Mixed'. - * - * - * @return a new object of class 'Two RCs Mixed'. - * @generated - */ - TwoRCsMixed createTwoRCsMixed(); - - /** - * Registers the types supported by this Factory within the supplied scope.argument - * - * - * @param scope an instance of HelperContext used to manage the scoping of types. - * @generated - */ - public void register(HelperContext scope); - -} //SequencesFactory diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/TwoRCs.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/TwoRCs.java deleted file mode 100644 index c6e54e6598..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/TwoRCs.java +++ /dev/null @@ -1,184 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.sequences; - -import commonj.sdo.Sequence; - -import java.io.Serializable; - -import java.util.List; - -/** - * - * A representation of the model object 'Two RCs'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Group' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Group' attribute list. - * @generated - */ - Sequence getGroup(); - - /** - * Returns the value of the 'A' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *- * If the meaning of the 'A' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'A' attribute list. - * @generated - */ - List getA(); - - /** - * Returns the value of the 'B' attribute list. - * The list contents are of type {@link java.lang.Integer}. - * - *- * If the meaning of the 'B' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'B' attribute list. - * @generated - */ - List getB(); - - /** - * Returns the value of the 'Split' attribute. - * - *- * If the meaning of the 'Split' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Split' attribute. - * @see #isSetSplit() - * @see #unsetSplit() - * @see #setSplit(String) - * @generated - */ - String getSplit(); - - /** - * Sets the value of the '{@link com.example.sequences.TwoRCs#getSplit Split}' attribute. - * - * - * @param value the new value of the 'Split' attribute. - * @see #isSetSplit() - * @see #unsetSplit() - * @see #getSplit() - * @generated - */ - void setSplit(String value); - - /** - * Unsets the value of the '{@link com.example.sequences.TwoRCs#getSplit Split}' attribute. - * - * - * @see #isSetSplit() - * @see #getSplit() - * @see #setSplit(String) - * @generated - */ - void unsetSplit(); - - /** - * Returns whether the value of the '{@link com.example.sequences.TwoRCs#getSplit Split}' attribute is set. - * - * - * @return whether the value of the 'Split' attribute is set. - * @see #unsetSplit() - * @see #getSplit() - * @see #setSplit(String) - * @generated - */ - boolean isSetSplit(); - - /** - * Returns the value of the 'Group1' attribute list. - * - *- * If the meaning of the 'Group1' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Group1' attribute list. - * @generated - */ - Sequence getGroup1(); - - /** - * Returns the value of the 'Y' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *- * If the meaning of the 'Y' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Y' attribute list. - * @generated - */ - List getY(); - - /** - * Returns the value of the 'Z' attribute list. - * The list contents are of type {@link java.lang.Integer}. - * - *- * If the meaning of the 'Z' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Z' attribute list. - * @generated - */ - List getZ(); - -} // TwoRCs diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/TwoRCsMixed.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/TwoRCsMixed.java deleted file mode 100644 index 90d5f942b6..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/TwoRCsMixed.java +++ /dev/null @@ -1,198 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.sequences; - -import commonj.sdo.Sequence; - -import java.io.Serializable; - -import java.util.List; - -/** - * - * A representation of the model object 'Two RCs Mixed'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Mixed' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Mixed' attribute list. - * @generated - */ - Sequence getMixed(); - - /** - * Returns the value of the 'Group' attribute list. - * - *- * If the meaning of the 'Group' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Group' attribute list. - * @generated - */ - Sequence getGroup(); - - /** - * Returns the value of the 'A' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *- * If the meaning of the 'A' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'A' attribute list. - * @generated - */ - List getA(); - - /** - * Returns the value of the 'B' attribute list. - * The list contents are of type {@link java.lang.Integer}. - * - *- * If the meaning of the 'B' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'B' attribute list. - * @generated - */ - List getB(); - - /** - * Returns the value of the 'Split' attribute. - * - *- * If the meaning of the 'Split' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Split' attribute. - * @see #isSetSplit() - * @see #unsetSplit() - * @see #setSplit(String) - * @generated - */ - String getSplit(); - - /** - * Sets the value of the '{@link com.example.sequences.TwoRCsMixed#getSplit Split}' attribute. - * - * - * @param value the new value of the 'Split' attribute. - * @see #isSetSplit() - * @see #unsetSplit() - * @see #getSplit() - * @generated - */ - void setSplit(String value); - - /** - * Unsets the value of the '{@link com.example.sequences.TwoRCsMixed#getSplit Split}' attribute. - * - * - * @see #isSetSplit() - * @see #getSplit() - * @see #setSplit(String) - * @generated - */ - void unsetSplit(); - - /** - * Returns whether the value of the '{@link com.example.sequences.TwoRCsMixed#getSplit Split}' attribute is set. - * - * - * @return whether the value of the 'Split' attribute is set. - * @see #unsetSplit() - * @see #getSplit() - * @see #setSplit(String) - * @generated - */ - boolean isSetSplit(); - - /** - * Returns the value of the 'Group1' attribute list. - * - *- * If the meaning of the 'Group1' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Group1' attribute list. - * @generated - */ - Sequence getGroup1(); - - /** - * Returns the value of the 'Y' attribute list. - * The list contents are of type {@link java.lang.String}. - * - *- * If the meaning of the 'Y' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Y' attribute list. - * @generated - */ - List getY(); - - /** - * Returns the value of the 'Z' attribute list. - * The list contents are of type {@link java.lang.Integer}. - * - *- * If the meaning of the 'Z' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Z' attribute list. - * @generated - */ - List getZ(); - -} // TwoRCsMixed diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/impl/MixedQuoteImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/impl/MixedQuoteImpl.java deleted file mode 100644 index c0699e50fb..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/sequences/impl/MixedQuoteImpl.java +++ /dev/null @@ -1,756 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.sequences.impl; - -import com.example.sequences.MixedQuote; -import com.example.sequences.SequencesFactory; - -import commonj.sdo.Sequence; -import commonj.sdo.Type; - -import java.math.BigDecimal; - -import java.util.Collection; -import java.util.List; - -import org.apache.tuscany.sdo.impl.DataObjectBase; - -/** - * - * An implementation of the model object 'Mixed Quote'. - * - *- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are supported: - *
- * If the meaning of the 'Symbol' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #setSymbol(String) - * @generated - */ - String getSymbol(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getSymbol Symbol}' attribute. - * - * - * @param value the new value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #getSymbol() - * @generated - */ - void setSymbol(String value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getSymbol Symbol}' attribute. - * - * - * @see #isSetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - void unsetSymbol(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getSymbol Symbol}' attribute is set. - * - * - * @return whether the value of the 'Symbol' attribute is set. - * @see #unsetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - boolean isSetSymbol(); - - /** - * Returns the value of the 'Company Name' attribute. - * - *- * If the meaning of the 'Company Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #setCompanyName(String) - * @generated - */ - String getCompanyName(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getCompanyName Company Name}' attribute. - * - * - * @param value the new value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #getCompanyName() - * @generated - */ - void setCompanyName(String value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getCompanyName Company Name}' attribute. - * - * - * @see #isSetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - void unsetCompanyName(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getCompanyName Company Name}' attribute is set. - * - * - * @return whether the value of the 'Company Name' attribute is set. - * @see #unsetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - boolean isSetCompanyName(); - - /** - * Returns the value of the 'Price' attribute. - * - *- * If the meaning of the 'Price' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - BigDecimal getPrice(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getPrice Price}' attribute. - * - * - * @param value the new value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #getPrice() - * @generated - */ - void setPrice(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getPrice Price}' attribute. - * - * - * @see #isSetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - void unsetPrice(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getPrice Price}' attribute is set. - * - * - * @return whether the value of the 'Price' attribute is set. - * @see #unsetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - boolean isSetPrice(); - - /** - * Returns the value of the 'Open1' attribute. - * - *- * If the meaning of the 'Open1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - BigDecimal getOpen1(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getOpen1 Open1}' attribute. - * - * - * @param value the new value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #getOpen1() - * @generated - */ - void setOpen1(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getOpen1 Open1}' attribute. - * - * - * @see #isSetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - void unsetOpen1(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getOpen1 Open1}' attribute is set. - * - * - * @return whether the value of the 'Open1' attribute is set. - * @see #unsetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - boolean isSetOpen1(); - - /** - * Returns the value of the 'High' attribute. - * - *- * If the meaning of the 'High' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - BigDecimal getHigh(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getHigh High}' attribute. - * - * - * @param value the new value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #getHigh() - * @generated - */ - void setHigh(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getHigh High}' attribute. - * - * - * @see #isSetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - void unsetHigh(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getHigh High}' attribute is set. - * - * - * @return whether the value of the 'High' attribute is set. - * @see #unsetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - boolean isSetHigh(); - - /** - * Returns the value of the 'Low' attribute. - * - *- * If the meaning of the 'Low' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #setLow(BigDecimal) - * @generated - */ - BigDecimal getLow(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getLow Low}' attribute. - * - * - * @param value the new value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #getLow() - * @generated - */ - void setLow(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getLow Low}' attribute. - * - * - * @see #isSetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - void unsetLow(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getLow Low}' attribute is set. - * - * - * @return whether the value of the 'Low' attribute is set. - * @see #unsetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - boolean isSetLow(); - - /** - * Returns the value of the 'Volume' attribute. - * - *- * If the meaning of the 'Volume' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #setVolume(double) - * @generated - */ - double getVolume(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getVolume Volume}' attribute. - * - * - * @param value the new value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #getVolume() - * @generated - */ - void setVolume(double value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getVolume Volume}' attribute. - * - * - * @see #isSetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - void unsetVolume(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getVolume Volume}' attribute is set. - * - * - * @return whether the value of the 'Volume' attribute is set. - * @see #unsetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - boolean isSetVolume(); - - /** - * Returns the value of the 'Change1' attribute. - * - *- * If the meaning of the 'Change1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #setChange1(double) - * @generated - */ - double getChange1(); - - /** - * Sets the value of the '{@link com.example.simple.Quote#getChange1 Change1}' attribute. - * - * - * @param value the new value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #getChange1() - * @generated - */ - void setChange1(double value); - - /** - * Unsets the value of the '{@link com.example.simple.Quote#getChange1 Change1}' attribute. - * - * - * @see #isSetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - void unsetChange1(); - - /** - * Returns whether the value of the '{@link com.example.simple.Quote#getChange1 Change1}' attribute is set. - * - * - * @return whether the value of the 'Change1' attribute is set. - * @see #unsetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - boolean isSetChange1(); - - /** - * Returns the value of the 'Quotes' containment reference list. - * The list contents are of type {@link com.example.simple.Quote}. - * - *- * If the meaning of the 'Quotes' containment reference list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Quotes' containment reference list. - * @generated - */ - List getQuotes(); - -} // Quote diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/SimpleFactory.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/SimpleFactory.java deleted file mode 100644 index 98dc01d69a..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/SimpleFactory.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.simple; - -import commonj.sdo.helper.HelperContext; - - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @generated - */ -public interface SimpleFactory -{ - - /** - * The singleton instance of the factory. - * - * - * @generated - */ - SimpleFactory INSTANCE = com.example.simple.impl.SimpleFactoryImpl.init(); - - /** - * Returns a new object of class 'Quote'. - * - * - * @return a new object of class 'Quote'. - * @generated - */ - Quote createQuote(); - - /** - * Registers the types supported by this Factory within the supplied scope.argument - * - * - * @param scope an instance of HelperContext used to manage the scoping of types. - * @generated - */ - public void register(HelperContext scope); - -} //SimpleFactory diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/CSFactory.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/CSFactory.java deleted file mode 100644 index 6a742b2cdf..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/CSFactory.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.simple.cs; - -import commonj.sdo.helper.HelperContext; - - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @generated - */ -public interface CSFactory -{ - - /** - * The singleton instance of the factory. - * - * - * @generated - */ - CSFactory INSTANCE = com.example.simple.cs.impl.CSFactoryImpl.init(); - - /** - * Returns a new object of class 'Quote'. - * - * - * @return a new object of class 'Quote'. - * @generated - */ - Quote createQuote(); - - /** - * Returns a new object of class 'Quote Base'. - * - * - * @return a new object of class 'Quote Base'. - * @generated - */ - QuoteBase createQuoteBase(); - - /** - * Registers the types supported by this Factory within the supplied scope.argument - * - * - * @param scope an instance of HelperContext used to manage the scoping of types. - * @generated - */ - public void register(HelperContext scope); - -} //CSFactory diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/Quote.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/Quote.java deleted file mode 100644 index f18f8117c4..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/Quote.java +++ /dev/null @@ -1,475 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.simple.cs; - -import java.io.Serializable; - -import java.math.BigDecimal; - -import java.util.List; - -/** - * - * A representation of the model object 'Quote'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Symbol' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #setSymbol(String) - * @generated - */ - String getSymbol(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getSymbol Symbol}' attribute. - * - * - * @param value the new value of the 'Symbol' attribute. - * @see #isSetSymbol() - * @see #unsetSymbol() - * @see #getSymbol() - * @generated - */ - void setSymbol(String value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getSymbol Symbol}' attribute. - * - * - * @see #isSetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - void unsetSymbol(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getSymbol Symbol}' attribute is set. - * - * - * @return whether the value of the 'Symbol' attribute is set. - * @see #unsetSymbol() - * @see #getSymbol() - * @see #setSymbol(String) - * @generated - */ - boolean isSetSymbol(); - - /** - * Returns the value of the 'Company Name' attribute. - * - *- * If the meaning of the 'Company Name' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #setCompanyName(String) - * @generated - */ - String getCompanyName(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getCompanyName Company Name}' attribute. - * - * - * @param value the new value of the 'Company Name' attribute. - * @see #isSetCompanyName() - * @see #unsetCompanyName() - * @see #getCompanyName() - * @generated - */ - void setCompanyName(String value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getCompanyName Company Name}' attribute. - * - * - * @see #isSetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - void unsetCompanyName(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getCompanyName Company Name}' attribute is set. - * - * - * @return whether the value of the 'Company Name' attribute is set. - * @see #unsetCompanyName() - * @see #getCompanyName() - * @see #setCompanyName(String) - * @generated - */ - boolean isSetCompanyName(); - - /** - * Returns the value of the 'Price' attribute. - * - *- * If the meaning of the 'Price' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - BigDecimal getPrice(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getPrice Price}' attribute. - * - * - * @param value the new value of the 'Price' attribute. - * @see #isSetPrice() - * @see #unsetPrice() - * @see #getPrice() - * @generated - */ - void setPrice(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getPrice Price}' attribute. - * - * - * @see #isSetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - void unsetPrice(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getPrice Price}' attribute is set. - * - * - * @return whether the value of the 'Price' attribute is set. - * @see #unsetPrice() - * @see #getPrice() - * @see #setPrice(BigDecimal) - * @generated - */ - boolean isSetPrice(); - - /** - * Returns the value of the 'Open1' attribute. - * - *- * If the meaning of the 'Open1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - BigDecimal getOpen1(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getOpen1 Open1}' attribute. - * - * - * @param value the new value of the 'Open1' attribute. - * @see #isSetOpen1() - * @see #unsetOpen1() - * @see #getOpen1() - * @generated - */ - void setOpen1(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getOpen1 Open1}' attribute. - * - * - * @see #isSetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - void unsetOpen1(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getOpen1 Open1}' attribute is set. - * - * - * @return whether the value of the 'Open1' attribute is set. - * @see #unsetOpen1() - * @see #getOpen1() - * @see #setOpen1(BigDecimal) - * @generated - */ - boolean isSetOpen1(); - - /** - * Returns the value of the 'High' attribute. - * - *- * If the meaning of the 'High' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - BigDecimal getHigh(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getHigh High}' attribute. - * - * - * @param value the new value of the 'High' attribute. - * @see #isSetHigh() - * @see #unsetHigh() - * @see #getHigh() - * @generated - */ - void setHigh(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getHigh High}' attribute. - * - * - * @see #isSetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - void unsetHigh(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getHigh High}' attribute is set. - * - * - * @return whether the value of the 'High' attribute is set. - * @see #unsetHigh() - * @see #getHigh() - * @see #setHigh(BigDecimal) - * @generated - */ - boolean isSetHigh(); - - /** - * Returns the value of the 'Low' attribute. - * - *- * If the meaning of the 'Low' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #setLow(BigDecimal) - * @generated - */ - BigDecimal getLow(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getLow Low}' attribute. - * - * - * @param value the new value of the 'Low' attribute. - * @see #isSetLow() - * @see #unsetLow() - * @see #getLow() - * @generated - */ - void setLow(BigDecimal value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getLow Low}' attribute. - * - * - * @see #isSetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - void unsetLow(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getLow Low}' attribute is set. - * - * - * @return whether the value of the 'Low' attribute is set. - * @see #unsetLow() - * @see #getLow() - * @see #setLow(BigDecimal) - * @generated - */ - boolean isSetLow(); - - /** - * Returns the value of the 'Volume' attribute. - * - *- * If the meaning of the 'Volume' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #setVolume(double) - * @generated - */ - double getVolume(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getVolume Volume}' attribute. - * - * - * @param value the new value of the 'Volume' attribute. - * @see #isSetVolume() - * @see #unsetVolume() - * @see #getVolume() - * @generated - */ - void setVolume(double value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getVolume Volume}' attribute. - * - * - * @see #isSetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - void unsetVolume(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getVolume Volume}' attribute is set. - * - * - * @return whether the value of the 'Volume' attribute is set. - * @see #unsetVolume() - * @see #getVolume() - * @see #setVolume(double) - * @generated - */ - boolean isSetVolume(); - - /** - * Returns the value of the 'Change1' attribute. - * - *- * If the meaning of the 'Change1' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #setChange1(double) - * @generated - */ - double getChange1(); - - /** - * Sets the value of the '{@link com.example.simple.cs.Quote#getChange1 Change1}' attribute. - * - * - * @param value the new value of the 'Change1' attribute. - * @see #isSetChange1() - * @see #unsetChange1() - * @see #getChange1() - * @generated - */ - void setChange1(double value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.Quote#getChange1 Change1}' attribute. - * - * - * @see #isSetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - void unsetChange1(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.Quote#getChange1 Change1}' attribute is set. - * - * - * @return whether the value of the 'Change1' attribute is set. - * @see #unsetChange1() - * @see #getChange1() - * @see #setChange1(double) - * @generated - */ - boolean isSetChange1(); - - /** - * Returns the value of the 'Quotes' containment reference list. - * The list contents are of type {@link com.example.simple.cs.Quote}. - * - *- * If the meaning of the 'Quotes' containment reference list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Quotes' containment reference list. - * @generated - */ - List getQuotes(); - -} // Quote diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/QuoteBase.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/QuoteBase.java deleted file mode 100644 index c086be2c71..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/QuoteBase.java +++ /dev/null @@ -1,91 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.simple.cs; - -import commonj.sdo.ChangeSummary; - -/** - * - * A representation of the model object 'Quote Base'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Changes' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Changes' attribute. - * @see #isSetChanges() - * @see #unsetChanges() - * @see #setChanges(ChangeSummary) - * @generated - */ - ChangeSummary getChanges(); - - /** - * Sets the value of the '{@link com.example.simple.cs.QuoteBase#getChanges Changes}' attribute. - * - * - * @param value the new value of the 'Changes' attribute. - * @see #isSetChanges() - * @see #unsetChanges() - * @see #getChanges() - * @generated - */ - void setChanges(ChangeSummary value); - - /** - * Unsets the value of the '{@link com.example.simple.cs.QuoteBase#getChanges Changes}' attribute. - * - * - * @see #isSetChanges() - * @see #getChanges() - * @see #setChanges(ChangeSummary) - * @generated - */ - void unsetChanges(); - - /** - * Returns whether the value of the '{@link com.example.simple.cs.QuoteBase#getChanges Changes}' attribute is set. - * - * - * @return whether the value of the 'Changes' attribute is set. - * @see #unsetChanges() - * @see #getChanges() - * @see #setChanges(ChangeSummary) - * @generated - */ - boolean isSetChanges(); - -} // QuoteBase diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/impl/CSFactoryImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/impl/CSFactoryImpl.java deleted file mode 100644 index ce63e6bfae..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/impl/CSFactoryImpl.java +++ /dev/null @@ -1,368 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.simple.cs.impl; - -import commonj.sdo.helper.HelperContext; -import org.apache.tuscany.sdo.helper.TypeHelperImpl; - -import com.example.simple.cs.*; - -import commonj.sdo.DataObject; -import commonj.sdo.Property; -import commonj.sdo.Type; - -import org.apache.tuscany.sdo.impl.FactoryBase; - -import org.apache.tuscany.sdo.model.ModelFactory; - -import org.apache.tuscany.sdo.model.impl.ModelFactoryImpl; - -/** - * - * An implementation of the model Factory. - * Generator information: - * patternVersion=1.2; -prefix CS - * - * @generated - */ -public class CSFactoryImpl extends FactoryBase implements CSFactory -{ - - /** - * The package namespace URI. - * - * - * @generated - */ - public static final String NAMESPACE_URI = "http://www.example.com/simpleCS"; - - /** - * The package namespace name. - * - * - * @generated - */ - public static final String NAMESPACE_PREFIX = "simpleCS"; - - /** - * The version of the generator pattern used to generate this class. - * - * - * @generated - */ - public static final String PATTERN_VERSION = "1.2"; - - public static final int QUOTE = 1; - public static final int QUOTE_BASE = 2; - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public CSFactoryImpl() - { - super(NAMESPACE_URI, NAMESPACE_PREFIX, "com.example.simple.cs"); - } - - /** - * Registers the Factory instance so that it is available within the supplied scope. - * @argument scope a HelperContext instance that will make the types supported by this Factory available. - * - * - * @generated - */ - public void register(HelperContext scope) - { - if(scope == null) { - throw new IllegalArgumentException("Scope can not be null"); - } - - //Register dependent packages with provided scope - ModelFactory.INSTANCE.register(scope); - - // Initialize this package - TypeHelperImpl th = (TypeHelperImpl)scope.getTypeHelper(); - th.getExtendedMetaData().putPackage(NAMESPACE_URI, this); - } - - /** - * - * - * @generated - */ - public DataObject create(int typeNumber) - { - switch (typeNumber) - { - case QUOTE: return (DataObject)createQuote(); - case QUOTE_BASE: return (DataObject)createQuoteBase(); - default: - return super.create(typeNumber); - } - } - - /** - * - * - * @generated - */ - public Quote createQuote() - { - QuoteImpl quote = new QuoteImpl(); - return quote; - } - /** - * - * - * @generated - */ - public QuoteBase createQuoteBase() - { - QuoteBaseImpl quoteBase = new QuoteBaseImpl(); - return quoteBase; - } - - // Following creates and initializes SDO metadata for the supported types. - protected Type quoteType = null; - - public Type getQuote() - { - return quoteType; - } - - protected Type quoteBaseType = null; - - public Type getQuoteBase() - { - return quoteBaseType; - } - - - private static CSFactoryImpl instance = null; - public static CSFactoryImpl init() - { - if (instance != null ) return instance; - instance = new CSFactoryImpl(); - - // Initialize dependent packages - ModelFactory ModelFactoryInstance = ModelFactory.INSTANCE; - - // Create package meta-data objects - instance.createMetaData(); - - // Initialize created meta-data - instance.initializeMetaData(); - - // Mark meta-data to indicate it can't be changed - //theCSFactoryImpl.freeze(); //FB do we need to freeze / should we freeze ???? - - return instance; - } - - private boolean isCreated = false; - - public void createMetaData() - { - if (isCreated) return; - isCreated = true; - - // Create types and their properties - quoteType = createType(false, QUOTE); - createProperty(true, quoteType,QuoteImpl.INTERNAL_SYMBOL); - createProperty(true, quoteType,QuoteImpl.INTERNAL_COMPANY_NAME); - createProperty(true, quoteType,QuoteImpl.INTERNAL_PRICE); - createProperty(true, quoteType,QuoteImpl.INTERNAL_OPEN1); - createProperty(true, quoteType,QuoteImpl.INTERNAL_HIGH); - createProperty(true, quoteType,QuoteImpl.INTERNAL_LOW); - createProperty(true, quoteType,QuoteImpl.INTERNAL_VOLUME); - createProperty(true, quoteType,QuoteImpl.INTERNAL_CHANGE1); - createProperty(false, quoteType,QuoteImpl.INTERNAL_QUOTES); - quoteBaseType = createType(false, QUOTE_BASE); - createProperty(true, quoteBaseType,QuoteBaseImpl.INTERNAL_CHANGES); - } - - private boolean isInitialized = false; - - public void initializeMetaData() - { - if (isInitialized) return; - isInitialized = true; - - // Obtain other dependent packages - ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)ModelFactory.INSTANCE; - Property property = null; - - // Add supertypes to types - addSuperType(quoteBaseType, this.getQuote()); - - // Initialize types and properties - initializeType(quoteType, Quote.class, "Quote", false); - property = getLocalProperty(quoteType, 0); - initializeProperty(property, theModelPackageImpl.getString(), "symbol", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 1); - initializeProperty(property, theModelPackageImpl.getString(), "companyName", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 2); - initializeProperty(property, theModelPackageImpl.getDecimal(), "price", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 3); - initializeProperty(property, theModelPackageImpl.getDecimal(), "open1", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 4); - initializeProperty(property, theModelPackageImpl.getDecimal(), "high", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 5); - initializeProperty(property, theModelPackageImpl.getDecimal(), "low", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 6); - initializeProperty(property, theModelPackageImpl.getDouble(), "volume", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 7); - initializeProperty(property, theModelPackageImpl.getDouble(), "change1", null, 1, 1, Quote.class, false, true, false); - - property = getLocalProperty(quoteType, 8); - initializeProperty(property, this.getQuote(), "quotes", null, 0, -1, Quote.class, false, false, false, true , null); - - initializeType(quoteBaseType, QuoteBase.class, "QuoteBase", false); - property = getLocalProperty(quoteBaseType, 0); - initializeProperty(property, theModelPackageImpl.getChangeSummaryType(), "changes", null, 1, 1, QuoteBase.class, false, true, false); - - createXSDMetaData(theModelPackageImpl); - } - - protected void createXSDMetaData(ModelFactoryImpl theModelPackageImpl) - { - super.initXSD(); - - Property property = null; - - - property = createGlobalProperty - ("stockQuote", - this.getQuoteBase(), - new String[] - { - "kind", "element", - "name", "stockQuote", - "namespace", "##targetNamespace" - }); - - addXSDMapping - (quoteType, - new String[] - { - "name", "Quote", - "kind", "elementOnly" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_SYMBOL), - new String[] - { - "kind", "element", - "name", "symbol" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_COMPANY_NAME), - new String[] - { - "kind", "element", - "name", "companyName" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_PRICE), - new String[] - { - "kind", "element", - "name", "price" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_OPEN1), - new String[] - { - "kind", "element", - "name", "open1" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_HIGH), - new String[] - { - "kind", "element", - "name", "high" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_LOW), - new String[] - { - "kind", "element", - "name", "low" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_VOLUME), - new String[] - { - "kind", "element", - "name", "volume" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_CHANGE1), - new String[] - { - "kind", "element", - "name", "change1" - }); - - addXSDMapping - (getProperty(quoteType, QuoteImpl.INTERNAL_QUOTES), - new String[] - { - "kind", "element", - "name", "quotes" - }); - - addXSDMapping - (quoteBaseType, - new String[] - { - "name", "QuoteBase", - "kind", "elementOnly" - }); - - addXSDMapping - (getProperty(quoteBaseType, QuoteBaseImpl.INTERNAL_CHANGES), - new String[] - { - "kind", "element", - "name", "changes" - }); - - } - -} //CSFactoryImpl diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/impl/QuoteBaseImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/impl/QuoteBaseImpl.java deleted file mode 100644 index 77a25ca7d3..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/simple/cs/impl/QuoteBaseImpl.java +++ /dev/null @@ -1,346 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.simple.cs.impl; - -import com.example.simple.cs.CSFactory; -import com.example.simple.cs.QuoteBase; - -import commonj.sdo.ChangeSummary; -import commonj.sdo.Type; - -/** - * - * An implementation of the model object 'Quote Base'. - * - *- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are supported: - *
- * If the meaning of the 'Ge1 Group' attribute list isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Ge1 Group' attribute list. - * @generated - */ - Sequence getGe1Group(); - - /** - * Returns the value of the 'Ge1' containment reference. - * - *- * If the meaning of the 'Ge1' containment reference isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Ge1' containment reference. - * @see #isSetGe1() - * @see #unsetGe1() - * @see #setGe1(B) - * @generated - */ - B getGe1(); - - /** - * Sets the value of the '{@link com.example.subgroup.A#getGe1 Ge1}' containment reference. - * - * - * @param value the new value of the 'Ge1' containment reference. - * @see #isSetGe1() - * @see #unsetGe1() - * @see #getGe1() - * @generated - */ - void setGe1(B value); - - /** - * Unsets the value of the '{@link com.example.subgroup.A#getGe1 Ge1}' containment reference. - * - * - * @see #isSetGe1() - * @see #getGe1() - * @see #setGe1(B) - * @generated - */ - void unsetGe1(); - - /** - * Returns whether the value of the '{@link com.example.subgroup.A#getGe1 Ge1}' containment reference is set. - * - * - * @return whether the value of the 'Ge1' containment reference is set. - * @see #unsetGe1() - * @see #getGe1() - * @see #setGe1(B) - * @generated - */ - boolean isSetGe1(); - -} // A diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/B.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/B.java deleted file mode 100644 index e306049ecb..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/B.java +++ /dev/null @@ -1,92 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.subgroup; - -import java.io.Serializable; - -/** - * - * A representation of the model object 'B'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Im In Type B' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Im In Type B' attribute. - * @see #isSetImInTypeB() - * @see #unsetImInTypeB() - * @see #setImInTypeB(String) - * @generated - */ - String getImInTypeB(); - - /** - * Sets the value of the '{@link com.example.subgroup.B#getImInTypeB Im In Type B}' attribute. - * - * - * @param value the new value of the 'Im In Type B' attribute. - * @see #isSetImInTypeB() - * @see #unsetImInTypeB() - * @see #getImInTypeB() - * @generated - */ - void setImInTypeB(String value); - - /** - * Unsets the value of the '{@link com.example.subgroup.B#getImInTypeB Im In Type B}' attribute. - * - * - * @see #isSetImInTypeB() - * @see #getImInTypeB() - * @see #setImInTypeB(String) - * @generated - */ - void unsetImInTypeB(); - - /** - * Returns whether the value of the '{@link com.example.subgroup.B#getImInTypeB Im In Type B}' attribute is set. - * - * - * @return whether the value of the 'Im In Type B' attribute is set. - * @see #unsetImInTypeB() - * @see #getImInTypeB() - * @see #setImInTypeB(String) - * @generated - */ - boolean isSetImInTypeB(); - -} // B diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/Bprime.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/Bprime.java deleted file mode 100644 index ef7bac01c8..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/Bprime.java +++ /dev/null @@ -1,90 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.subgroup; - - -/** - * - * A representation of the model object 'Bprime'. - * - * - *- * The following features are supported: - *
- * If the meaning of the 'Im In Type Bprime' attribute isn't clear, - * there really should be more of a description here... - *
- * - * @return the value of the 'Im In Type Bprime' attribute. - * @see #isSetImInTypeBprime() - * @see #unsetImInTypeBprime() - * @see #setImInTypeBprime(String) - * @generated - */ - String getImInTypeBprime(); - - /** - * Sets the value of the '{@link com.example.subgroup.Bprime#getImInTypeBprime Im In Type Bprime}' attribute. - * - * - * @param value the new value of the 'Im In Type Bprime' attribute. - * @see #isSetImInTypeBprime() - * @see #unsetImInTypeBprime() - * @see #getImInTypeBprime() - * @generated - */ - void setImInTypeBprime(String value); - - /** - * Unsets the value of the '{@link com.example.subgroup.Bprime#getImInTypeBprime Im In Type Bprime}' attribute. - * - * - * @see #isSetImInTypeBprime() - * @see #getImInTypeBprime() - * @see #setImInTypeBprime(String) - * @generated - */ - void unsetImInTypeBprime(); - - /** - * Returns whether the value of the '{@link com.example.subgroup.Bprime#getImInTypeBprime Im In Type Bprime}' attribute is set. - * - * - * @return whether the value of the 'Im In Type Bprime' attribute is set. - * @see #unsetImInTypeBprime() - * @see #getImInTypeBprime() - * @see #setImInTypeBprime(String) - * @generated - */ - boolean isSetImInTypeBprime(); - -} // Bprime diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/SubgroupFactory.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/SubgroupFactory.java deleted file mode 100644 index cee8ec1a78..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/SubgroupFactory.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.subgroup; - -import commonj.sdo.helper.HelperContext; - - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @generated - */ -public interface SubgroupFactory -{ - - /** - * The singleton instance of the factory. - * - * - * @generated - */ - SubgroupFactory INSTANCE = com.example.subgroup.impl.SubgroupFactoryImpl.init(); - - /** - * Returns a new object of class 'A'. - * - * - * @return a new object of class 'A'. - * @generated - */ - A createA(); - - /** - * Returns a new object of class 'B'. - * - * - * @return a new object of class 'B'. - * @generated - */ - B createB(); - - /** - * Returns a new object of class 'Bprime'. - * - * - * @return a new object of class 'Bprime'. - * @generated - */ - Bprime createBprime(); - - /** - * Registers the types supported by this Factory within the supplied scope.argument - * - * - * @param scope an instance of HelperContext used to manage the scoping of types. - * @generated - */ - public void register(HelperContext scope); - -} //SubgroupFactory diff --git a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/impl/AImpl.java b/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/impl/AImpl.java deleted file mode 100644 index 604708f0fd..0000000000 --- a/branches/sdo-1.0-incubating/tools/src/test/java/com/example/subgroup/impl/AImpl.java +++ /dev/null @@ -1,310 +0,0 @@ -/** - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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 com.example.subgroup.impl; - -import com.example.subgroup.A; -import com.example.subgroup.B; -import com.example.subgroup.SubgroupFactory; - -import commonj.sdo.Sequence; -import commonj.sdo.Type; - -import org.apache.tuscany.sdo.impl.DataObjectBase; - -/** - * - * An implementation of the model object 'A'. - * - *- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are implemented: - *