Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package org.litesoft.aokeyhole.swing.mains.mementobeans.support;

import org.litesoft.aokeyhole.persist.*;
import org.litesoft.commonfoundation.base.*;
import org.litesoft.commonfoundation.typeutils.*;

import java.util.*;

public abstract class OADoneable extends DoneableBuilder implements DoneablePropertyBuilder {
    protected final String mType;
    protected final String mName;
    protected final String[] mNotes;
    protected final List<BeanPropertyBuilder> mProperties = Lists.newArrayList();

    protected OADoneable( String pID, String pType, String pName, String[] pNotes ) {
        super( pID );
        mType = pType;
        mName = pName;
        mNotes = ConstrainTo.notNull( pNotes );
    }

    @Override
    public final void done() {
        LLdone();
    }

    @Override
    public boolean recordAllProperties() {
        return true;
    }

    @Override
    public final void addProperty( String pName, String pValue, String... pAdditionalValues ) {
        checkCanAddProperty( getWhyCantAddProperty() );
        if ( BeanAttributeProperties.valueOf( pName ).shouldRecord( pValue, pAdditionalValues ) ) {
            mProperties.add( new BeanPropertyBuilder( pName, pValue, pAdditionalValues ) );
        }
    }

    /**
     * @return !null (suffix) "why" a Property can not be added to "this"
     */
    abstract protected String getWhyCantAddProperty();

    public String getType() {
        return mType;
    }

    public String getName() {
        return mName;
    }

    public String[] getNotes() {
        return mNotes;
    }

    public List<BeanPropertyBuilder> getProperties() {
        return mProperties;
    }
}

Commits for litesoft/trunk/Java/KeyHole/src/org/litesoft/aokeyhole/swing/mains/mementobeans/support/OADoneable.java

Diff revisions: vs.
Revision Author Commited Message
950 Diff Diff GeorgeS picture GeorgeS Thu 19 Jun, 2014 17:57:04 +0000

New Lines

948 Diff Diff GeorgeS picture GeorgeS Sat 07 Jun, 2014 23:42:39 +0000

Jusefuls Formatter Updated to New Code Format

939 Diff Diff GeorgeS picture GeorgeS Mon 02 Jun, 2014 21:30:31 +0000

Extracting commonfoundation

841 Diff Diff GeorgeS picture GeorgeS Thu 06 Sep, 2012 18:28:52 +0000
836 Diff Diff GeorgeS picture GeorgeS Wed 05 Sep, 2012 15:01:18 +0000
830 GeorgeS picture GeorgeS Fri 31 Aug, 2012 18:10:19 +0000