org.umlg.model.Testoclmodel Maven / Gradle / Ivy
package org.umlg.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.tinkerpop.gremlin.structure.Direction;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.umlg.associationclass.Company;
import org.umlg.associationclass.Friendship;
import org.umlg.associationclass.Job;
import org.umlg.associationclass.Person;
import org.umlg.associationclass.meta.CompanyMeta;
import org.umlg.associationclass.meta.FriendshipMeta;
import org.umlg.associationclass.meta.JobMeta;
import org.umlg.associationclass.meta.PersonMeta;
import org.umlg.enumeration.TestEnumeration;
import org.umlg.enumeration.meta.TestEnumerationMeta;
import org.umlg.oclassociationrole.Many;
import org.umlg.oclassociationrole.One;
import org.umlg.oclassociationrole.meta.ManyMeta;
import org.umlg.oclassociationrole.meta.OneMeta;
import org.umlg.qualifier.A;
import org.umlg.qualifier.B;
import org.umlg.qualifier.Bank;
import org.umlg.qualifier.C;
import org.umlg.qualifier.D;
import org.umlg.qualifier.meta.AMeta;
import org.umlg.qualifier.meta.BMeta;
import org.umlg.qualifier.meta.BankMeta;
import org.umlg.qualifier.meta.CMeta;
import org.umlg.qualifier.meta.CustomerMeta;
import org.umlg.qualifier.meta.DMeta;
import org.umlg.qualifier.meta.Depth1Meta;
import org.umlg.qualifier.meta.Depth2Meta;
import org.umlg.qualifier.meta.EmployeeMeta;
import org.umlg.runtime.adaptor.UMLG;
import org.umlg.runtime.adaptor.UmlgLabelConverterFactory;
import org.umlg.runtime.collection.UmlgRuntimeProperty;
import org.umlg.runtime.collection.UmlgSet;
import org.umlg.runtime.collection.memory.UmlgMemorySequence;
import org.umlg.runtime.domain.DataTypeEnum;
import org.umlg.runtime.domain.UmlgApplicationNode;
import org.umlg.runtime.domain.UmlgMetaNode;
import org.umlg.runtime.validation.UmlgValidation;
import org.umlg.testocl.OclTest1;
import org.umlg.testocl.OclTest2;
import org.umlg.testocl.meta.OclTest1Meta;
import org.umlg.testocl.meta.OclTest2Meta;
import org.umlg.testocl.meta.OclTestCollection2Meta;
import org.umlg.testocl.meta.OclTestCollectionMeta;
/** This class represents the model testoclmodel.
It is a singleton and allows on access to all the root classes in the model.
*/
public class Testoclmodel implements UmlgApplicationNode {
static public Testoclmodel INSTANCE = new Testoclmodel();
/**
* default constructor for Testoclmodel
*/
private Testoclmodel() {
}
public UmlgSet extends A> getA() {
return org.umlg.qualifier.A.allInstances();
}
public AMeta getAMeta() {
return org.umlg.qualifier.meta.AMeta.getInstance();
}
public UmlgSet extends B> getB() {
return org.umlg.qualifier.B.allInstances();
}
public BMeta getBMeta() {
return org.umlg.qualifier.meta.BMeta.getInstance();
}
public UmlgSet extends Bank> getBank() {
return org.umlg.qualifier.Bank.allInstances();
}
public BankMeta getBankMeta() {
return org.umlg.qualifier.meta.BankMeta.getInstance();
}
public UmlgSet extends C> getC() {
return org.umlg.qualifier.C.allInstances();
}
public CMeta getCMeta() {
return org.umlg.qualifier.meta.CMeta.getInstance();
}
public UmlgSet extends Company> getCompany() {
return org.umlg.associationclass.Company.allInstances();
}
public CompanyMeta getCompanyMeta() {
return org.umlg.associationclass.meta.CompanyMeta.getInstance();
}
public CustomerMeta getCustomerMeta() {
return org.umlg.qualifier.meta.CustomerMeta.getInstance();
}
public UmlgSet extends D> getD() {
return org.umlg.qualifier.D.allInstances();
}
public DMeta getDMeta() {
return org.umlg.qualifier.meta.DMeta.getInstance();
}
public Depth1Meta getDepth1Meta() {
return org.umlg.qualifier.meta.Depth1Meta.getInstance();
}
public Depth2Meta getDepth2Meta() {
return org.umlg.qualifier.meta.Depth2Meta.getInstance();
}
public EmployeeMeta getEmployeeMeta() {
return org.umlg.qualifier.meta.EmployeeMeta.getInstance();
}
public UmlgSet extends Friendship> getFriendship() {
return org.umlg.associationclass.Friendship.allInstances();
}
public FriendshipMeta getFriendshipMeta() {
return org.umlg.associationclass.meta.FriendshipMeta.getInstance();
}
@Override
public Object getId() {
return getRootVertex().id();
}
public UmlgSet extends Job> getJob() {
return org.umlg.associationclass.Job.allInstances();
}
public JobMeta getJobMeta() {
return org.umlg.associationclass.meta.JobMeta.getInstance();
}
public UmlgSet extends Many> getMany() {
return org.umlg.oclassociationrole.Many.allInstances();
}
public ManyMeta getManyMeta() {
return org.umlg.oclassociationrole.meta.ManyMeta.getInstance();
}
@Override
public UmlgMetaNode getMetaClassForQualifiedName(String qualifiedName) {
switch ( qualifiedName ) {
case "testoclmodel::org::umlg::qualifier::Depth2":
return getDepth2Meta();
case "testoclmodel::org::umlg::testocl::OclTest1":
return getOclTest1Meta();
case "testoclmodel::org::umlg::associationclass::Friendship":
return getFriendshipMeta();
case "testoclmodel::org::umlg::enumeration::TestEnumeration":
return getTestEnumerationMeta();
case "testoclmodel::org::umlg::testocl::OclTestCollection":
return getOclTestCollectionMeta();
case "testoclmodel::org::umlg::testocl::OclTestCollection2":
return getOclTestCollection2Meta();
case "testoclmodel::org::umlg::associationclass::Company":
return getCompanyMeta();
case "testoclmodel::org::umlg::testocl::OclTest2":
return getOclTest2Meta();
case "testoclmodel::org::umlg::qualifier::Bank":
return getBankMeta();
case "testoclmodel::org::umlg::qualifier::Customer":
return getCustomerMeta();
case "testoclmodel::org::umlg::qualifier::C":
return getCMeta();
case "testoclmodel::org::umlg::oclassociationrole::One":
return getOneMeta();
case "testoclmodel::org::umlg::qualifier::Employee":
return getEmployeeMeta();
case "testoclmodel::org::umlg::qualifier::Depth1":
return getDepth1Meta();
case "testoclmodel::org::umlg::qualifier::A":
return getAMeta();
case "testoclmodel::org::umlg::associationclass::Job":
return getJobMeta();
case "testoclmodel::org::umlg::qualifier::D":
return getDMeta();
case "testoclmodel::org::umlg::associationclass::Person":
return getPersonMeta();
case "testoclmodel::org::umlg::qualifier::B":
return getBMeta();
case "testoclmodel::org::umlg::oclassociationrole::Many":
return getManyMeta();
default:
throw new IllegalArgumentException("Unknown qualified name: " + qualifiedName + "!");
}
}
public UmlgSet extends OclTest1> getOclTest1() {
return org.umlg.testocl.OclTest1.allInstances();
}
public OclTest1Meta getOclTest1Meta() {
return org.umlg.testocl.meta.OclTest1Meta.getInstance();
}
public UmlgSet extends OclTest2> getOclTest2() {
return org.umlg.testocl.OclTest2.allInstances();
}
public OclTest2Meta getOclTest2Meta() {
return org.umlg.testocl.meta.OclTest2Meta.getInstance();
}
public OclTestCollection2Meta getOclTestCollection2Meta() {
return org.umlg.testocl.meta.OclTestCollection2Meta.getInstance();
}
public OclTestCollectionMeta getOclTestCollectionMeta() {
return org.umlg.testocl.meta.OclTestCollectionMeta.getInstance();
}
public UmlgSet extends One> getOne() {
return org.umlg.oclassociationrole.One.allInstances();
}
public OneMeta getOneMeta() {
return org.umlg.oclassociationrole.meta.OneMeta.getInstance();
}
public UmlgSet extends Person> getPerson() {
return org.umlg.associationclass.Person.allInstances();
}
public PersonMeta getPersonMeta() {
return org.umlg.associationclass.meta.PersonMeta.getInstance();
}
public UmlgSet extends TestEnumeration> getTestEnumeration() {
return org.umlg.enumeration.TestEnumeration.allInstances();
}
public TestEnumerationMeta getTestEnumerationMeta() {
return org.umlg.enumeration.meta.TestEnumerationMeta.getInstance();
}
public String toJson() {
return "{\"id\": " + getId() + "}";
}
private Vertex getRootVertex() {
return UMLG.get().getRoot();
}
static public enum TestoclmodelRuntimePropertyEnum implements UmlgRuntimeProperty {
testoclmodel(/* qualifiedName */ "testoclmodel",/* persistentName */ "testoclmodel",/* inverseName */ "inverseOftestoclmodel",/* inverseQualifiedName */ "inverseOftestoclmodel",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ true,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("roottestoclmodel"),/* isOneToOne */ true,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ false,/* isNavigable */ false,/* propertyType */ Object.class,/* json */ "{\"name\": \"testoclmodel\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel\", \"persistentName\": \"testoclmodel\", \"inverseName\": \"inverseOftestoclmodel\", \"inverseQualifiedName\": \"inverseOftestoclmodel\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": true, \"oneToOne\": true, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"roottestoclmodel\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": false, \"navigable\": false}",/* isChangeListenerAttribute */ false),
oclTest1(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1",/* persistentName */ "OclTest1",/* inverseName */ "inverseOf::OclTest1",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootOclTest1"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ OclTest1.class,/* json */ "{\"name\": \"oclTest1\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1\", \"persistentName\": \"OclTest1\", \"inverseName\": \"inverseOf::OclTest1\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootOclTest1\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclTest2(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest2",/* persistentName */ "OclTest2",/* inverseName */ "inverseOf::OclTest2",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest2",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootOclTest2"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ OclTest2.class,/* json */ "{\"name\": \"oclTest2\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest2\", \"persistentName\": \"OclTest2\", \"inverseName\": \"inverseOf::OclTest2\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest2\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootOclTest2\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
bank(/* qualifiedName */ "testoclmodel::org::umlg::qualifier::Bank",/* persistentName */ "Bank",/* inverseName */ "inverseOf::Bank",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::qualifier::Bank",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootBank"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ Bank.class,/* json */ "{\"name\": \"bank\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::qualifier::Bank\", \"persistentName\": \"Bank\", \"inverseName\": \"inverseOf::Bank\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::qualifier::Bank\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootBank\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
a(/* qualifiedName */ "testoclmodel::org::umlg::qualifier::A",/* persistentName */ "A",/* inverseName */ "inverseOf::A",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::qualifier::A",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootA"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ A.class,/* json */ "{\"name\": \"a\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::qualifier::A\", \"persistentName\": \"A\", \"inverseName\": \"inverseOf::A\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::qualifier::A\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootA\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
b(/* qualifiedName */ "testoclmodel::org::umlg::qualifier::B",/* persistentName */ "B",/* inverseName */ "inverseOf::B",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::qualifier::B",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootB"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ B.class,/* json */ "{\"name\": \"b\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::qualifier::B\", \"persistentName\": \"B\", \"inverseName\": \"inverseOf::B\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::qualifier::B\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootB\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
c(/* qualifiedName */ "testoclmodel::org::umlg::qualifier::C",/* persistentName */ "C",/* inverseName */ "inverseOf::C",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::qualifier::C",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootC"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ C.class,/* json */ "{\"name\": \"c\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::qualifier::C\", \"persistentName\": \"C\", \"inverseName\": \"inverseOf::C\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::qualifier::C\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootC\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
d(/* qualifiedName */ "testoclmodel::org::umlg::qualifier::D",/* persistentName */ "D",/* inverseName */ "inverseOf::D",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::qualifier::D",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootD"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ D.class,/* json */ "{\"name\": \"d\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::qualifier::D\", \"persistentName\": \"D\", \"inverseName\": \"inverseOf::D\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::qualifier::D\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootD\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
one(/* qualifiedName */ "testoclmodel::org::umlg::oclassociationrole::One",/* persistentName */ "One",/* inverseName */ "inverseOf::One",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::oclassociationrole::One",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootOne"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ One.class,/* json */ "{\"name\": \"one\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::oclassociationrole::One\", \"persistentName\": \"One\", \"inverseName\": \"inverseOf::One\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::oclassociationrole::One\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootOne\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
many(/* qualifiedName */ "testoclmodel::org::umlg::oclassociationrole::Many",/* persistentName */ "Many",/* inverseName */ "inverseOf::Many",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::oclassociationrole::Many",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootMany"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ Many.class,/* json */ "{\"name\": \"many\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::oclassociationrole::Many\", \"persistentName\": \"Many\", \"inverseName\": \"inverseOf::Many\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::oclassociationrole::Many\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootMany\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
person(/* qualifiedName */ "testoclmodel::org::umlg::associationclass::Person",/* persistentName */ "Person",/* inverseName */ "inverseOf::Person",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::associationclass::Person",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootPerson"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ Person.class,/* json */ "{\"name\": \"person\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::associationclass::Person\", \"persistentName\": \"Person\", \"inverseName\": \"inverseOf::Person\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::associationclass::Person\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootPerson\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
company(/* qualifiedName */ "testoclmodel::org::umlg::associationclass::Company",/* persistentName */ "Company",/* inverseName */ "inverseOf::Company",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::associationclass::Company",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootCompany"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ Company.class,/* json */ "{\"name\": \"company\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::associationclass::Company\", \"persistentName\": \"Company\", \"inverseName\": \"inverseOf::Company\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::associationclass::Company\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootCompany\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testEnumeration(/* qualifiedName */ "testoclmodel::org::umlg::enumeration::TestEnumeration",/* persistentName */ "TestEnumeration",/* inverseName */ "inverseOf::TestEnumeration",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::enumeration::TestEnumeration",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ false,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("rootTestEnumeration"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ TestEnumeration.class,/* json */ "{\"name\": \"testEnumeration\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::enumeration::TestEnumeration\", \"persistentName\": \"TestEnumeration\", \"inverseName\": \"inverseOf::TestEnumeration\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::enumeration::TestEnumeration\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": false, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"rootTestEnumeration\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false);
private String _qualifiedName;
private String _persistentName;
private String _inverseName;
private String _inverseQualifiedName;
private boolean _associationClassOne;
private boolean _memberEndOfAssociationClass;
private String _associationClassPropertyName;
private String _inverseAssociationClassPropertyName;
private boolean _associationClassProperty;
private boolean _onePrimitivePropertyOfAssociationClass;
private boolean _onePrimitive;
private Boolean _readOnly;
private DataTypeEnum dataTypeEnum;
private List validations;
private boolean _manyPrimitive;
private boolean _oneEnumeration;
private boolean _manyEnumeration;
private boolean _controllingSide;
private boolean _composite;
private boolean _inverseComposite;
private String _label;
private boolean _oneToOne;
private boolean _oneToMany;
private boolean _manyToOne;
private boolean _manyToMany;
private int _upper;
private int _lower;
private int _inverseUpper;
private boolean _qualified;
private boolean _inverseQualified;
private boolean _ordered;
private boolean _inverseOrdered;
private boolean _unique;
private boolean _inverseUnique;
private boolean _derived;
private boolean _navigability;
private Class _propertyType;
private String _json;
private boolean _changeListener;
/**
* constructor for TestoclmodelRuntimePropertyEnum
*
* @param _qualifiedName
* @param _persistentName
* @param _inverseName
* @param _inverseQualifiedName
* @param _associationClassOne
* @param _memberEndOfAssociationClass
* @param _associationClassPropertyName
* @param _inverseAssociationClassPropertyName
* @param _associationClassProperty
* @param _onePrimitivePropertyOfAssociationClass
* @param _onePrimitive
* @param _readOnly
* @param dataTypeEnum
* @param validations
* @param _manyPrimitive
* @param _oneEnumeration
* @param _manyEnumeration
* @param _controllingSide
* @param _composite
* @param _inverseComposite
* @param _label
* @param _oneToOne
* @param _oneToMany
* @param _manyToOne
* @param _manyToMany
* @param _upper
* @param _lower
* @param _inverseUpper
* @param _qualified
* @param _inverseQualified
* @param _ordered
* @param _inverseOrdered
* @param _unique
* @param _inverseUnique
* @param _derived
* @param _navigability
* @param _propertyType
* @param _json
* @param _changeListener
*/
private TestoclmodelRuntimePropertyEnum(String _qualifiedName, String _persistentName, String _inverseName, String _inverseQualifiedName, boolean _associationClassOne, boolean _memberEndOfAssociationClass, String _associationClassPropertyName, String _inverseAssociationClassPropertyName, boolean _associationClassProperty, boolean _onePrimitivePropertyOfAssociationClass, boolean _onePrimitive, Boolean _readOnly, DataTypeEnum dataTypeEnum, List validations, boolean _manyPrimitive, boolean _oneEnumeration, boolean _manyEnumeration, boolean _controllingSide, boolean _composite, boolean _inverseComposite, String _label, boolean _oneToOne, boolean _oneToMany, boolean _manyToOne, boolean _manyToMany, int _upper, int _lower, int _inverseUpper, boolean _qualified, boolean _inverseQualified, boolean _ordered, boolean _inverseOrdered, boolean _unique, boolean _inverseUnique, boolean _derived, boolean _navigability, Class _propertyType, String _json, boolean _changeListener) {
this._qualifiedName = _qualifiedName;
this._persistentName = _persistentName;
this._inverseName = _inverseName;
this._inverseQualifiedName = _inverseQualifiedName;
this._associationClassOne = _associationClassOne;
this._memberEndOfAssociationClass = _memberEndOfAssociationClass;
this._associationClassPropertyName = _associationClassPropertyName;
this._inverseAssociationClassPropertyName = _inverseAssociationClassPropertyName;
this._associationClassProperty = _associationClassProperty;
this._onePrimitivePropertyOfAssociationClass = _onePrimitivePropertyOfAssociationClass;
this._onePrimitive = _onePrimitive;
this._readOnly = _readOnly;
this.dataTypeEnum = dataTypeEnum;
this.validations = validations;
this._manyPrimitive = _manyPrimitive;
this._oneEnumeration = _oneEnumeration;
this._manyEnumeration = _manyEnumeration;
this._controllingSide = _controllingSide;
this._composite = _composite;
this._inverseComposite = _inverseComposite;
this._label = _label;
this._oneToOne = _oneToOne;
this._oneToMany = _oneToMany;
this._manyToOne = _manyToOne;
this._manyToMany = _manyToMany;
this._upper = _upper;
this._lower = _lower;
this._inverseUpper = _inverseUpper;
this._qualified = _qualified;
this._inverseQualified = _inverseQualified;
this._ordered = _ordered;
this._inverseOrdered = _inverseOrdered;
this._unique = _unique;
this._inverseUnique = _inverseUnique;
this._derived = _derived;
this._navigability = _navigability;
this._propertyType = _propertyType;
this._json = _json;
this._changeListener = _changeListener;
}
static public String asJson() {
int count = 1;
StringBuilder sb = new StringBuilder();;
sb.append("{\"name\": \"testoclmodel\", ");
sb.append("\"uri\": \"TODO\", ");
sb.append("\"properties\": [");
sb.append(TestoclmodelRuntimePropertyEnum.testoclmodel.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.oclTest1.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.oclTest2.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.bank.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.a.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.b.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.c.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.d.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.one.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.many.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.person.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.company.toJson());
sb.append(",");
sb.append(TestoclmodelRuntimePropertyEnum.testEnumeration.toJson());
sb.append("]}");
return sb.toString();
}
static public TestoclmodelRuntimePropertyEnum fromInverseQualifiedName(String inverseQualifiedName) {
if ( testEnumeration.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testEnumeration;
}
if ( company.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return company;
}
if ( person.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return person;
}
if ( many.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return many;
}
if ( one.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return one;
}
if ( d.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return d;
}
if ( c.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return c;
}
if ( b.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return b;
}
if ( a.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return a;
}
if ( bank.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return bank;
}
if ( oclTest2.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclTest2;
}
if ( oclTest1.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclTest1;
}
if ( testoclmodel.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testoclmodel;
}
return null;
}
static public TestoclmodelRuntimePropertyEnum fromLabel(String _label) {
if ( testEnumeration.getLabel().equals(_label) ) {
return testEnumeration;
}
if ( company.getLabel().equals(_label) ) {
return company;
}
if ( person.getLabel().equals(_label) ) {
return person;
}
if ( many.getLabel().equals(_label) ) {
return many;
}
if ( one.getLabel().equals(_label) ) {
return one;
}
if ( d.getLabel().equals(_label) ) {
return d;
}
if ( c.getLabel().equals(_label) ) {
return c;
}
if ( b.getLabel().equals(_label) ) {
return b;
}
if ( a.getLabel().equals(_label) ) {
return a;
}
if ( bank.getLabel().equals(_label) ) {
return bank;
}
if ( oclTest2.getLabel().equals(_label) ) {
return oclTest2;
}
if ( oclTest1.getLabel().equals(_label) ) {
return oclTest1;
}
if ( testoclmodel.getLabel().equals(_label) ) {
return testoclmodel;
}
return null;
}
static public TestoclmodelRuntimePropertyEnum fromQualifiedName(String qualifiedName) {
if ( testEnumeration.getQualifiedName().equals(qualifiedName) ) {
return testEnumeration;
}
if ( company.getQualifiedName().equals(qualifiedName) ) {
return company;
}
if ( person.getQualifiedName().equals(qualifiedName) ) {
return person;
}
if ( many.getQualifiedName().equals(qualifiedName) ) {
return many;
}
if ( one.getQualifiedName().equals(qualifiedName) ) {
return one;
}
if ( d.getQualifiedName().equals(qualifiedName) ) {
return d;
}
if ( c.getQualifiedName().equals(qualifiedName) ) {
return c;
}
if ( b.getQualifiedName().equals(qualifiedName) ) {
return b;
}
if ( a.getQualifiedName().equals(qualifiedName) ) {
return a;
}
if ( bank.getQualifiedName().equals(qualifiedName) ) {
return bank;
}
if ( oclTest2.getQualifiedName().equals(qualifiedName) ) {
return oclTest2;
}
if ( oclTest1.getQualifiedName().equals(qualifiedName) ) {
return oclTest1;
}
if ( testoclmodel.getQualifiedName().equals(qualifiedName) ) {
return testoclmodel;
}
return null;
}
public String getAssociationClassPropertyName() {
return this._associationClassPropertyName;
}
public DataTypeEnum getDataTypeEnum() {
return this.dataTypeEnum;
}
public String getInverseAssociationClassPropertyName() {
return this._inverseAssociationClassPropertyName;
}
public String getInverseName() {
return this._inverseName;
}
public String getInverseQualifiedName() {
return this._inverseQualifiedName;
}
public int getInverseUpper() {
return this._inverseUpper;
}
public String getJson() {
return this._json;
}
public String getLabel() {
return this._label;
}
public int getLower() {
return this._lower;
}
public String getPersistentName() {
return this._persistentName;
}
public Class getPropertyType() {
return this._propertyType;
}
public String getQualifiedName() {
return this._qualifiedName;
}
public Boolean getReadOnly() {
return this._readOnly;
}
public int getUpper() {
return this._upper;
}
public List getValidations() {
return this.validations;
}
public boolean isAssociationClassOne() {
return this._associationClassOne;
}
public boolean isAssociationClassProperty() {
return this._associationClassProperty;
}
public boolean isChangeListener() {
return this._changeListener;
}
public boolean isComposite() {
return this._composite;
}
public boolean isControllingSide() {
return this._controllingSide;
}
public boolean isDerived() {
return this._derived;
}
public boolean isInverseComposite() {
return this._inverseComposite;
}
public boolean isInverseOrdered() {
return this._inverseOrdered;
}
public boolean isInverseQualified() {
return this._inverseQualified;
}
public boolean isInverseUnique() {
return this._inverseUnique;
}
public boolean isManyEnumeration() {
return this._manyEnumeration;
}
public boolean isManyPrimitive() {
return this._manyPrimitive;
}
public boolean isManyToMany() {
return this._manyToMany;
}
public boolean isManyToOne() {
return this._manyToOne;
}
public boolean isMemberEndOfAssociationClass() {
return this._memberEndOfAssociationClass;
}
public boolean isNavigability() {
return this._navigability;
}
public boolean isOneEnumeration() {
return this._oneEnumeration;
}
public boolean isOnePrimitive() {
return this._onePrimitive;
}
public boolean isOnePrimitivePropertyOfAssociationClass() {
return this._onePrimitivePropertyOfAssociationClass;
}
public boolean isOneToMany() {
return this._oneToMany;
}
public boolean isOneToOne() {
return this._oneToOne;
}
public boolean isOrdered() {
return this._ordered;
}
public boolean isQualified() {
return this._qualified;
}
public boolean isUnique() {
return this._unique;
}
@Override
public boolean isValid(int elementCount) {
if ( isQualified() ) {
return elementCount >= getLower();
} else {
return (getUpper() == -1 || elementCount <= getUpper()) && elementCount >= getLower();
}
}
@Override
public String toJson() {
return getJson();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy