org.modeshape.jcr
Class PropertyTypeUtil
java.lang.Object
org.modeshape.jcr.PropertyTypeUtil
@Immutable
public class PropertyTypeUtil
- extends Object
A utility for working with JCR property types
and ModeShape property types
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyTypeUtil
public PropertyTypeUtil()
dnaPropertyTypeFor
public static final PropertyType dnaPropertyTypeFor(int jcrPropertyType)
- Compute the ModeShape
PropertyType
for the given JCR PropertyType
value.
- Parameters:
jcrPropertyType
- the ModeShape property for which the PropertyType
is to be determined; never null
- Returns:
- the JCR property type; always a valid value and never
PropertyType.UNDEFINED
.
jcrPropertyTypeFor
public static final int jcrPropertyTypeFor(PropertyType dnaPropertyType)
- Compute the ModeShape
PropertyType
for the given JCR PropertyType
value.
- Parameters:
dnaPropertyType
- the ModeShape property type; never null
- Returns:
- the JCR property type; always a valid value and never
PropertyType.UNDEFINED
.
Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.