Package org.eclipse.emf.json.model

Examples of org.eclipse.emf.json.model.JsonPackage


    setName(eNAME);
    setNsPrefix(eNS_PREFIX);
    setNsURI(eNS_URI);

    // Obtain other dependent packages
    JsonPackage theJsonPackage = (JsonPackage) EPackage.Registry.INSTANCE
        .getEPackage(JsonPackage.eNS_URI);

    // Create type parameters

    // Set bounds for type parameters

    // Add supertypes to classes
    telexEClass.getESuperTypes().add(theJsonPackage.getJsObject());
    tapRuleEClass.getESuperTypes().add(theJsonPackage.getJsObject());

    // Initialize classes and features; add operations and parameters
    initEClass(telexEClass, Telex.class, "Telex", !IS_ABSTRACT,
        !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEAttribute(getTelex_To(), this.getEndpoint(), "to", null, 0, 1,
        Telex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
        !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getTelex_End(), this.getHash(), "end", null, 0, 1,
        Telex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
        IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getTelex_Line(), ecorePackage.getEInt(), "line", null,
        0, 1, Telex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
        IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getTelex_Ring(), ecorePackage.getEInt(), "ring", null,
        0, 1, Telex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
        IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getTelex_BytesReceived(), ecorePackage.getEInt(),
        "bytesReceived", "0", 0, 1, Telex.class, !IS_TRANSIENT,
        !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
        !IS_DERIVED, IS_ORDERED);
    initEAttribute(getTelex_See(), this.getEndpoint(), "see", null, 0, -1,
        Telex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
        IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEReference(getTelex_Tap(), this.getTapRule(), null, "tap", null, 0,
        -1, Telex.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
        IS_COMPOSITE, !IS_RESOLVE_PROXIES, IS_UNSETTABLE, IS_UNIQUE,
        !IS_DERIVED, IS_ORDERED);

    initEClass(tapRuleEClass, TapRule.class, "TapRule", !IS_ABSTRACT,
        !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
    initEReference(getTapRule_Is(), theJsonPackage.getJsObject(), null,
        "is", null, 0, 1, TapRule.class, !IS_TRANSIENT, !IS_VOLATILE,
        IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
        IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
    initEAttribute(getTapRule_Has(), ecorePackage.getEString(), "has",
        null, 0, -1, TapRule.class, !IS_TRANSIENT, !IS_VOLATILE,
View Full Code Here

TOP

Related Classes of org.eclipse.emf.json.model.JsonPackage

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.