use of org.whole.lang.testentities.model.SimpleTestEntity in project whole by wholeplatform.
the class TestingModel method create.
public ListTestEntity create() {
TestEntitiesEntityFactory lf1 = TestEntitiesEntityFactory.instance;
SimpleTestEntity e1 = lf1.createSimpleTestEntity(CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ITestEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IStructuralEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ICompositeEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IDataEntity), lf1.createBooleanTestEntity(false), lf1.createByteTestEntity((byte) 23), lf1.createCharTestEntity('v'), lf1.createDoubleTestEntity(0.0), lf1.createFloatTestEntity(0.0f), lf1.createIntTestEntity(342), lf1.createLongTestEntity(8365), lf1.createShortTestEntity((short) 4355), lf1.createStringTestEntity("text"), lf1.createDateTestEntity(new Date()), lf1.createEnumTestEntity(EnumTestEntityEnum.zero), lf1.createObjectTestEntity(new Object()));
SimpleTestEntity e2 = lf1.createSimpleTestEntity(e1, CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IStructuralEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ICompositeEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IDataEntity), lf1.createBooleanTestEntity(true), lf1.createByteTestEntity((byte) 123), lf1.createCharTestEntity('x'), lf1.createDoubleTestEntity(1.2), lf1.createFloatTestEntity(234.432f), lf1.createIntTestEntity(0), lf1.createLongTestEntity(0), lf1.createShortTestEntity((short) 0), lf1.createStringTestEntity("id"), lf1.createDateTestEntity(new Date()), lf1.createEnumTestEntity(EnumTestEntityEnum.zero), lf1.createObjectTestEntity(new Object()));
SimpleTestEntity e3 = lf1.createSimpleTestEntity(CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ITestEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IStructuralEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ICompositeEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IDataEntity), lf1.createBooleanTestEntity(true), lf1.createByteTestEntity((byte) 32), lf1.createCharTestEntity('h'), lf1.createDoubleTestEntity(2134.0), lf1.createFloatTestEntity(234432.44f), lf1.createIntTestEntity(653), lf1.createLongTestEntity(4325345), lf1.createShortTestEntity((short) 45), lf1.createStringTestEntity("id"), lf1.createDateTestEntity(new Date()), lf1.createEnumTestEntity(EnumTestEntityEnum.zero), lf1.createObjectTestEntity(new Object()));
SimpleTestEntity e4 = lf1.createSimpleTestEntity(lf1.createListTestEntity(new ITestEntity[] { e2, e3 }), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IStructuralEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ICompositeEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IDataEntity), lf1.createBooleanTestEntity(false), lf1.createByteTestEntity((byte) 1), lf1.createCharTestEntity('c'), lf1.createDoubleTestEntity(3.5), lf1.createFloatTestEntity(2.3f), lf1.createIntTestEntity(12), lf1.createLongTestEntity(1234), lf1.createShortTestEntity((short) 21), lf1.createStringTestEntity("str"), lf1.createDateTestEntity(new Date()), lf1.createEnumTestEntity(EnumTestEntityEnum.zero), lf1.createObjectTestEntity(new Object()));
SimpleTestEntity e5 = lf1.createSimpleTestEntity(CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ITestEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IStructuralEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.ICompositeEntity), CommonsEntityAdapterFactory.createResolver(TestEntitiesEntityDescriptorEnum.IDataEntity), lf1.createBooleanTestEntity(false), lf1.createByteTestEntity((byte) 43), lf1.createCharTestEntity('f'), lf1.createDoubleTestEntity(376364.43), lf1.createFloatTestEntity(12.43f), lf1.createIntTestEntity(6456), lf1.createLongTestEntity(35), lf1.createShortTestEntity((short) 34), lf1.createStringTestEntity("id"), lf1.createDateTestEntity(new Date()), lf1.createEnumTestEntity(EnumTestEntityEnum.zero), lf1.createObjectTestEntity(new Object()));
return lf1.createListTestEntity(new ITestEntity[] { e4, e5 });
}
Aggregations