Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/objects/AttributeSetBuilder.java

Diff revisions: vs.
  @@ -1,51 +1,51 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.aokeyhole.objects;
3 -
4 - public class AttributeSetBuilder {
5 - private final AttributeType mType;
6 - private int mSortIndex = 0;
7 - private ASet mPersisted, mVirtual;
8 -
9 - public AttributeSetBuilder( AttributeType pType ) {
10 - mType = pType;
11 - }
12 -
13 - public AttributeType getType() {
14 - return mType;
15 - }
16 -
17 - public AttributeSetBuilder sortIndex( int pSortIndex ) {
18 - mSortIndex = pSortIndex;
19 - return this;
20 - }
21 -
22 - public int getSortIndex() {
23 - return mSortIndex;
24 - }
25 -
26 - public AttributeSetBuilder persisted( ASet pPersisted ) {
27 - mPersisted = pPersisted;
28 - return this;
29 - }
30 -
31 - public AttributeSetBuilder persisted( PropertyMetaData... pPMDs ) {
32 - return persisted( new ASet( pPMDs ) );
33 - }
34 -
35 - public ASet getPersisted() {
36 - return mPersisted;
37 - }
38 -
39 - public AttributeSetBuilder virtual( ASet pVirtual ) {
40 - mVirtual = pVirtual;
41 - return this;
42 - }
43 -
44 - public AttributeSetBuilder virtual( PropertyMetaData... pPMDs ) {
45 - return virtual( new ASet( pPMDs ) );
46 - }
47 -
48 - public ASet getVirtual() {
49 - return mVirtual;
50 - }
51 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.aokeyhole.objects;
3 +
4 + public class AttributeSetBuilder {
5 + private final AttributeType mType;
6 + private int mSortIndex = 0;
7 + private ASet mPersisted, mVirtual;
8 +
9 + public AttributeSetBuilder( AttributeType pType ) {
10 + mType = pType;
11 + }
12 +
13 + public AttributeType getType() {
14 + return mType;
15 + }
16 +
17 + public AttributeSetBuilder sortIndex( int pSortIndex ) {
18 + mSortIndex = pSortIndex;
19 + return this;
20 + }
21 +
22 + public int getSortIndex() {
23 + return mSortIndex;
24 + }
25 +
26 + public AttributeSetBuilder persisted( ASet pPersisted ) {
27 + mPersisted = pPersisted;
28 + return this;
29 + }
30 +
31 + public AttributeSetBuilder persisted( PropertyMetaData... pPMDs ) {
32 + return persisted( new ASet( pPMDs ) );
33 + }
34 +
35 + public ASet getPersisted() {
36 + return mPersisted;
37 + }
38 +
39 + public AttributeSetBuilder virtual( ASet pVirtual ) {
40 + mVirtual = pVirtual;
41 + return this;
42 + }
43 +
44 + public AttributeSetBuilder virtual( PropertyMetaData... pPMDs ) {
45 + return virtual( new ASet( pPMDs ) );
46 + }
47 +
48 + public ASet getVirtual() {
49 + return mVirtual;
50 + }
51 + }