Subversion Repository Public Repository

litesoft

Diff Revisions 939 vs 948 for /trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/mains/mementobeans/support/OADoneable.java

Diff revisions: vs.
  @@ -1,43 +1,36 @@
1 1 package org.litesoft.aokeyhole.swing.mains.mementobeans.support;
2 2
3 + import org.litesoft.aokeyhole.persist.*;
3 4 import org.litesoft.commonfoundation.typeutils.*;
4 5
5 6 import java.util.*;
6 7
7 - import org.litesoft.aokeyhole.persist.*;
8 -
9 - public abstract class OADoneable extends DoneableBuilder implements DoneablePropertyBuilder
10 - {
8 + public abstract class OADoneable extends DoneableBuilder implements DoneablePropertyBuilder {
11 9 protected final String mType;
12 10 protected final String mName;
13 11 protected final String[] mNotes;
14 12 protected final List<BeanPropertyBuilder> mProperties = Lists.newArrayList();
15 13
16 - protected OADoneable( String pID, String pType, String pName, String[] pNotes )
17 - {
14 + protected OADoneable( String pID, String pType, String pName, String[] pNotes ) {
18 15 super( pID );
19 16 mType = pType;
20 17 mName = pName;
21 18 mNotes = Strings.deNull( pNotes );
22 19 }
23 20
24 - public final void done()
25 - {
21 + public final void done() {
26 22 LLdone();
27 23 }
28 24
29 25 @Override
30 - public boolean recordAllProperties()
31 - {
26 + public boolean recordAllProperties() {
32 27 return true;
33 28 }
34 29
35 30 @Override
36 - public final void addProperty( String pName, String pValue, String... pAdditionalValues )
37 - {
31 + public final void addProperty( String pName, String pValue, String... pAdditionalValues ) {
38 32 checkCanAddProperty( getWhyCantAddProperty() );
39 - if ( BeanAttributeProperties.valueOf( pName ).shouldRecord( pValue, pAdditionalValues ) )
40 - {
33 + if ( BeanAttributeProperties.valueOf( pName ).shouldRecord( pValue, pAdditionalValues ) ) {
41 34 mProperties.add( new BeanPropertyBuilder( pName, pValue, pAdditionalValues ) );
42 35 }
43 36 }
  @@ -47,23 +40,19 @@
47 40 */
48 41 abstract protected String getWhyCantAddProperty();
49 42
50 - public String getType()
51 - {
43 + public String getType() {
52 44 return mType;
53 45 }
54 46
55 - public String getName()
56 - {
47 + public String getName() {
57 48 return mName;
58 49 }
59 50
60 - public String[] getNotes()
61 - {
51 + public String[] getNotes() {
62 52 return mNotes;
63 53 }
64 54
65 - public List<BeanPropertyBuilder> getProperties()
66 - {
55 + public List<BeanPropertyBuilder> getProperties() {
67 56 return mProperties;
68 57 }
69 58 }