|
@@ -1,82 +1,82 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.aokeyhole.objects; |
3 |
|
- |
|
4 |
|
- |
public class ObjectSet { |
5 |
|
- |
private final boolean mRequireID; |
6 |
|
- |
private final int mSortIndex; |
7 |
|
- |
private final boolean mDerivableFrom; |
8 |
|
- |
private final String mType; |
9 |
|
- |
private final PropertyMetaData[] mPMDs; |
10 |
|
- |
|
11 |
|
- |
public ObjectSet( boolean pRequireID, int pSortIndex, boolean pDerivableFrom, String pType, PropertyMetaData... pPMDs ) { |
12 |
|
- |
mRequireID = pRequireID; |
13 |
|
- |
mSortIndex = pSortIndex; |
14 |
|
- |
mDerivableFrom = pDerivableFrom; |
15 |
|
- |
mType = pType; |
16 |
|
- |
mPMDs = pPMDs; |
17 |
|
- |
} |
18 |
|
- |
|
19 |
|
- |
public ObjectSet( int pSortIndex, boolean pDerivableFrom, String pType, PropertyMetaData... pPMDs ) { |
20 |
|
- |
this( true, pSortIndex, pDerivableFrom, pType, pPMDs ); |
21 |
|
- |
} |
22 |
|
- |
|
23 |
|
- |
public int getSortIndex() { |
24 |
|
- |
return mSortIndex; |
25 |
|
- |
} |
26 |
|
- |
|
27 |
|
- |
@SuppressWarnings("UnusedDeclaration") |
28 |
|
- |
public boolean isDerivableFrom() { |
29 |
|
- |
return mDerivableFrom; |
30 |
|
- |
} |
31 |
|
- |
|
32 |
|
- |
public String getType() { |
33 |
|
- |
return mType; |
34 |
|
- |
} |
35 |
|
- |
|
36 |
|
- |
/** |
37 |
|
- |
* @return null means no Parent |
38 |
|
- |
*/ |
39 |
|
- |
@SuppressWarnings({"UnusedDeclaration"}) |
40 |
|
- |
public String getParentLabel( String pSubSystemName ) { |
41 |
|
- |
return null; |
42 |
|
- |
} |
43 |
|
- |
|
44 |
|
- |
@SuppressWarnings({"UnusedDeclaration"}) |
45 |
|
- |
public boolean isAcceptableParentOption( String zObjectSetType ) { |
46 |
|
- |
return true; |
47 |
|
- |
} |
48 |
|
- |
|
49 |
|
- |
public PropertyMetaData[] getPMDs() { |
50 |
|
- |
return mPMDs; |
51 |
|
- |
} |
52 |
|
- |
|
53 |
|
- |
@SuppressWarnings({"UnusedDeclaration"}) |
54 |
|
- |
public boolean acceptableForSubSystem( String pSubSystemName ) { |
55 |
|
- |
return true; |
56 |
|
- |
} |
57 |
|
- |
|
58 |
|
- |
public boolean requireID() { |
59 |
|
- |
return mRequireID; |
60 |
|
- |
} |
61 |
|
- |
|
62 |
|
- |
@SuppressWarnings({"UnusedDeclaration"}) |
63 |
|
- |
public void justCreated( ObjectMetaData pObjectMetaData ) { |
64 |
|
- |
} |
65 |
|
- |
|
66 |
|
- |
@SuppressWarnings({"UnusedDeclaration"}) |
67 |
|
- |
public PropertyMetaData[] getAdditionalAttributePMDs( AttributeType pType ) { |
68 |
|
- |
return null; |
69 |
|
- |
} |
70 |
|
- |
|
71 |
|
- |
public boolean acceptableAttributePMD( PropertyMetaData pPropertyMetaData ) { |
72 |
|
- |
return true; |
73 |
|
- |
} |
74 |
|
- |
|
75 |
|
- |
public boolean acceptableAttributeType( AttributeType pAttributeType ) { |
76 |
|
- |
return true; |
77 |
|
- |
} |
78 |
|
- |
|
79 |
|
- |
public String labelForRegularAttributes() { |
80 |
|
- |
return "Persisted"; |
81 |
|
- |
} |
82 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.aokeyhole.objects; |
|
3 |
+ |
|
|
4 |
+ |
public class ObjectSet { |
|
5 |
+ |
private final boolean mRequireID; |
|
6 |
+ |
private final int mSortIndex; |
|
7 |
+ |
private final boolean mDerivableFrom; |
|
8 |
+ |
private final String mType; |
|
9 |
+ |
private final PropertyMetaData[] mPMDs; |
|
10 |
+ |
|
|
11 |
+ |
public ObjectSet( boolean pRequireID, int pSortIndex, boolean pDerivableFrom, String pType, PropertyMetaData... pPMDs ) { |
|
12 |
+ |
mRequireID = pRequireID; |
|
13 |
+ |
mSortIndex = pSortIndex; |
|
14 |
+ |
mDerivableFrom = pDerivableFrom; |
|
15 |
+ |
mType = pType; |
|
16 |
+ |
mPMDs = pPMDs; |
|
17 |
+ |
} |
|
18 |
+ |
|
|
19 |
+ |
public ObjectSet( int pSortIndex, boolean pDerivableFrom, String pType, PropertyMetaData... pPMDs ) { |
|
20 |
+ |
this( true, pSortIndex, pDerivableFrom, pType, pPMDs ); |
|
21 |
+ |
} |
|
22 |
+ |
|
|
23 |
+ |
public int getSortIndex() { |
|
24 |
+ |
return mSortIndex; |
|
25 |
+ |
} |
|
26 |
+ |
|
|
27 |
+ |
@SuppressWarnings("UnusedDeclaration") |
|
28 |
+ |
public boolean isDerivableFrom() { |
|
29 |
+ |
return mDerivableFrom; |
|
30 |
+ |
} |
|
31 |
+ |
|
|
32 |
+ |
public String getType() { |
|
33 |
+ |
return mType; |
|
34 |
+ |
} |
|
35 |
+ |
|
|
36 |
+ |
/** |
|
37 |
+ |
* @return null means no Parent |
|
38 |
+ |
*/ |
|
39 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
|
40 |
+ |
public String getParentLabel( String pSubSystemName ) { |
|
41 |
+ |
return null; |
|
42 |
+ |
} |
|
43 |
+ |
|
|
44 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
|
45 |
+ |
public boolean isAcceptableParentOption( String zObjectSetType ) { |
|
46 |
+ |
return true; |
|
47 |
+ |
} |
|
48 |
+ |
|
|
49 |
+ |
public PropertyMetaData[] getPMDs() { |
|
50 |
+ |
return mPMDs; |
|
51 |
+ |
} |
|
52 |
+ |
|
|
53 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
|
54 |
+ |
public boolean acceptableForSubSystem( String pSubSystemName ) { |
|
55 |
+ |
return true; |
|
56 |
+ |
} |
|
57 |
+ |
|
|
58 |
+ |
public boolean requireID() { |
|
59 |
+ |
return mRequireID; |
|
60 |
+ |
} |
|
61 |
+ |
|
|
62 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
|
63 |
+ |
public void justCreated( ObjectMetaData pObjectMetaData ) { |
|
64 |
+ |
} |
|
65 |
+ |
|
|
66 |
+ |
@SuppressWarnings({"UnusedDeclaration"}) |
|
67 |
+ |
public PropertyMetaData[] getAdditionalAttributePMDs( AttributeType pType ) { |
|
68 |
+ |
return null; |
|
69 |
+ |
} |
|
70 |
+ |
|
|
71 |
+ |
public boolean acceptableAttributePMD( PropertyMetaData pPropertyMetaData ) { |
|
72 |
+ |
return true; |
|
73 |
+ |
} |
|
74 |
+ |
|
|
75 |
+ |
public boolean acceptableAttributeType( AttributeType pAttributeType ) { |
|
76 |
+ |
return true; |
|
77 |
+ |
} |
|
78 |
+ |
|
|
79 |
+ |
public String labelForRegularAttributes() { |
|
80 |
+ |
return "Persisted"; |
|
81 |
+ |
} |
|
82 |
+ |
} |