|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.cache.PropertyTypeUtil
@Immutable public class PropertyTypeUtil
A utility for working with JCR property types
and ModeShape
property types
.
Constructor Summary | |
---|---|
PropertyTypeUtil()
|
Method Summary | |
---|---|
static int |
jcrPropertyTypeFor(Property property)
Compute the JCR PropertyType for the given ModeShape PropertyType . |
static int |
jcrPropertyTypeFor(PropertyType dnaPropertyType)
Compute the ModeShape PropertyType for the given JCR PropertyType value. |
static PropertyType |
modePropertyTypeFor(int jcrPropertyType)
Compute the ModeShape PropertyType for the given JCR PropertyType value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyTypeUtil()
Method Detail |
---|
public static final int jcrPropertyTypeFor(Property property)
PropertyType
for the given ModeShape PropertyType
.
See MODE-328 for complete discussion on why this method works the way it does. The best option appears to be basing the PropertyType on the first value, since that should be compatible with the PropertyType that was used when the values were set on the property in the first place.
property
- the ModeShape property for which the PropertyType
is to be determined; never null
PropertyType.UNDEFINED
.public static final PropertyType modePropertyTypeFor(int jcrPropertyType)
PropertyType
for the given JCR PropertyType
value.
jcrPropertyType
- the JCR property type for which the ModeShape PropertyType
is to be determined;
never null
PropertyType.UNDEFINED
.public static final int jcrPropertyTypeFor(PropertyType dnaPropertyType)
PropertyType
for the given JCR PropertyType
value.
dnaPropertyType
- the ModeShape property type; never null
PropertyType.UNDEFINED
.
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |