From aedc34d55462a75e329bbf342251ff6504cd117e Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Sun, 19 May 2024 17:56:33 -0400 Subject: Initial import from SVN --- .../net/wotonomy/test/TestObjectClassDesc.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestObjectClassDesc.java (limited to 'projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestObjectClassDesc.java') diff --git a/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestObjectClassDesc.java b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestObjectClassDesc.java new file mode 100644 index 0000000..beb852c --- /dev/null +++ b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/TestObjectClassDesc.java @@ -0,0 +1,31 @@ +package net.wotonomy.test; + +import net.wotonomy.control.EOClassDescription; +import net.wotonomy.foundation.NSArray; + +/** +* A simple class description for testing. +*/ +public class TestObjectClassDesc extends EOClassDescription +{ + public TestObjectClassDesc() + { + super( TestObject.class ); + } + + public EOClassDescription classDescriptionForDestinationKey( + String detailKey ) + { + if ( "childList".equals( detailKey ) ) + { + return this; + } + return null; + } + + public NSArray toManyRelationshipKeys() + { + return new NSArray( "childList" ); + } + +} -- cgit v1.2.3