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
|
package org.litesoft.aokeyhole.swing.mains.mementobeans.support;
import java.util.*;
import org.litesoft.aokeyhole.persist.*;
import org.litesoft.aokeyhole.swing.mains.mementobeans.support.*;
import org.litesoft.core.typeutils.*;
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 = pNotes;
}
public final void done()
{
LLdone();
}
@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();
}
|
Revision |
Author |
Commited |
Message |
830
|
GeorgeS
|
Fri 31 Aug, 2012 18:10:19 +0000 |
|