litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldServer/src/org/litesoft/GWT/forms/server/support/nonpublic/AbstractSendableDataConverter.java
|
@@ -1,20 +1,20 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.forms.server.support.nonpublic; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.core.util.*; |
5 |
|
- |
|
6 |
|
- |
import java.io.*; |
7 |
|
- |
|
8 |
|
- |
public abstract class AbstractSendableDataConverter extends TypeConverter implements FormSendableDataConverter { |
9 |
|
- |
public Serializable convertToPassable( Object pValue ) { |
10 |
|
- |
return (pValue != null) ? convertNotNullToPassable( pValue ) : null; |
11 |
|
- |
} |
12 |
|
- |
|
13 |
|
- |
public Object convertFromPassable( Serializable pValue ) { |
14 |
|
- |
return pValue != null ? convertNotNullNotBoxedTypeFromPassable( pValue ) : null; |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
abstract protected Serializable convertNotNullToPassable( Object pValue ); |
18 |
|
- |
|
19 |
|
- |
abstract protected Object convertNotNullNotBoxedTypeFromPassable( Serializable pValue ); |
20 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.forms.server.support.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.core.util.*; |
|
5 |
+ |
|
|
6 |
+ |
import java.io.*; |
|
7 |
+ |
|
|
8 |
+ |
public abstract class AbstractSendableDataConverter extends TypeConverter implements FormSendableDataConverter { |
|
9 |
+ |
public Serializable convertToPassable( Object pValue ) { |
|
10 |
+ |
return (pValue != null) ? convertNotNullToPassable( pValue ) : null; |
|
11 |
+ |
} |
|
12 |
+ |
|
|
13 |
+ |
public Object convertFromPassable( Serializable pValue ) { |
|
14 |
+ |
return pValue != null ? convertNotNullNotBoxedTypeFromPassable( pValue ) : null; |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
abstract protected Serializable convertNotNullToPassable( Object pValue ); |
|
18 |
+ |
|
|
19 |
+ |
abstract protected Object convertNotNullNotBoxedTypeFromPassable( Serializable pValue ); |
|
20 |
+ |
} |