|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.metamodel.mapping.jcr.PropertyMetaType<V>
V - the java type modeling the typepublic abstract class PropertyMetaType<V>
A property meta type is a representation of the JCR property types defined by PropertyType.
| Field Summary | |
|---|---|
static PropertyMetaType<java.io.InputStream> |
BINARY
. |
static PropertyMetaType<java.lang.Boolean> |
BOOLEAN
. |
static PropertyMetaType<java.util.Calendar> |
DATE
. |
static PropertyMetaType<java.lang.Double> |
DOUBLE
. |
static PropertyMetaType<java.lang.Long> |
LONG
. |
static PropertyMetaType<java.lang.String> |
NAME
. |
static PropertyMetaType<java.lang.String> |
PATH
. |
static PropertyMetaType<java.lang.String> |
STRING
. |
| Method Summary | |
|---|---|
static PropertyMetaType<?> |
get(int code)
|
int |
getCode()
Returns the JCR property type as defined by PropertyType |
java.lang.Class<V> |
getJavaValueType()
Returns the Java value type modelling the property type. |
abstract V |
getValue(javax.jcr.Value value)
Converts the Value to the java value. |
abstract javax.jcr.Value |
getValue(javax.jcr.ValueFactory factory,
V v)
Converts the Java value to the Value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PropertyMetaType<java.lang.String> STRING
public static final PropertyMetaType<java.lang.String> PATH
public static final PropertyMetaType<java.lang.String> NAME
public static final PropertyMetaType<java.lang.Long> LONG
public static final PropertyMetaType<java.lang.Double> DOUBLE
public static final PropertyMetaType<java.lang.Boolean> BOOLEAN
public static final PropertyMetaType<java.io.InputStream> BINARY
public static final PropertyMetaType<java.util.Calendar> DATE
| Method Detail |
|---|
public static PropertyMetaType<?> get(int code)
public abstract javax.jcr.Value getValue(javax.jcr.ValueFactory factory,
V v)
throws javax.jcr.ValueFormatException
Value.
factory - the JCR value factory required to create the valuev - the Java value
javax.jcr.ValueFormatException - thrown by the factory
public abstract V getValue(javax.jcr.Value value)
throws javax.jcr.RepositoryException
Value to the java value.
value - the JCR value
javax.jcr.RepositoryException - thrown by the conversionpublic java.lang.Class<V> getJavaValueType()
public int getCode()
PropertyType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||