public enum PropertyType extends Enum<PropertyType>
| Enum Constant and Description |
|---|
BINARY |
BOOLEAN |
DATE |
DOUBLE |
LONG |
PATH |
REFERENCE |
STRING |
| Modifier and Type | Field and Description |
|---|---|
private static PropertyType[] |
all
.
|
private static Map<Class<?>,PropertyType> |
canonicalMapping
.
|
private int |
value
.
|
| Modifier and Type | Method and Description |
|---|---|
static PropertyType |
fromCanonicalType(Class<?> canonicalType) |
static PropertyType |
fromValue(int v) |
Object |
get(javax.jcr.Property property) |
protected abstract Collection<Class<?>> |
getCanonicalTypes() |
int |
getValue() |
javax.jcr.Property |
set(javax.jcr.Node node,
String name,
Object value) |
protected abstract Object |
unwrap(javax.jcr.Value value) |
static PropertyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
protected abstract javax.jcr.Value |
wrap(javax.jcr.ValueFactory factory,
Object value) |
public static final PropertyType PATH
public static final PropertyType STRING
public static final PropertyType LONG
public static final PropertyType DOUBLE
public static final PropertyType BOOLEAN
public static final PropertyType DATE
public static final PropertyType BINARY
public static final PropertyType REFERENCE
private static final PropertyType[] all
private static final Map<Class<?>,PropertyType> canonicalMapping
private final int value
public static PropertyType[] values()
for (PropertyType c : PropertyType.values()) System.out.println(c);
public static PropertyType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static PropertyType fromCanonicalType(Class<?> canonicalType)
public static PropertyType fromValue(int v)
public int getValue()
public Object get(javax.jcr.Property property) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic final javax.jcr.Property set(javax.jcr.Node node, String name, Object value) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected abstract Object unwrap(javax.jcr.Value value) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected abstract javax.jcr.Value wrap(javax.jcr.ValueFactory factory, Object value) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected abstract Collection<Class<?>> getCanonicalTypes()
Copyright © 2013 eXo Platform SAS. All Rights Reserved.