Examples of ModelFactoryImpl


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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types

    // Initialize types and properties
    initializeType(mixedQuoteType, MixedQuote.class, "MixedQuote", false);
    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_MIXED);
    initializeProperty(property, getSequence(), "mixed", null, 0, -1, MixedQuote.class, false, false, false);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_SYMBOL);
    initializeProperty(property, theModelPackageImpl.getString(), "symbol", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_COMPANY_NAME);
    initializeProperty(property, theModelPackageImpl.getString(), "companyName", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_PRICE);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "price", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_OPEN1);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "open1", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_HIGH);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "high", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_LOW);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "low", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_VOLUME);
    initializeProperty(property, theModelPackageImpl.getDouble(), "volume", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_CHANGE1);
    initializeProperty(property, theModelPackageImpl.getDouble(), "change1", null, 1, 1, MixedQuote.class, false, true, true);

    property = getProperty(mixedQuoteType, MixedQuoteImpl.INTERNAL_QUOTES);
    initializeProperty(property, this.getMixedQuote(), "quotes", null, 0, -1, MixedQuote.class, false, false, true, true , null);

    initializeType(mixedRepeatingChoiceType, MixedRepeatingChoice.class, "MixedRepeatingChoice", false);
    property = getProperty(mixedRepeatingChoiceType, MixedRepeatingChoiceImpl.INTERNAL_MIXED);
    initializeProperty(property, getSequence(), "mixed", null, 0, -1, MixedRepeatingChoice.class, false, false, false);

    property = getProperty(mixedRepeatingChoiceType, MixedRepeatingChoiceImpl.INTERNAL_GROUP);
    initializeProperty(property, getSequence(), "group", null, 0, -1, MixedRepeatingChoice.class, false, false, true);

    property = getProperty(mixedRepeatingChoiceType, MixedRepeatingChoiceImpl.INTERNAL_A);
    initializeProperty(property, theModelPackageImpl.getString(), "a", null, 0, -1, MixedRepeatingChoice.class, false, false, true);

    property = getProperty(mixedRepeatingChoiceType, MixedRepeatingChoiceImpl.INTERNAL_B);
    initializeProperty(property, theModelPackageImpl.getInt(), "b", null, 0, -1, MixedRepeatingChoice.class, false, false, true);

    initializeType(repeatingChoiceType, RepeatingChoice.class, "RepeatingChoice", false);
    property = getProperty(repeatingChoiceType, RepeatingChoiceImpl.INTERNAL_GROUP);
    initializeProperty(property, getSequence(), "group", null, 0, -1, RepeatingChoice.class, false, false, false);

    property = getProperty(repeatingChoiceType, RepeatingChoiceImpl.INTERNAL_A);
    initializeProperty(property, theModelPackageImpl.getString(), "a", null, 0, -1, RepeatingChoice.class, false, false, true);

    property = getProperty(repeatingChoiceType, RepeatingChoiceImpl.INTERNAL_B);
    initializeProperty(property, theModelPackageImpl.getInt(), "b", null, 0, -1, RepeatingChoice.class, false, false, true);

    initializeType(twoRCsType, TwoRCs.class, "TwoRCs", false);
    property = getProperty(twoRCsType, TwoRCsImpl.INTERNAL_GROUP);
    initializeProperty(property, getSequence(), "group", null, 0, -1, TwoRCs.class, false, false, false);

    property = getProperty(twoRCsType, TwoRCsImpl.INTERNAL_A);
    initializeProperty(property, theModelPackageImpl.getString(), "a", null, 0, -1, TwoRCs.class, false, false, true);

    property = getProperty(twoRCsType, TwoRCsImpl.INTERNAL_B);
    initializeProperty(property, theModelPackageImpl.getInt(), "b", null, 0, -1, TwoRCs.class, false, false, true);

    property = getProperty(twoRCsType, TwoRCsImpl.INTERNAL_SPLIT);
    initializeProperty(property, theModelPackageImpl.getString(), "split", null, 1, 1, TwoRCs.class, false, true, false);

    property = getProperty(twoRCsType, TwoRCsImpl.INTERNAL_GROUP1);
    initializeProperty(property, getSequence(), "group1", null, 0, -1, TwoRCs.class, false, false, false);

    property = getProperty(twoRCsType, TwoRCsImpl.INTERNAL_Y);
    initializeProperty(property, theModelPackageImpl.getString(), "y", null, 0, -1, TwoRCs.class, false, false, true);

    property = getProperty(twoRCsType, TwoRCsImpl.INTERNAL_Z);
    initializeProperty(property, theModelPackageImpl.getInt(), "z", null, 0, -1, TwoRCs.class, false, false, true);

    initializeType(twoRCsMixedType, TwoRCsMixed.class, "TwoRCsMixed", false);
    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_MIXED);
    initializeProperty(property, getSequence(), "mixed", null, 0, -1, TwoRCsMixed.class, false, false, false);

    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_GROUP);
    initializeProperty(property, getSequence(), "group", null, 0, -1, TwoRCsMixed.class, false, false, true);

    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_A);
    initializeProperty(property, theModelPackageImpl.getString(), "a", null, 0, -1, TwoRCsMixed.class, false, false, true);

    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_B);
    initializeProperty(property, theModelPackageImpl.getInt(), "b", null, 0, -1, TwoRCsMixed.class, false, false, true);

    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_SPLIT);
    initializeProperty(property, theModelPackageImpl.getString(), "split", null, 1, 1, TwoRCsMixed.class, false, true, true);

    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_GROUP1);
    initializeProperty(property, getSequence(), "group1", null, 0, -1, TwoRCsMixed.class, false, false, true);

    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_Y);
    initializeProperty(property, theModelPackageImpl.getString(), "y", null, 0, -1, TwoRCsMixed.class, false, false, true);

    property = getProperty(twoRCsMixedType, TwoRCsMixedImpl.INTERNAL_Z);
    initializeProperty(property, theModelPackageImpl.getInt(), "z", null, 0, -1, TwoRCsMixed.class, false, false, true);

    createXSDMetaData(theModelPackageImpl);
  }
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types

    // Initialize types and properties
    initializeType(xmlInfoType, XMLInfo.class, "XMLInfo", false);
    property = getProperty(xmlInfoType, XMLInfoImpl.INTERNAL_XML_ELEMENT);
    initializeProperty(property, theModelPackageImpl.getBoolean(), "xmlElement", null, 0, 1, XMLInfo.class, false, true, false);

    createXSDMetaData(theModelPackageImpl);
  }
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types

    // Initialize types and properties
    initializeType(javaInfoType, JavaInfo.class, "JavaInfo", false);
    property = getProperty(javaInfoType, JavaInfoImpl.INTERNAL_JAVA_CLASS);
    initializeProperty(property, theModelPackageImpl.getString(), "javaClass", null, 0, 1, JavaInfo.class, false, true, false);

    // Initialize data types
    initializeType(booleanObjectType, Boolean.class, "BooleanObject", true, false);
    setInstanceProperty (booleanObjectType, "commonj.sdo/java", "instanceClass", "java.lang.Boolean");
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types

    // Initialize types and properties
    initializeType(expectedExceptionTypeType, ExpectedExceptionType.class, "ExpectedExceptionType", false);
    property = getLocalProperty(expectedExceptionTypeType, 0);
    initializeProperty(property, theModelPackageImpl.getString(), "stringVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 1);
    initializeProperty(property, theModelPackageImpl.getBoolean(), "booleanVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 2);
    initializeProperty(property, theModelPackageImpl.getByte(), "byteVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 3);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "decimalVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 4);
    initializeProperty(property, theModelPackageImpl.getInt(), "intVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 5);
    initializeProperty(property, theModelPackageImpl.getFloat(), "floatVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 6);
    initializeProperty(property, theModelPackageImpl.getDouble(), "doubleVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 7);
    initializeProperty(property, theModelPackageImpl.getDateTime(), "dateVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 8);
    initializeProperty(property, theModelPackageImpl.getShort(), "shortVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 9);
    initializeProperty(property, theModelPackageImpl.getLong(), "longVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 10);
    initializeProperty(property, theModelPackageImpl.getString(), "listVal", null, 0, -1, ExpectedExceptionType.class, false, false, false);

    property = getLocalProperty(expectedExceptionTypeType, 11);
    initializeProperty(property, theModelPackageImpl.getBytes(), "bytesVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 12);
    initializeProperty(property, theModelPackageImpl.getInteger(), "integerVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 13);
    initializeProperty(property, this.getchar(), "charVal", null, 1, 1, ExpectedExceptionType.class, false, true, false);

    property = getLocalProperty(expectedExceptionTypeType, 14);
    initializeProperty(property, theModelPackageImpl.getString(), "readOnlyVal", null, 1, 1, ExpectedExceptionType.class, true, true, false);
    setInstanceProperty (property, "commonj.sdo/xml", "readOnly", "true");

    property = getLocalProperty(expectedExceptionTypeType, 15);
    initializeProperty(property, theModelPackageImpl.getString(), "readOnlyListVal", null, 1, 1, ExpectedExceptionType.class, true, true, false);
    setInstanceProperty (property, "commonj.sdo/xml", "readOnly", "true");

    initializeType(sequenceReadOnlyTypeType, SequenceReadOnlyType.class, "SequenceReadOnlyType", false);
    property = getLocalProperty(sequenceReadOnlyTypeType, 0);
    initializeProperty(property, getSequence(), "mixed", null, 0, -1, SequenceReadOnlyType.class, false, false, false);

    property = getLocalProperty(sequenceReadOnlyTypeType, 1);
    initializeProperty(property, theModelPackageImpl.getString(), "readOnlyVal", null, 1, 1, SequenceReadOnlyType.class, true, true, true);
    setInstanceProperty (property, "commonj.sdo/xml", "readOnly", "true");

    property = getLocalProperty(sequenceReadOnlyTypeType, 2);
    initializeProperty(property, theModelPackageImpl.getString(), "readOnlyListVal", null, 1, 1, SequenceReadOnlyType.class, true, true, true);
    setInstanceProperty (property, "commonj.sdo/xml", "readOnly", "true");

    property = getLocalProperty(sequenceReadOnlyTypeType, 3);
    initializeProperty(property, theModelPackageImpl.getString(), "uniqueName", null, 1, 1, SequenceReadOnlyType.class, false, true, true);

    // Initialize data types
    initializeType(char_Type, String.class, "char", true, false);

    createXSDMetaData(theModelPackageImpl);
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to classes

    // Initialize classes and features; add operations and parameters
    initializeType(javaMetaDataType, JavaMetaData.class, "JavaMetaData");

    property = (Property)javaMetaDataType.getProperties().get(JavaMetaDataImpl.FACTORY_INTERFACE);
    initializeProperty(property, theModelPackageImpl.getString(), "factoryInterface", null, 0, 1, JavaMetaData.class, false, false, false);

    property = (Property)javaMetaDataType.getProperties().get(JavaMetaDataImpl.TYPE_INTERFACE);
    initializeProperty(property, theModelPackageImpl.getString(), "typeInterface", null, 0, 1, JavaMetaData.class, false, false, false);

    initializeType(sdoMetaDataGroupType, SDOMetaDataGroup.class, "SDOMetaDataGroup");

    property = (Property)sdoMetaDataGroupType.getProperties().get(SDOMetaDataGroupImpl.JAVA_META_DATA);
    initializeProperty(property, this.getJavaMetaData(), "javaMetaData", null, 0, -1, SDOMetaDataGroup.class, false, false, false, true , null);

    property = (Property)sdoMetaDataGroupType.getProperties().get(SDOMetaDataGroupImpl.XSD_META_DATA);
    initializeProperty(property, this.getXSDMetaData(), "xsdMetaData", null, 0, -1, SDOMetaDataGroup.class, false, false, false, true , null);

    property = (Property)sdoMetaDataGroupType.getProperties().get(SDOMetaDataGroupImpl.TYPE_META_DATA);
    initializeProperty(property, this.getTypeMetaData(), "typeMetaData", null, 0, -1, SDOMetaDataGroup.class, false, false, false, true , null);

    initializeType(typeMetaDataType, TypeMetaData.class, "TypeMetaData");

    property = (Property)typeMetaDataType.getProperties().get(TypeMetaDataImpl.LOCATION);
    initializeProperty(property, theModelPackageImpl.getString(), "location", null, 1, 1, TypeMetaData.class, false, false, false);

    initializeType(xsdMetaDataType, XSDMetaData.class, "XSDMetaData");

    property = (Property)xsdMetaDataType.getProperties().get(XSDMetaDataImpl.LOCATION);
    initializeProperty(property, theModelPackageImpl.getString(), "location", null, 1, 1, XSDMetaData.class, false, false, false);

    createXSDMetaData(theModelPackageImpl);
  }
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

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

    // Add supertypes to types

    // Initialize types and properties
    initializeType(xmlInfoType, XMLInfo.class, "XMLInfo", false);
    property = getLocalProperty(xmlInfoType, 0);
    initializeProperty(property, theModelPackageImpl.getBoolean(), "xmlElement", null, 0, 1, XMLInfo.class, false, true, false);

    createXSDMetaData(theModelPackageImpl, theInternalPackageImpl);
  }
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types

    // 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);

    createXSDMetaData(theModelPackageImpl);
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types

    // Initialize types and properties
    initializeType(containmentTestType, ContainmentTest.class, "ContainmentTest", false);
    property = getLocalProperty(containmentTestType, 0);
    initializeProperty(property, getSequence(), "mixed", null, 0, -1, ContainmentTest.class, false, false, false);

    property = getLocalProperty(containmentTestType, 1);
    initializeProperty(property, theModelPackageImpl.getString(), "Name", null, 1, 1, ContainmentTest.class, false, true, true);

    property = getLocalProperty(containmentTestType, 2);
    initializeProperty(property, this.getContainmentTest(), "Contain", null, 1, 1, ContainmentTest.class, false, true, true, true , null);

    property = getLocalProperty(containmentTestType, 3);
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types

    // Initialize types and properties
    initializeType(quoteType, Quote.class, "Quote", false);
    property = getProperty(quoteType, Quote.INTERNAL_SYMBOL);
    initializeProperty(property, theModelPackageImpl.getString(), "symbol", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_COMPANY_NAME);
    initializeProperty(property, theModelPackageImpl.getString(), "companyName", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_PRICE);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "price", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_OPEN1);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "open1", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_HIGH);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "high", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_LOW);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "low", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_VOLUME);
    initializeProperty(property, theModelPackageImpl.getDouble(), "volume", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_CHANGE1);
    initializeProperty(property, theModelPackageImpl.getDouble(), "change1", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, Quote.INTERNAL_QUOTES);
    initializeProperty(property, this.getQuote(), "quotes", null, 0, -1, Quote.class, false, false, false, true , null);

    createXSDMetaData(theModelPackageImpl);
View Full Code Here

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

  {
    if (isInitialized) return;
    isInitialized = true;

    // Obtain other dependent packages
    ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)FactoryBase.getStaticFactory(ModelFactoryImpl.NAMESPACE_URI);
    Property property = null;

    // Add supertypes to types
    addSuperType(quoteBaseType, quoteType);

    // Initialize types and properties
    initializeType(quoteType, Quote.class, "Quote", false);
    property = getProperty(quoteType, QuoteImpl.INTERNAL_SYMBOL);
    initializeProperty(property, theModelPackageImpl.getString(), "symbol", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_COMPANY_NAME);
    initializeProperty(property, theModelPackageImpl.getString(), "companyName", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_PRICE);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "price", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_OPEN1);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "open1", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_HIGH);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "high", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_LOW);
    initializeProperty(property, theModelPackageImpl.getDecimal(), "low", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_VOLUME);
    initializeProperty(property, theModelPackageImpl.getDouble(), "volume", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_CHANGE1);
    initializeProperty(property, theModelPackageImpl.getDouble(), "change1", null, 1, 1, Quote.class, false, true, false);

    property = getProperty(quoteType, QuoteImpl.INTERNAL_QUOTES);
    initializeProperty(property, this.getQuote(), "quotes", null, 0, -1, Quote.class, false, false, false, true , null);

    initializeType(quoteBaseType, QuoteBase.class, "QuoteBase", false);
    property = getProperty(quoteBaseType, QuoteBaseImpl.INTERNAL_CHANGES);
    initializeProperty(property, theModelPackageImpl.getChangeSummaryType(), "changes", null, 1, 1, QuoteBase.class, false, true, false);

    createXSDMetaData(theModelPackageImpl);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.