|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.jcr.PropertyType
public final class PropertyType
The property types supported by the JCR standard.
This interface defines following property types:
STRING
BINARY LONG DOUBLE
DECIMAL DATE BOOLEAN
NAME PATH REFERENCE
WEAKREFERENCE URI
| Field Summary | |
|---|---|
static int |
BINARY
BINARY properties are used to store binary data. |
static int |
BOOLEAN
The BOOLEAN property type is used to store boolean values. |
static int |
DATE
The DATE property type is used to store time and date
information. |
static int |
DECIMAL
The DECIMAL property type is used to store precise decimal
numbers. |
static int |
DOUBLE
The DOUBLE property type is used to store floating point
numbers. |
static int |
LONG
The LONG property type is used to store integers. |
static int |
NAME
A NAME is a pairing of a namespace and a local name. |
static int |
PATH
A PATH property is an ordered list of path elements. |
static int |
REFERENCE
A REFERENCE property stores the identifier of a
referenceable node (one having type mix:referenceable),
which must exist within the same workspace or session as the
REFERENCE property. |
static int |
STRING
The STRING property type is used to store strings. |
static java.lang.String |
TYPENAME_BINARY
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_BOOLEAN
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_DATE
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_DECIMAL
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_DOUBLE
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_LONG
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_NAME
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_PATH
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_REFERENCE
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_STRING
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_UNDEFINED
|
static java.lang.String |
TYPENAME_URI
String constant for type name as used in serialization. |
static java.lang.String |
TYPENAME_WEAKREFERENCE
String constant for type name as used in serialization. |
static int |
UNDEFINED
This constant can be used within a property definition (see 4.7.5 Property Definitions) to specify that the property in question may be of any type. |
static int |
URI
A URI property is identical to STRING property
except that it only accepts values that conform to the syntax of a
URI-reference as defined in RFC 3986. |
static int |
WEAKREFERENCE
A WEAKREFERENCE property stores the identifier of a
referenceable node (one having type mix:referenceable). |
| Method Summary | |
|---|---|
static java.lang.String |
nameFromValue(int type)
Returns the name of the specified type, as used in
serialization. |
static int |
valueFromName(java.lang.String name)
Returns the numeric constant value of the type with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STRING
STRING property type is used to store strings. It has
the same characteristics as the Java String class.
public static final int BINARY
BINARY properties are used to store binary data.
public static final int LONG
LONG property type is used to store integers. It has the
same characteristics as the Java primitive type long.
public static final int DOUBLE
DOUBLE property type is used to store floating point
numbers. It has the same characteristics as the Java primitive type
double.
public static final int DATE
DATE property type is used to store time and date
information.
public static final int BOOLEAN
BOOLEAN property type is used to store boolean values.
It has the same characteristics as the Java primitive type
boolean.
public static final int NAME
NAME is a pairing of a namespace and a local name. When
read, the namespace is mapped to the current prefix.
public static final int PATH
PATH property is an ordered list of path elements. A path
element is a NAME with an optional index. When read, the
NAMEs within the path are mapped to their current prefix. A
path may be absolute or relative.
public static final int REFERENCE
REFERENCE property stores the identifier of a
referenceable node (one having type mix:referenceable),
which must exist within the same workspace or session as the
REFERENCE property. A REFERENCE property
enforces this referential integrity by preventing the removal of its
target node.
public static final int WEAKREFERENCE
WEAKREFERENCE property stores the identifier of a
referenceable node (one having type mix:referenceable). A
WEAKREFERENCE property does not enforce referential
integrity.
public static final int URI
URI property is identical to STRING property
except that it only accepts values that conform to the syntax of a
URI-reference as defined in RFC 3986.
public static final int DECIMAL
DECIMAL property type is used to store precise decimal
numbers. It has the same characteristics as the Java class
java.math.BigDecimal.
public static final int UNDEFINED
Property.getType() and it cannot be assigned as the type when creating a
new property.
public static final java.lang.String TYPENAME_STRING
public static final java.lang.String TYPENAME_BINARY
public static final java.lang.String TYPENAME_LONG
public static final java.lang.String TYPENAME_DOUBLE
public static final java.lang.String TYPENAME_DECIMAL
public static final java.lang.String TYPENAME_DATE
public static final java.lang.String TYPENAME_BOOLEAN
public static final java.lang.String TYPENAME_NAME
public static final java.lang.String TYPENAME_PATH
public static final java.lang.String TYPENAME_REFERENCE
public static final java.lang.String TYPENAME_WEAKREFERENCE
public static final java.lang.String TYPENAME_URI
public static final java.lang.String TYPENAME_UNDEFINED
| Method Detail |
|---|
public static java.lang.String nameFromValue(int type)
type, as used in
serialization.
type - the property type
type
java.lang.IllegalArgumentException - if type is not a valid
property type.public static int valueFromName(java.lang.String name)
name - the name of the property type.
java.lang.IllegalArgumentException - if name is not a valid
property type name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||