Package org.apache.tuscany.sdo.model.impl

Examples of org.apache.tuscany.sdo.model.impl.ModelFactoryImpl


  {
    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(accountType, Account.class, "Account", false);
    property = getLocalProperty(accountType, 0);
    initializeProperty(property, theModelPackageImpl.getInt(), "accountNum", "0", 0, 1, Account.class, false, true, false);

    initializeType(customerType, Customer.class, "Customer", false);
    property = getLocalProperty(customerType, 0);
    initializeProperty(property, this.getAccount(), "account", null, 1, 1, Customer.class, false, true, false, true , null);

    property = getLocalProperty(customerType, 1);
    initializeProperty(property, theModelPackageImpl.getString(), "firstName", null, 0, 1, Customer.class, false, true, false);

    createXSDMetaData(theModelPackageImpl);
  }
View Full Code Here


  {
    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(oneElementAndAnyAttrType, OneElementAndAnyAttr.class, "OneElementAndAnyAttr", false);
    property = getLocalProperty(oneElementAndAnyAttrType, 0);
    initializeProperty(property, theModelPackageImpl.getString(), "name", null, 1, 1, OneElementAndAnyAttr.class, false, true, false);

    property = getLocalProperty(oneElementAndAnyAttrType, 1);
    initializeProperty(property, getSequence(), "anyAttribute", null, 0, -1, OneElementAndAnyAttr.class, false, false, false);

    createXSDMetaData(theModelPackageImpl);
View Full Code Here

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)ModelFactory.INSTANCE;
    Property property = null;

    // Add supertypes to types
    addSuperType(bprimeType, this.getB());

    // Initialize types and properties
    initializeType(aType, A.class, "A", false);
    property = getLocalProperty(aType, 0);
    initializeProperty(property, getSequence(), "ge1Group", null, 1, 1, A.class, false, false, false);

    property = getLocalProperty(aType, 1);
    initializeProperty(property, this.getB(), "ge1", null, 1, 1, A.class, false, true, true, true , null);

    initializeType(bType, B.class, "B", false);
    property = getLocalProperty(bType, 0);
    initializeProperty(property, theModelPackageImpl.getString(), "imInTypeB", null, 1, 1, B.class, false, true, false);

    initializeType(bprimeType, Bprime.class, "Bprime", false);
    property = getLocalProperty(bprimeType, 0);
    initializeProperty(property, theModelPackageImpl.getString(), "imInTypeBprime", null, 1, 1, Bprime.class, false, true, false);

    createXSDMetaData(theModelPackageImpl);
  }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sdo.model.impl.ModelFactoryImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.