Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.umlg.testocl.OclTest1 Maven / Gradle / Ivy
package org.umlg.testocl;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.lang.reflect.Constructor;
import java.util.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.umlg.runtime.adaptor.TransactionThreadEntityVar;
import org.umlg.runtime.adaptor.UMLG;
import org.umlg.runtime.adaptor.UmlgLabelConverterFactory;
import org.umlg.runtime.adaptor.UmlgSchemaFactory;
import org.umlg.runtime.adaptor.UmlgTmpIdManager;
import org.umlg.runtime.collection.Filter;
import org.umlg.runtime.collection.Qualifier;
import org.umlg.runtime.collection.UmlgBag;
import org.umlg.runtime.collection.UmlgOrderedSet;
import org.umlg.runtime.collection.UmlgRuntimeProperty;
import org.umlg.runtime.collection.UmlgSequence;
import org.umlg.runtime.collection.UmlgSet;
import org.umlg.runtime.collection.memory.*;
import org.umlg.runtime.collection.memory.UmlgMemoryBag;
import org.umlg.runtime.collection.memory.UmlgMemoryOrderedSet;
import org.umlg.runtime.collection.memory.UmlgMemorySequence;
import org.umlg.runtime.collection.memory.UmlgMemorySet;
import org.umlg.runtime.collection.ocl.*;
import org.umlg.runtime.collection.persistent.UmlgBagImpl;
import org.umlg.runtime.collection.persistent.UmlgSetImpl;
import org.umlg.runtime.domain.BaseUmlgCompositionNode;
import org.umlg.runtime.domain.CompositionNode;
import org.umlg.runtime.domain.DataTypeEnum;
import org.umlg.runtime.domain.UmlgMetaNode;
import org.umlg.runtime.domain.UmlgNode;
import org.umlg.runtime.domain.UmlgRootNode;
import org.umlg.runtime.domain.json.ToJsonUtil;
import org.umlg.runtime.domain.ocl.OclIsInvalidException;
import org.umlg.runtime.util.ObjectMapperFactory;
import org.umlg.runtime.validation.UmlgConstraintViolation;
import org.umlg.runtime.validation.UmlgConstraintViolationException;
import org.umlg.runtime.validation.UmlgValidation;
import org.umlg.testocl.meta.OclTest1Meta;
public class OclTest1 extends BaseUmlgCompositionNode implements UmlgRootNode, CompositionNode {
static final public long serialVersionUID = 1L;
private UmlgSet property1;
private UmlgBag oclTestCollection;
private UmlgSet testNumber;
private String tmpId; // tmpId is only used the umlg restlet gui. It is never persisted. Its value is generated by the gui.
/**
* constructor for OclTest1
*
* @param id
*/
public OclTest1(Object id) {
super(id);
}
/**
* constructor for OclTest1
*
* @param vertex
*/
public OclTest1(Vertex vertex) {
super(vertex);
}
/**
* default constructor for OclTest1
*/
public OclTest1() {
this(true);
}
/**
* constructor for OclTest1
*
* @param persistent
*/
public OclTest1(Boolean persistent) {
super(persistent);
Edge edge = UMLG.get().getRoot().addEdge(getEdgeToRootLabel(), this.vertex);
edge.property("inClass", this.getClass().getName());
}
public void addToOclTestCollection(OclTestCollection oclTestCollection) {
if ( oclTestCollection != null ) {
this.oclTestCollection.add(oclTestCollection);
}
}
public void addToOclTestCollection(UmlgBag oclTestCollection) {
if ( !oclTestCollection.isEmpty() ) {
this.oclTestCollection.addAll(oclTestCollection);
}
}
public void addToOclTestCollectionIgnoreInverse(OclTestCollection oclTestCollection) {
if ( oclTestCollection != null ) {
this.oclTestCollection.addIgnoreInverse(oclTestCollection);
}
}
public void addToProperty1(String property1) {
if ( !this.property1.isEmpty() ) {
throw new RuntimeException("Property is a one and already has value, first clear it before adding!");
}
if ( property1 != null ) {
List violations = validateProperty1(property1);
if ( violations.isEmpty() ) {
this.property1.add(property1);
} else {
throw new UmlgConstraintViolationException(violations);
}
}
}
public void addToProperty1IgnoreInverse(String property1) {
if ( !this.property1.isEmpty() ) {
throw new RuntimeException("Property is a one and already has value, first clear it before adding!");
}
if ( property1 != null ) {
List violations = validateProperty1(property1);
if ( violations.isEmpty() ) {
this.property1.add(property1);
} else {
throw new UmlgConstraintViolationException(violations);
}
}
}
public void addToTestNumber(Integer testNumber) {
if ( !this.testNumber.isEmpty() ) {
throw new RuntimeException("Property is a one and already has value, first clear it before adding!");
}
if ( testNumber != null ) {
List violations = validateTestNumber(testNumber);
if ( violations.isEmpty() ) {
this.testNumber.add(testNumber);
} else {
throw new UmlgConstraintViolationException(violations);
}
}
}
public void addToTestNumberIgnoreInverse(Integer testNumber) {
if ( !this.testNumber.isEmpty() ) {
throw new RuntimeException("Property is a one and already has value, first clear it before adding!");
}
if ( testNumber != null ) {
List violations = validateTestNumber(testNumber);
if ( violations.isEmpty() ) {
this.testNumber.add(testNumber);
} else {
throw new UmlgConstraintViolationException(violations);
}
}
}
static public UmlgSet extends OclTest1> allInstances(Filter filter) {
UmlgSet result = new UmlgMemorySet();
result.addAll(UMLG.get().allInstances(OclTest1.class.getName(), filter));
return result;
}
static public UmlgSet extends OclTest1> allInstances() {
UmlgSet result = new UmlgMemorySet();
result.addAll(UMLG.get().allInstances(OclTest1.class.getName()));
return result;
}
/**
* Implements the ocl statement for constraint 'Constraint'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1 inv:
* not self.oclTestCollection->includes(self.oclTestCollection->any(name = 'X'))
* endpackage
*
*/
public List checkClassConstraintConstraint() {
List result = new ArrayList();
if ( (getOclTestCollection().includes(getOclTestCollection().any(new BooleanExpressionEvaluator() {
@Override
public Boolean evaluate(OclTestCollection temp1) {
return temp1.getName().equals("X");
}
})) == false) == false ) {
result.add(new UmlgConstraintViolation("Constraint", "testoclmodel::org::umlg::testocl::OclTest1", "ocl\npackage testoclmodel::org::umlg::testocl\n context OclTest1 inv:\n not self.oclTestCollection->includes(self.oclTestCollection->any(name = 'X'))\nendpackage\nfails!"));
}
return result;
}
@Override
public List checkClassConstraints() {
List result = new ArrayList();
result.addAll(checkClassConstraintConstraint());
return result;
}
public void clearOclTestCollection() {
this.oclTestCollection.clear();
}
public void clearProperty1() {
this.property1.clear();
}
public void clearTestNumber() {
this.testNumber.clear();
}
@Override
public void delete() {
for ( OclTestCollection child : getOclTestCollection() ) {
child.delete();
}
TransactionThreadEntityVar.remove(this);
this.vertex.remove();
}
@Override
public void fromJson(Map propertyMap) {
fromJsonDataTypeAndComposite(propertyMap);
fromJsonNonCompositeOne(propertyMap);
fromJsonNonCompositeRequiredMany(propertyMap);
}
@Override
public void fromJson(String json) {
ObjectMapper mapper = ObjectMapperFactory.INSTANCE.getObjectMapper();
try {
@SuppressWarnings( "unchecked")
Map propertyMap = mapper.readValue(json, Map.class);
fromJson(propertyMap);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@Override
public void fromJsonDataTypeAndComposite(Map propertyMap) {
Number testNumberAsNumber = (Number)propertyMap.get("testNumber");
if ( propertyMap.containsKey("testNumber") ) {
if ( propertyMap.get("testNumber") != null ) {
Integer testNumber = testNumberAsNumber != null ? testNumberAsNumber.intValue() : null;
setTestNumber(testNumber);
} else {
setTestNumber(null);
}
}
if ( propertyMap.containsKey("oclTestCollection") ) {
if ( propertyMap.get("oclTestCollection") != null ) {
List> oclTestCollectionMap = (ArrayList>)propertyMap.get("oclTestCollection");
clearOclTestCollection();
for ( Map row : oclTestCollectionMap ) {
OclTestCollection oclTestCollection;
String idField = (String)row.get("id");
if ( idField != null && !idField.startsWith("fake") ) {
oclTestCollection = UMLG.get().getEntity((row.get("id")));
} else {
Class baseTumlClass = UmlgSchemaFactory.getUmlgSchemaMap().get((String)row.get("qualifiedName"));
try {
Constructor constructor = baseTumlClass.getConstructor(Boolean.class);
oclTestCollection = constructor.newInstance(true);
addToOclTestCollection(oclTestCollection);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
oclTestCollection.fromJsonDataTypeAndComposite(row);
}
} else {
setOclTestCollection(null);
}
}
if ( propertyMap.containsKey("property1") ) {
if ( propertyMap.get("property1") != null ) {
String property1 = (String)propertyMap.get("property1");
setProperty1(property1);
} else {
setProperty1(null);
}
}
if ( propertyMap.containsKey("tmpId") ) {
if ( propertyMap.get("tmpId") != null ) {
this.tmpId = (String)propertyMap.get("tmpId");
UmlgTmpIdManager.INSTANCE.put(this.tmpId, getId());
} else {
this.tmpId = null;
}
}
}
@Override
public void fromJsonNonCompositeOne(Map propertyMap) {
if ( propertyMap.containsKey("oclTestCollection") ) {
if ( propertyMap.get("oclTestCollection") != null ) {
List> oclTestCollectionMap = (ArrayList>)propertyMap.get("oclTestCollection");
clearOclTestCollection();
for ( Map row : oclTestCollectionMap ) {
OclTestCollection oclTestCollection;
String idField = (String)row.get("id");
if ( idField != null && !idField.startsWith("fake") ) {
oclTestCollection = UMLG.get().getEntity((row.get("id")));
} else {
Class baseTumlClass = UmlgSchemaFactory.getUmlgSchemaMap().get((String)row.get("qualifiedName"));
try {
Constructor constructor = baseTumlClass.getConstructor(Boolean.class);
oclTestCollection = constructor.newInstance(true);
addToOclTestCollection(oclTestCollection);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
oclTestCollection.fromJsonNonCompositeOne(row);
}
} else {
setOclTestCollection(null);
}
}
}
@Override
public void fromJsonNonCompositeRequiredMany(Map propertyMap) {
}
/**
* Implements the ocl statement for derived property 'derivedProperty1'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::derivedProperty1 : PrimitiveTypes::String
* derive: self.property1
* endpackage
*
*/
public String getDerivedProperty1() {
return getProperty1();
}
public String getEdgeToRootLabel() {
return UmlgLabelConverterFactory.getUmlgLabelConverter().convert("root_OclTest1");
}
@Override
public String getMetaDataAsJson() {
return OclTest1.OclTest1RuntimePropertyEnum.asJson();
}
public UmlgMetaNode getMetaNode() {
return OclTest1Meta.getInstance();
}
/**
* Implements the ocl statement for derived property 'oclAny'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclAny : testoclmodel::org::umlg::testocl::OclTestCollection
* derive: self.oclTestCollection->any(name <> 'john')
* endpackage
*
*/
public OclTestCollection getOclAny() {
return getOclTestCollection().any(new BooleanExpressionEvaluator() {
@Override
public Boolean evaluate(OclTestCollection temp1) {
return temp1.getName().equals("john") == false;
}
});
}
/**
* Implements the ocl statement for derived property 'oclCollectAsSet'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclCollectAsSet : Set(testoclmodel::org::umlg::testocl::OclTestCollection2)
* derive: self.oclTestCollection.oclTestCollection2->asSet()
* endpackage
*
*/
public UmlgSet getOclCollectAsSet() {
return getOclTestCollection().>collect(new BodyExpressionEvaluator, OclTestCollection>() {
@Override
public UmlgSet evaluate(OclTestCollection temp1) {
return temp1.getOclTestCollection2();
}
}).asSet();
}
/**
* Implements the ocl statement for derived property 'oclCollectName'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclCollectName : Bag(PrimitiveTypes::String)
* derive: self.oclTestCollection.oclTestCollection2.name
* endpackage
*
*/
public UmlgBag getOclCollectName() {
return getOclTestCollection().>collect(new BodyExpressionEvaluator, OclTestCollection>() {
@Override
public UmlgSet evaluate(OclTestCollection temp1) {
return temp1.getOclTestCollection2();
}
}).collect(new BodyExpressionEvaluator() {
@Override
public String evaluate(OclTestCollection2 temp2) {
return temp2.getName();
}
});
}
/**
* Implements the ocl statement for derived property 'oclCollectNameAsSet'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclCollectNameAsSet : Set(PrimitiveTypes::String)
* derive: self.oclTestCollection.name->asSet()
* endpackage
*
*/
public UmlgSet getOclCollectNameAsSet() {
return getOclTestCollection().collect(new BodyExpressionEvaluator() {
@Override
public String evaluate(OclTestCollection temp1) {
return temp1.getName();
}
}).asSet();
}
/**
* Implements the ocl statement for derived property 'oclCollectNested'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclCollectNested : Bag(testoclmodel::org::umlg::testocl::OclTestCollection2)
* derive: self.oclTestCollection->collectNested(oclTestCollection2)->flatten()
* endpackage
*
*/
public UmlgBag getOclCollectNested() {
return getOclTestCollection().collectNested(new BodyExpressionEvaluator, OclTestCollection>() {
@Override
public UmlgSet evaluate(OclTestCollection temp1) {
return temp1.getOclTestCollection2();
}
}).flatten();
}
/**
* Implements the ocl statement for derived property 'oclIterateExp'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclIterateExp : PrimitiveTypes::String
* derive: self.oclTestCollection->iterate(iter : OclTestCollection; acc : String = '' | acc.concat(iter.name) )
* endpackage
*
*/
public String getOclIterateExp() {
return getOclTestCollection().iterate(new IterateExpressionAccumulator() {
@Override
public String accumulate(String acc, OclTestCollection iter) {
return acc.concat(iter.getName());
}
@Override
public String initAccumulator() {
String acc = "";
return acc;
}
});
}
/**
* Implements the ocl statement for derived property 'oclIterateExp2'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclIterateExp2 : OrderedSet(testoclmodel::org::umlg::testocl::OclTestCollection2)
* derive: self.oclTestCollection->iterate(iter : OclTestCollection; acc : OrderedSet(OclTestCollection2) = OrderedSet{} | acc->including(iter.oclTestCollection2->any(name='john'))->asOrderedSet())
* endpackage
*
*/
public UmlgOrderedSet getOclIterateExp2() {
return getOclTestCollection().iterate(new IterateExpressionAccumulator, OclTestCollection>() {
@Override
public UmlgOrderedSet accumulate(UmlgOrderedSet acc, OclTestCollection iter) {
return acc.including(iter.getOclTestCollection2().any(new BooleanExpressionEvaluator() {
@Override
public Boolean evaluate(OclTestCollection2 temp1) {
return temp1.getName().equals("john");
}
})).asOrderedSet();
}
@Override
public UmlgOrderedSet initAccumulator() {
UmlgOrderedSet acc = new UmlgMemoryOrderedSet(Arrays.asList());
return acc;
}
});
}
/**
* Implements the ocl statement for derived property 'oclSelect'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclSelect : Bag(testoclmodel::org::umlg::testocl::OclTestCollection)
* derive: self.oclTestCollection->select(name='john')
* endpackage
*
*/
public UmlgBag getOclSelect() {
return getOclTestCollection().select(temp1 ->temp1.getName().equals("john"));
}
/**
* Implements the ocl statement for derived property 'oclSelectCollectAsSequence'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::oclSelectCollectAsSequence : Sequence(PrimitiveTypes::String)
* derive: self.oclTestCollection->select(name='john')->collect(oclTestCollection2)->collect(name)->asSequence()
* endpackage
*
*/
public UmlgSequence getOclSelectCollectAsSequence() {
return getOclTestCollection().select(temp1 ->temp1.getName().equals("john")).>collect(new BodyExpressionEvaluator, OclTestCollection>() {
@Override
public UmlgSet evaluate(OclTestCollection temp2) {
return temp2.getOclTestCollection2();
}
}).collect(new BodyExpressionEvaluator() {
@Override
public String evaluate(OclTestCollection2 temp3) {
return temp3.getName();
}
}).asSequence();
}
public UmlgBag getOclTestCollection() {
return this.oclTestCollection;
}
@Override
public UmlgNode getOwningObject() {
return null;
}
public String getProperty1() {
UmlgSet tmp = this.property1;
if ( !tmp.isEmpty() ) {
return tmp.iterator().next();
} else {
return null;
}
}
@Override
public String getQualifiedName() {
return "testoclmodel::org::umlg::testocl::OclTest1";
}
/**
* getQualifiers is called from the collection in order to update the index used to implement the qualifier
*
* @param tumlRuntimeProperty
* @param node
* @param inverse
*/
@Override
public List getQualifiers(UmlgRuntimeProperty tumlRuntimeProperty, UmlgNode node, boolean inverse) {
List result = Collections.emptyList();
OclTest1RuntimePropertyEnum runtimeProperty;
if ( !inverse ) {
runtimeProperty = OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getQualifiedName());
} else {
runtimeProperty = OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getInverseQualifiedName());
}
if ( runtimeProperty != null && result.isEmpty() ) {
switch ( runtimeProperty ) {
default:
result = Collections.emptyList();
}
}
return result;
}
/**
* getSize is called from the BaseCollection.addInternal in order to save the sice of the inverse collection to update the edge's sequence order
*
* @param inverse
* @param tumlRuntimeProperty
*/
@Override
public int getSize(boolean inverse, UmlgRuntimeProperty tumlRuntimeProperty) {
int result = 0;
OclTest1RuntimePropertyEnum runtimeProperty;
if ( !inverse ) {
runtimeProperty = OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getQualifiedName());
} else {
runtimeProperty = OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getInverseQualifiedName());
}
if ( runtimeProperty != null && result == 0 ) {
switch ( runtimeProperty ) {
case property1:
result = property1.size();
break;
case testNumber:
result = testNumber.size();
break;
case oclTestCollection:
result = oclTestCollection.size();
break;
default:
result = 0;
}
}
return result;
}
/**
* Implements the ocl statement for derived property 'testFirstOclInvalid'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testFirstOclInvalid : PrimitiveTypes::Boolean
* derive: self.oclTestCollection.name->asSequence()->first().oclIsInvalid()
* endpackage
*
*/
public Boolean getTestFirstOclInvalid() {
return oclIsInvalid0();
}
/**
* Implements the ocl statement for derived property 'testGreaterThanEqualOne'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testGreaterThanEqualOne : PrimitiveTypes::Boolean
* derive: self.testNumber >= 1
* endpackage
*
*/
public Boolean getTestGreaterThanEqualOne() {
return getTestNumber() >= 1;
}
/**
* Implements the ocl statement for derived property 'testGreaterThanOne'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testGreaterThanOne : PrimitiveTypes::Boolean
* derive: self.testNumber > 1
* endpackage
*
*/
public Boolean getTestGreaterThanOne() {
return getTestNumber() > 1;
}
public Integer getTestNumber() {
UmlgSet tmp = this.testNumber;
if ( !tmp.isEmpty() ) {
return tmp.iterator().next();
} else {
return null;
}
}
/**
* Implements the ocl statement for derived property 'testOclExpResultMany'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testOclExpResultMany : Sequence(testoclmodel::org::umlg::testocl::OclTestCollection)
* derive: if self.oclTestCollection->isEmpty() then Sequence{} else self.oclTestCollection->asSequence() endif
* endpackage
*
*/
public UmlgSequence getTestOclExpResultMany() {
return ifExp1();
}
/**
* Implements the ocl statement for derived property 'testOclFirst'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testOclFirst : PrimitiveTypes::String
* derive: self.oclTestCollection.name->asSequence()->first()
* endpackage
*
*/
public String getTestOclFirst() {
return getOclTestCollection().collect(new BodyExpressionEvaluator() {
@Override
public String evaluate(OclTestCollection temp1) {
return temp1.getName();
}
}).asSequence().first();
}
/**
* Implements the ocl statement for derived property 'testOclIfExp'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testOclIfExp : PrimitiveTypes::String
* derive: if self.oclTestCollection->isEmpty() then 'halo' else 'bye' endif
* endpackage
*
*/
public String getTestOclIfExp() {
return ifExp0();
}
/**
* Implements the ocl statement for derived property 'testOclIsUndefined'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testOclIsUndefined : PrimitiveTypes::Boolean
* derive: self.oclTestCollection->any(name='joe').oclIsUndefined()
* endpackage
*
*/
public Boolean getTestOclIsUndefined() {
return oclIsUndefined0();
}
/**
* Implements the ocl statement for derived property 'testSmallerThanEqualOne'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testSmallerThanEqualOne : PrimitiveTypes::Boolean
* derive: self.testNumber <= 1
* endpackage
*
*/
public Boolean getTestSmallerThanEqualOne() {
return getTestNumber() <= 1;
}
/**
* Implements the ocl statement for derived property 'testSmallerThanOne'
*
* package testoclmodel::org::umlg::testocl
* context OclTest1::testSmallerThanOne : PrimitiveTypes::Boolean
* derive: self.testNumber < 1
* endpackage
*
*/
public Boolean getTestSmallerThanOne() {
return getTestNumber() < 1;
}
@Override
public String getUid() {
String uid;
if ( !this.vertex.property("uid").isPresent() ) {
uid=UUID.randomUUID().toString();
this.vertex.property("uid", uid);
} else {
uid=this.vertex.value("uid");
}
return uid;
}
@Override
public boolean hasOnlyOneCompositeParent() {
int result = 0;
return result == 1;
}
public void initVariables() {
}
@Override
public void initialiseProperties() {
this.property1 = new UmlgSetImpl(this, OclTest1RuntimePropertyEnum.property1);
this.testNumber = new UmlgSetImpl(this, OclTest1RuntimePropertyEnum.testNumber);
this.oclTestCollection = new UmlgBagImpl(this, OclTest1RuntimePropertyEnum.oclTestCollection);
}
@Override
public void initialiseProperty(UmlgRuntimeProperty tumlRuntimeProperty, boolean inverse) {
OclTest1RuntimePropertyEnum runtimeProperty;
if ( !inverse ) {
runtimeProperty = (OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getQualifiedName()));
} else {
runtimeProperty = (OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getInverseQualifiedName()));
}
if ( runtimeProperty != null ) {
switch ( runtimeProperty ) {
case property1:
this.property1 = new UmlgSetImpl(this, OclTest1RuntimePropertyEnum.property1);
break;
case testNumber:
this.testNumber = new UmlgSetImpl(this, OclTest1RuntimePropertyEnum.testNumber);
break;
case oclTestCollection:
this.oclTestCollection = new UmlgBagImpl(this, OclTest1RuntimePropertyEnum.oclTestCollection);
break;
}
}
}
@Override
public UmlgRuntimeProperty inverseAdder(UmlgRuntimeProperty tumlRuntimeProperty, boolean inverse, UmlgNode umlgNode) {
OclTest1RuntimePropertyEnum runtimeProperty;
if ( !inverse ) {
runtimeProperty = (OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getQualifiedName()));
} else {
runtimeProperty = (OclTest1RuntimePropertyEnum.fromQualifiedName(tumlRuntimeProperty.getInverseQualifiedName()));
}
if ( runtimeProperty != null ) {
switch ( runtimeProperty ) {
case oclTestCollection:
this.oclTestCollection.inverseAdder((OclTestCollection)umlgNode);
break;
}
return runtimeProperty;
} else {
return null;
}
}
@Override
public boolean isTinkerRoot() {
return true;
}
public void removeFromOclTestCollection(OclTestCollection oclTestCollection) {
if ( oclTestCollection != null ) {
this.oclTestCollection.remove(oclTestCollection);
}
}
public void removeFromOclTestCollection(UmlgBag oclTestCollection) {
if ( !oclTestCollection.isEmpty() ) {
this.oclTestCollection.removeAll(oclTestCollection);
}
}
public void removeFromProperty1(String property1) {
if ( property1 != null ) {
this.property1.remove(property1);
}
}
public void removeFromProperty1(UmlgSet property1) {
if ( !property1.isEmpty() ) {
this.property1.removeAll(property1);
}
}
public void removeFromTestNumber(Integer testNumber) {
if ( testNumber != null ) {
this.testNumber.remove(testNumber);
}
}
public void removeFromTestNumber(UmlgSet testNumber) {
if ( !testNumber.isEmpty() ) {
this.testNumber.removeAll(testNumber);
}
}
public void setOclTestCollection(UmlgBag oclTestCollection) {
clearOclTestCollection();
if ( oclTestCollection != null ) {
addToOclTestCollection(oclTestCollection);
}
}
public void setProperty1(String property1) {
clearProperty1();
addToProperty1(property1);
}
public void setTestNumber(Integer testNumber) {
clearTestNumber();
addToTestNumber(testNumber);
}
/**
* deep indicates that components also be serialized.
*
* @param deep
*/
@Override
public String toJson(Boolean deep) {
StringBuilder sb = new StringBuilder();
if ( this.tmpId != null ) {
sb.append("\"tmpId\": \"" + this.tmpId + "\", ");
}
sb.append("\"id\": \"" + getId() + "\", ");
sb.append("\"metaNodeId\": \"" + getMetaNode().getId() + "\", ");
sb.append("\"derivedProperty1\": " + (getDerivedProperty1() != null ? "\"" + StringEscapeUtils.escapeJson(getDerivedProperty1()) + "\"" : null ));
sb.append(", ");
sb.append("\"testOclIfExp\": " + (getTestOclIfExp() != null ? "\"" + StringEscapeUtils.escapeJson(getTestOclIfExp()) + "\"" : null ));
sb.append(", ");
sb.append("\"property1\": " + (getProperty1() != null ? "\"" + StringEscapeUtils.escapeJson(getProperty1()) + "\"" : null ));
sb.append(", ");
sb.append("\"testOclFirst\": " + (getTestOclFirst() != null ? "\"" + StringEscapeUtils.escapeJson(getTestOclFirst()) + "\"" : null ));
sb.append(", ");
if ( getOclAny() != null ) {
if ( UmlgTmpIdManager.INSTANCE.get(getOclAny().getId()) != null ) {
sb.append("\"oclAny\": " + "{\"id\": \"" + getOclAny().getId() + "\", \"tmpId\": \"" + UmlgTmpIdManager.INSTANCE.get(getOclAny().getId()) + "\",\"displayName\": \"" + getOclAny().getName() + "\"}" + "");
} else {
sb.append("\"oclAny\": " + "{\"id\": \"" + getOclAny().getId() + "\", \"displayName\": \"" + getOclAny().getName() + "\"}" + "");
}
} else {
sb.append("\"oclAny\": " + "{\"id\": " + null + ", \"displayName\": " + null + "}");
}
sb.append(", ");
sb.append("\"oclSelectCollectAsSequence\": " + ToJsonUtil.primitivesToJson(getOclSelectCollectAsSequence()) + "");
sb.append(", ");
sb.append("\"testOclIsUndefined\": " + getTestOclIsUndefined() + "");
sb.append(", ");
sb.append("\"oclCollectNameAsSet\": " + ToJsonUtil.primitivesToJson(getOclCollectNameAsSet()) + "");
sb.append(", ");
sb.append("\"testGreaterThanEqualOne\": " + getTestGreaterThanEqualOne() + "");
sb.append(", ");
sb.append("\"testFirstOclInvalid\": " + getTestFirstOclInvalid() + "");
sb.append(", ");
sb.append("\"testNumber\": " + getTestNumber() + "");
sb.append(", ");
sb.append("\"testGreaterThanOne\": " + getTestGreaterThanOne() + "");
sb.append(", ");
sb.append("\"testSmallerThanEqualOne\": " + getTestSmallerThanEqualOne() + "");
sb.append(", ");
if ( deep ) {
sb.append("\"oclTestCollection\": [" + ToJsonUtil.toJson(getOclTestCollection(), true) + "]");
} else {
sb.delete(sb.length() - 2, sb.length());
}
sb.append(", ");
sb.append("\"oclIterateExp\": " + (getOclIterateExp() != null ? "\"" + StringEscapeUtils.escapeJson(getOclIterateExp()) + "\"" : null ));
sb.append(", ");
sb.append("\"oclCollectName\": " + ToJsonUtil.primitivesToJson(getOclCollectName()) + "");
sb.append(", ");
sb.append("\"testSmallerThanOne\": " + getTestSmallerThanOne() + "");
sb.append(", ");
sb.append("\"qualifiedName\": \"" + getQualifiedName() + "\"");
sb.append(", ");
//PlaceHolder for restful
sb.append("\"uri\": {}");
sb.insert(0, "{");
sb.append("}");
return sb.toString();
}
@Override
public String toJson() {
return toJson(false);
}
/**
* deep indicates that components also be serialized.
*
* @param deep
*/
@Override
public String toJsonWithoutCompositeParent(Boolean deep) {
StringBuilder sb = new StringBuilder();
if ( this.tmpId != null ) {
sb.append("\"tmpId\": \"" + this.tmpId + "\", ");
}
sb.append("\"id\": \"" + getId() + "\", ");
sb.append("\"metaNodeId\": \"" + getMetaNode().getId() + "\", ");
sb.append("\"derivedProperty1\": " + (getDerivedProperty1() != null ? "\"" + StringEscapeUtils.escapeJson(getDerivedProperty1()) + "\"" : null ));
sb.append(", ");
sb.append("\"testOclIfExp\": " + (getTestOclIfExp() != null ? "\"" + StringEscapeUtils.escapeJson(getTestOclIfExp()) + "\"" : null ));
sb.append(", ");
sb.append("\"property1\": " + (getProperty1() != null ? "\"" + StringEscapeUtils.escapeJson(getProperty1()) + "\"" : null ));
sb.append(", ");
sb.append("\"testOclFirst\": " + (getTestOclFirst() != null ? "\"" + StringEscapeUtils.escapeJson(getTestOclFirst()) + "\"" : null ));
sb.append(", ");
if ( getOclAny() != null ) {
if ( UmlgTmpIdManager.INSTANCE.get(getOclAny().getId()) != null ) {
sb.append("\"oclAny\": " + "{\"id\": \"" + getOclAny().getId() + "\", \"tmpId\": \"" + UmlgTmpIdManager.INSTANCE.get(getOclAny().getId()) + "\",\"displayName\": \"" + getOclAny().getName() + "\"}" + "");
} else {
sb.append("\"oclAny\": " + "{\"id\": \"" + getOclAny().getId() + "\", \"displayName\": \"" + getOclAny().getName() + "\"}" + "");
}
} else {
sb.append("\"oclAny\": " + "{\"id\": " + null + ", \"displayName\": " + null + "}");
}
sb.append(", ");
sb.append("\"oclSelectCollectAsSequence\": " + ToJsonUtil.primitivesToJson(getOclSelectCollectAsSequence()) + "");
sb.append(", ");
sb.append("\"testOclIsUndefined\": " + getTestOclIsUndefined() + "");
sb.append(", ");
sb.append("\"oclCollectNameAsSet\": " + ToJsonUtil.primitivesToJson(getOclCollectNameAsSet()) + "");
sb.append(", ");
sb.append("\"testGreaterThanEqualOne\": " + getTestGreaterThanEqualOne() + "");
sb.append(", ");
sb.append("\"testFirstOclInvalid\": " + getTestFirstOclInvalid() + "");
sb.append(", ");
sb.append("\"testNumber\": " + getTestNumber() + "");
sb.append(", ");
sb.append("\"testGreaterThanOne\": " + getTestGreaterThanOne() + "");
sb.append(", ");
sb.append("\"testSmallerThanEqualOne\": " + getTestSmallerThanEqualOne() + "");
sb.append(", ");
if ( deep ) {
sb.append("\"oclTestCollection\": [" + ToJsonUtil.toJsonWithoutCompositeParent(getOclTestCollection(), true) + "]");
} else {
sb.delete(sb.length() - 2, sb.length());
}
sb.append(", ");
sb.append("\"oclIterateExp\": " + (getOclIterateExp() != null ? "\"" + StringEscapeUtils.escapeJson(getOclIterateExp()) + "\"" : null ));
sb.append(", ");
sb.append("\"oclCollectName\": " + ToJsonUtil.primitivesToJson(getOclCollectName()) + "");
sb.append(", ");
sb.append("\"testSmallerThanOne\": " + getTestSmallerThanOne() + "");
sb.append(", ");
sb.append("\"qualifiedName\": \"" + getQualifiedName() + "\"");
sb.append(", ");
//PlaceHolder for restful
sb.append("\"uri\": {}");
sb.insert(0, "{");
sb.append("}");
return sb.toString();
}
@Override
public String toJsonWithoutCompositeParent() {
return toJsonWithoutCompositeParent(false);
}
@Override
public List validateMultiplicities() {
List result = new ArrayList();
if ( getProperty1() == null ) {
result.add(new UmlgConstraintViolation("multiplicity", "testoclmodel::org::umlg::testocl::OclTest1::property1", "lower multiplicity is 1"));
}
if ( getOclTestCollection().size() < 1 ) {
result.add(new UmlgConstraintViolation("multiplicity", "testoclmodel::org::umlg::testocl::OclTest1::oclTestCollection", "lower multiplicity is 1"));
}
return result;
}
public List validateProperty1(String property1) {
List result = new ArrayList();
return result;
}
public List validateTestNumber(Integer testNumber) {
List result = new ArrayList();
return result;
}
private String ifExp0() {
if ( getOclTestCollection().isEmpty() ) {
return "halo";
} else {
return "bye";
}
}
private UmlgSequence ifExp1() {
if ( getOclTestCollection().isEmpty() ) {
return new UmlgMemorySequence(Arrays.asList());
} else {
return getOclTestCollection().asSequence();
}
}
private Boolean oclIsInvalid0() {
try {
return getOclTestCollection().collect(new BodyExpressionEvaluator() {
@Override
public String evaluate(OclTestCollection temp1) {
return temp1.getName();
}
}).asSequence().first() == null;
} catch (OclIsInvalidException e) {
return true;
}
}
private Boolean oclIsUndefined0() {
try {
return getOclTestCollection().any(new BooleanExpressionEvaluator() {
@Override
public Boolean evaluate(OclTestCollection temp1) {
return temp1.getName().equals("joe");
}
}) == null;
} catch (OclIsInvalidException e) {
return true;
}
}
static public enum OclTest1RuntimePropertyEnum implements UmlgRuntimeProperty {
derivedProperty1(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::derivedProperty1",/* persistentName */ "derivedProperty1",/* inverseName */ "inverseOf::derivedProperty1",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::derivedProperty1",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("derivedProperty1"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"derivedProperty1\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::derivedProperty1\", \"persistentName\": \"derivedProperty1\", \"inverseName\": \"inverseOf::derivedProperty1\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::derivedProperty1\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"derivedProperty1\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testOclIfExp(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testOclIfExp",/* persistentName */ "testOclIfExp",/* inverseName */ "inverseOf::testOclIfExp",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclIfExp",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testOclIfExp"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"testOclIfExp\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testOclIfExp\", \"persistentName\": \"testOclIfExp\", \"inverseName\": \"inverseOf::testOclIfExp\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclIfExp\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"testOclIfExp\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
property1(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::property1",/* persistentName */ "property1",/* inverseName */ "inverseOf::property1",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::property1",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("property1"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"property1\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::property1\", \"persistentName\": \"property1\", \"inverseName\": \"inverseOf::property1\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::property1\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"property1\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testOclFirst(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testOclFirst",/* persistentName */ "testOclFirst",/* inverseName */ "inverseOf::testOclFirst",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclFirst",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testOclFirst"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ true,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"testOclFirst\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testOclFirst\", \"persistentName\": \"testOclFirst\", \"inverseName\": \"inverseOf::testOclFirst\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclFirst\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"testOclFirst\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": true, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclAny(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclAny",/* persistentName */ "oclAny",/* inverseName */ "inverseOf::oclAny",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclAny",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclAny"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ OclTestCollection.class,/* json */ "{\"name\": \"oclAny\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclAny\", \"persistentName\": \"oclAny\", \"inverseName\": \"inverseOf::oclAny\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclAny\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"oclAny\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclSelectCollectAsSequence(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclSelectCollectAsSequence",/* persistentName */ "oclSelectCollectAsSequence",/* inverseName */ "inverseOf::oclSelectCollectAsSequence",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclSelectCollectAsSequence",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ true,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclSelectCollectAsSequence"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ true,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"oclSelectCollectAsSequence\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclSelectCollectAsSequence\", \"persistentName\": \"oclSelectCollectAsSequence\", \"inverseName\": \"inverseOf::oclSelectCollectAsSequence\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclSelectCollectAsSequence\", \"manyPrimitive\": true, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"oclSelectCollectAsSequence\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": true, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testOclIsUndefined(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testOclIsUndefined",/* persistentName */ "testOclIsUndefined",/* inverseName */ "inverseOf::testOclIsUndefined",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclIsUndefined",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testOclIsUndefined"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ Boolean.class,/* json */ "{\"name\": \"testOclIsUndefined\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testOclIsUndefined\", \"persistentName\": \"testOclIsUndefined\", \"inverseName\": \"inverseOf::testOclIsUndefined\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclIsUndefined\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"testOclIsUndefined\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclIterateExp2(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp2",/* persistentName */ "oclIterateExp2",/* inverseName */ "inverseOf::oclIterateExp2",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp2",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclIterateExp2"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ true,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ OclTestCollection2.class,/* json */ "{\"name\": \"oclIterateExp2\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp2\", \"persistentName\": \"oclIterateExp2\", \"inverseName\": \"inverseOf::oclIterateExp2\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp2\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"oclIterateExp2\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": true, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclCollectNameAsSet(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclCollectNameAsSet",/* persistentName */ "oclCollectNameAsSet",/* inverseName */ "inverseOf::oclCollectNameAsSet",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectNameAsSet",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ true,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclCollectNameAsSet"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"oclCollectNameAsSet\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclCollectNameAsSet\", \"persistentName\": \"oclCollectNameAsSet\", \"inverseName\": \"inverseOf::oclCollectNameAsSet\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectNameAsSet\", \"manyPrimitive\": true, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"oclCollectNameAsSet\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclCollectNested(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclCollectNested",/* persistentName */ "oclCollectNested",/* inverseName */ "inverseOf::oclCollectNested",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectNested",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclCollectNested"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ OclTestCollection2.class,/* json */ "{\"name\": \"oclCollectNested\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclCollectNested\", \"persistentName\": \"oclCollectNested\", \"inverseName\": \"inverseOf::oclCollectNested\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectNested\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"oclCollectNested\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclCollectAsSet(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclCollectAsSet",/* persistentName */ "oclCollectAsSet",/* inverseName */ "inverseOf::oclCollectAsSet",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectAsSet",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclCollectAsSet"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ OclTestCollection2.class,/* json */ "{\"name\": \"oclCollectAsSet\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclCollectAsSet\", \"persistentName\": \"oclCollectAsSet\", \"inverseName\": \"inverseOf::oclCollectAsSet\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectAsSet\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"oclCollectAsSet\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testGreaterThanEqualOne(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanEqualOne",/* persistentName */ "testGreaterThanEqualOne",/* inverseName */ "inverseOf::testGreaterThanEqualOne",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanEqualOne",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testGreaterThanEqualOne"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ Boolean.class,/* json */ "{\"name\": \"testGreaterThanEqualOne\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanEqualOne\", \"persistentName\": \"testGreaterThanEqualOne\", \"inverseName\": \"inverseOf::testGreaterThanEqualOne\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanEqualOne\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"testGreaterThanEqualOne\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testFirstOclInvalid(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testFirstOclInvalid",/* persistentName */ "testFirstOclInvalid",/* inverseName */ "inverseOf::testFirstOclInvalid",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testFirstOclInvalid",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testFirstOclInvalid"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ Boolean.class,/* json */ "{\"name\": \"testFirstOclInvalid\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testFirstOclInvalid\", \"persistentName\": \"testFirstOclInvalid\", \"inverseName\": \"inverseOf::testFirstOclInvalid\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testFirstOclInvalid\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"testFirstOclInvalid\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testNumber(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testNumber",/* persistentName */ "testNumber",/* inverseName */ "inverseOf::testNumber",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testNumber",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ false,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testNumber"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ Integer.class,/* json */ "{\"name\": \"testNumber\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": false, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testNumber\", \"persistentName\": \"testNumber\", \"inverseName\": \"inverseOf::testNumber\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testNumber\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"testNumber\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testGreaterThanOne(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanOne",/* persistentName */ "testGreaterThanOne",/* inverseName */ "inverseOf::testGreaterThanOne",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanOne",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testGreaterThanOne"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ Boolean.class,/* json */ "{\"name\": \"testGreaterThanOne\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanOne\", \"persistentName\": \"testGreaterThanOne\", \"inverseName\": \"inverseOf::testGreaterThanOne\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testGreaterThanOne\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"testGreaterThanOne\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testSmallerThanEqualOne(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanEqualOne",/* persistentName */ "testSmallerThanEqualOne",/* inverseName */ "inverseOf::testSmallerThanEqualOne",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanEqualOne",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testSmallerThanEqualOne"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ Boolean.class,/* json */ "{\"name\": \"testSmallerThanEqualOne\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanEqualOne\", \"persistentName\": \"testSmallerThanEqualOne\", \"inverseName\": \"inverseOf::testSmallerThanEqualOne\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanEqualOne\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"testSmallerThanEqualOne\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclTestCollection(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclTestCollection",/* persistentName */ "oclTestCollection",/* inverseName */ "oclTest1",/* inverseQualifiedName */ "testoclmodel::org::umlg::testocl::A__::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 */ true,/* isComposite */ true,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("A__"),/* isOneToOne */ false,/* isOneToMany */ true,/* isManyToOne */ false,/* isManyToMany */ false,/* upper */ -1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ true,/* isDerived */ false,/* isNavigable */ true,/* propertyType */ OclTestCollection.class,/* json */ "{\"name\": \"oclTestCollection\", \"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::oclTestCollection\", \"persistentName\": \"oclTestCollection\", \"inverseName\": \"oclTest1\", \"inverseQualifiedName\": \"testoclmodel::org::umlg::testocl::A__::oclTest1\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": true, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": true, \"manyToOne\": false, \"manyToMany\": false, \"upper\": -1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"A__\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": true, \"derived\": false, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testOclExpResultMany(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testOclExpResultMany",/* persistentName */ "testOclExpResultMany",/* inverseName */ "inverseOf::testOclExpResultMany",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclExpResultMany",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testOclExpResultMany"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ true,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ OclTestCollection.class,/* json */ "{\"name\": \"testOclExpResultMany\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testOclExpResultMany\", \"persistentName\": \"testOclExpResultMany\", \"inverseName\": \"inverseOf::testOclExpResultMany\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testOclExpResultMany\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"testOclExpResultMany\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": true, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclIterateExp(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp",/* persistentName */ "oclIterateExp",/* inverseName */ "inverseOf::oclIterateExp",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclIterateExp"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"oclIterateExp\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp\", \"persistentName\": \"oclIterateExp\", \"inverseName\": \"inverseOf::oclIterateExp\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclIterateExp\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"oclIterateExp\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclSelect(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclSelect",/* persistentName */ "oclSelect",/* inverseName */ "inverseOf::oclSelect",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclSelect",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclSelect"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ OclTestCollection.class,/* json */ "{\"name\": \"oclSelect\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclSelect\", \"persistentName\": \"oclSelect\", \"inverseName\": \"inverseOf::oclSelect\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclSelect\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"oclSelect\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
oclCollectName(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::oclCollectName",/* persistentName */ "oclCollectName",/* inverseName */ "inverseOf::oclCollectName",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectName",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ false,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ true,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("oclCollectName"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ false,/* isManyToMany */ true,/* upper */ -1,/* lower */ 0,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ false,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ String.class,/* json */ "{\"name\": \"oclCollectName\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": false, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::oclCollectName\", \"persistentName\": \"oclCollectName\", \"inverseName\": \"inverseOf::oclCollectName\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::oclCollectName\", \"manyPrimitive\": true, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": false, \"manyToMany\": true, \"upper\": -1, \"lower\": 0, \"inverseUpper\": 1, \"label\": \"oclCollectName\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
testSmallerThanOne(/* qualifiedName */ "testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanOne",/* persistentName */ "testSmallerThanOne",/* inverseName */ "inverseOf::testSmallerThanOne",/* inverseQualifiedName */ "inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanOne",/* isAssociationClassOne */ false,/* isMemberEndOfAssociationClass */ false,/* associationClassPropertyNameField */ "null",/* inverseAssociationClassPropertyNameField */ "null",/* isAssociationClassProperty */ false,/* isOnePrimitivePropertyOfAssociationClass */ false,/* isOnePrimitive */ true,/* isReadOnly */ true,/* dataTypeEnum */ null,/* validations */ Collections.emptyList(),/* isManyPrimitive */ false,/* oneEnumeration */ false,/* manyEnumeration */ false,/* isControllingSide */ true,/* isComposite */ false,/* isInverseComposite */ false,/* label */ UmlgLabelConverterFactory.getUmlgLabelConverter().convert("testSmallerThanOne"),/* isOneToOne */ false,/* isOneToMany */ false,/* isManyToOne */ true,/* isManyToMany */ false,/* upper */ 1,/* lower */ 1,/* inverseUpper */ 1,/* isQualified */ false,/* isInverseQualified */ false,/* isOrdered */ false,/* isInverseOrdered */ false,/* isUnique */ true,/* isInverseUnique */ false,/* isDerived */ true,/* isNavigable */ true,/* propertyType */ Boolean.class,/* json */ "{\"name\": \"testSmallerThanOne\", \"associationClassOne\": false, \"memberEndOfAssociationClass\": false, \"associationClassPropertyName\": null, \"inverseAssociationClassPropertyName\": null, \"associationClassProperty\": false, \"onePrimitivePropertyOfAssociationClass\": false, \"onePrimitive\": true, \"readOnly\": true, \"dataTypeEnum\": null, \"validations\": null, \"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanOne\", \"persistentName\": \"testSmallerThanOne\", \"inverseName\": \"inverseOf::testSmallerThanOne\", \"inverseQualifiedName\": \"inverseOf::testoclmodel::org::umlg::testocl::OclTest1::testSmallerThanOne\", \"manyPrimitive\": false, \"oneEnumeration\": false, \"manyEnumeration\": false, \"controllingSide\": true, \"composite\": false, \"inverseComposite\": false, \"oneToOne\": false, \"oneToMany\": false, \"manyToOne\": true, \"manyToMany\": false, \"upper\": 1, \"lower\": 1, \"inverseUpper\": 1, \"label\": \"testSmallerThanOne\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": true, \"inverseUnique\": false, \"derived\": true, \"navigable\": true}",/* isChangeListenerAttribute */ false),
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("rootOclTest1"),/* 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\": \"rootOclTest1\", \"qualified\": false, \"inverseQualified\": false, \"ordered\": false, \"inverseOrdered\": false, \"unique\": false, \"inverseUnique\": false, \"derived\": false, \"navigable\": false}",/* 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 OclTest1RuntimePropertyEnum
*
* @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 OclTest1RuntimePropertyEnum(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\": \"OclTest1\", ");
sb.append("\"qualifiedName\": \"testoclmodel::org::umlg::testocl::OclTest1\", ");
sb.append("\"uri\": \"TODO\", ");
sb.append("\"properties\": [");
for ( OclTest1RuntimePropertyEnum l : OclTest1RuntimePropertyEnum.values() ) {
sb.append(l.toJson());
if ( count < OclTest1RuntimePropertyEnum.values().length ) {
count++;
sb.append(",");
}
}
sb.append("]}");
return sb.toString();
}
static public OclTest1RuntimePropertyEnum fromInverseQualifiedName(String inverseQualifiedName) {
if ( testoclmodel.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testoclmodel;
}
if ( testSmallerThanOne.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testSmallerThanOne;
}
if ( oclCollectName.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclCollectName;
}
if ( oclSelect.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclSelect;
}
if ( oclIterateExp.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclIterateExp;
}
if ( testOclExpResultMany.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testOclExpResultMany;
}
if ( oclTestCollection.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclTestCollection;
}
if ( testSmallerThanEqualOne.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testSmallerThanEqualOne;
}
if ( testGreaterThanOne.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testGreaterThanOne;
}
if ( testNumber.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testNumber;
}
if ( testFirstOclInvalid.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testFirstOclInvalid;
}
if ( testGreaterThanEqualOne.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testGreaterThanEqualOne;
}
if ( oclCollectAsSet.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclCollectAsSet;
}
if ( oclCollectNested.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclCollectNested;
}
if ( oclCollectNameAsSet.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclCollectNameAsSet;
}
if ( oclIterateExp2.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclIterateExp2;
}
if ( testOclIsUndefined.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testOclIsUndefined;
}
if ( oclSelectCollectAsSequence.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclSelectCollectAsSequence;
}
if ( oclAny.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return oclAny;
}
if ( testOclFirst.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testOclFirst;
}
if ( property1.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return property1;
}
if ( testOclIfExp.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return testOclIfExp;
}
if ( derivedProperty1.getInverseQualifiedName().equals(inverseQualifiedName) ) {
return derivedProperty1;
}
return null;
}
static public OclTest1RuntimePropertyEnum fromLabel(String _label) {
if ( testoclmodel.getLabel().equals(_label) ) {
return testoclmodel;
}
if ( testSmallerThanOne.getLabel().equals(_label) ) {
return testSmallerThanOne;
}
if ( oclCollectName.getLabel().equals(_label) ) {
return oclCollectName;
}
if ( oclSelect.getLabel().equals(_label) ) {
return oclSelect;
}
if ( oclIterateExp.getLabel().equals(_label) ) {
return oclIterateExp;
}
if ( testOclExpResultMany.getLabel().equals(_label) ) {
return testOclExpResultMany;
}
if ( oclTestCollection.getLabel().equals(_label) ) {
return oclTestCollection;
}
if ( testSmallerThanEqualOne.getLabel().equals(_label) ) {
return testSmallerThanEqualOne;
}
if ( testGreaterThanOne.getLabel().equals(_label) ) {
return testGreaterThanOne;
}
if ( testNumber.getLabel().equals(_label) ) {
return testNumber;
}
if ( testFirstOclInvalid.getLabel().equals(_label) ) {
return testFirstOclInvalid;
}
if ( testGreaterThanEqualOne.getLabel().equals(_label) ) {
return testGreaterThanEqualOne;
}
if ( oclCollectAsSet.getLabel().equals(_label) ) {
return oclCollectAsSet;
}
if ( oclCollectNested.getLabel().equals(_label) ) {
return oclCollectNested;
}
if ( oclCollectNameAsSet.getLabel().equals(_label) ) {
return oclCollectNameAsSet;
}
if ( oclIterateExp2.getLabel().equals(_label) ) {
return oclIterateExp2;
}
if ( testOclIsUndefined.getLabel().equals(_label) ) {
return testOclIsUndefined;
}
if ( oclSelectCollectAsSequence.getLabel().equals(_label) ) {
return oclSelectCollectAsSequence;
}
if ( oclAny.getLabel().equals(_label) ) {
return oclAny;
}
if ( testOclFirst.getLabel().equals(_label) ) {
return testOclFirst;
}
if ( property1.getLabel().equals(_label) ) {
return property1;
}
if ( testOclIfExp.getLabel().equals(_label) ) {
return testOclIfExp;
}
if ( derivedProperty1.getLabel().equals(_label) ) {
return derivedProperty1;
}
return null;
}
static public OclTest1RuntimePropertyEnum fromQualifiedName(String qualifiedName) {
if ( testoclmodel.getQualifiedName().equals(qualifiedName) ) {
return testoclmodel;
}
if ( testSmallerThanOne.getQualifiedName().equals(qualifiedName) ) {
return testSmallerThanOne;
}
if ( oclCollectName.getQualifiedName().equals(qualifiedName) ) {
return oclCollectName;
}
if ( oclSelect.getQualifiedName().equals(qualifiedName) ) {
return oclSelect;
}
if ( oclIterateExp.getQualifiedName().equals(qualifiedName) ) {
return oclIterateExp;
}
if ( testOclExpResultMany.getQualifiedName().equals(qualifiedName) ) {
return testOclExpResultMany;
}
if ( oclTestCollection.getQualifiedName().equals(qualifiedName) ) {
return oclTestCollection;
}
if ( testSmallerThanEqualOne.getQualifiedName().equals(qualifiedName) ) {
return testSmallerThanEqualOne;
}
if ( testGreaterThanOne.getQualifiedName().equals(qualifiedName) ) {
return testGreaterThanOne;
}
if ( testNumber.getQualifiedName().equals(qualifiedName) ) {
return testNumber;
}
if ( testFirstOclInvalid.getQualifiedName().equals(qualifiedName) ) {
return testFirstOclInvalid;
}
if ( testGreaterThanEqualOne.getQualifiedName().equals(qualifiedName) ) {
return testGreaterThanEqualOne;
}
if ( oclCollectAsSet.getQualifiedName().equals(qualifiedName) ) {
return oclCollectAsSet;
}
if ( oclCollectNested.getQualifiedName().equals(qualifiedName) ) {
return oclCollectNested;
}
if ( oclCollectNameAsSet.getQualifiedName().equals(qualifiedName) ) {
return oclCollectNameAsSet;
}
if ( oclIterateExp2.getQualifiedName().equals(qualifiedName) ) {
return oclIterateExp2;
}
if ( testOclIsUndefined.getQualifiedName().equals(qualifiedName) ) {
return testOclIsUndefined;
}
if ( oclSelectCollectAsSequence.getQualifiedName().equals(qualifiedName) ) {
return oclSelectCollectAsSequence;
}
if ( oclAny.getQualifiedName().equals(qualifiedName) ) {
return oclAny;
}
if ( testOclFirst.getQualifiedName().equals(qualifiedName) ) {
return testOclFirst;
}
if ( property1.getQualifiedName().equals(qualifiedName) ) {
return property1;
}
if ( testOclIfExp.getQualifiedName().equals(qualifiedName) ) {
return testOclIfExp;
}
if ( derivedProperty1.getQualifiedName().equals(qualifiedName) ) {
return derivedProperty1;
}
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();
}
}
}