Copyright© 2008-2022 Sitevision AB, all rights reserved.
public final class PropertyType extends Object
This interface defines following property types:
STRING
BINARY
LONG
DOUBLE
DECIMAL
DATE
BOOLEAN
NAME
PATH
REFERENCE
WEAKREFERENCE
URI
Modifier and Type | Field and Description |
---|---|
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 String |
TYPENAME_BINARY
String constant for type name as used in serialization.
|
static String |
TYPENAME_BOOLEAN
String constant for type name as used in serialization.
|
static String |
TYPENAME_DATE
String constant for type name as used in serialization.
|
static String |
TYPENAME_DECIMAL
String constant for type name as used in serialization.
|
static String |
TYPENAME_DOUBLE
String constant for type name as used in serialization.
|
static String |
TYPENAME_LONG
String constant for type name as used in serialization.
|
static String |
TYPENAME_NAME
String constant for type name as used in serialization.
|
static String |
TYPENAME_PATH
String constant for type name as used in serialization.
|
static String |
TYPENAME_REFERENCE
String constant for type name as used in serialization.
|
static String |
TYPENAME_STRING
String constant for type name as used in serialization.
|
static String |
TYPENAME_UNDEFINED |
static String |
TYPENAME_URI
String constant for type name as used in serialization.
|
static 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 ). |
Modifier and Type | Method and Description |
---|---|
static String |
nameFromValue(int type)
Returns the name of the specified
type , as used in
serialization. |
static int |
valueFromName(String name)
Returns the numeric constant value of the type with the specified name.
|
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
NAME
s 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 String TYPENAME_STRING
public static final String TYPENAME_BINARY
public static final String TYPENAME_LONG
public static final String TYPENAME_DOUBLE
public static final String TYPENAME_DECIMAL
public static final String TYPENAME_DATE
public static final String TYPENAME_BOOLEAN
public static final String TYPENAME_NAME
public static final String TYPENAME_PATH
public static final String TYPENAME_REFERENCE
public static final String TYPENAME_WEAKREFERENCE
public static final String TYPENAME_URI
public static final String TYPENAME_UNDEFINED
public static String nameFromValue(int type)
type
, as used in
serialization.type
- the property typetype
IllegalArgumentException
- if type
is not a valid
property type.public static int valueFromName(String name)
name
- the name of the property type.IllegalArgumentException
- if name
is not a valid
property type name.Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.