public class DefaultPropertyFactory extends CompositePropertyFactory
The children factories are registered under a string key that is the type
name corresponding to the property that is to be created. The type name can
be specified as an absolute or as a local type name. For example if the
global type string
is redefined by a schema
myschema
then you need to use the absolute type name to refer
to that type: myschema:string
.
If one looks up a factory using an absolute type name - the absolute name will be used and if no factory is found then the local type name is used.
Modifier and Type | Field and Description |
---|---|
static PropertyFactory |
BINARY |
static PropertyFactory |
BLOB |
static PropertyFactory |
BOOLEAN |
static PropertyFactory |
DATE |
static PropertyFactory |
DEFAULT |
static PropertyFactory |
DOUBLE |
static PropertyFactory |
EXTERNAL_BLOB |
static PropertyFactory |
INTEGER |
static PropertyFactory |
STRING |
Modifier and Type | Method and Description |
---|---|
static DefaultPropertyFactory |
getInstance() |
static Property |
newArrayProperty(Property parent,
Field field,
int flags) |
static DocumentPart |
newDocumentPart(Schema schema) |
static DocumentPart |
newDocumentPart(String schemaName) |
static Property |
newListProperty(Property parent,
Field field) |
static Property |
newListProperty(Property parent,
Field field,
int flags) |
static Property |
newMapProperty(Property parent,
Field field) |
static Property |
newMapProperty(Property parent,
Field field,
int flags) |
static Property |
newProperty(Property parent,
Field field,
int flags) |
static Property |
newScalarProperty(Property parent,
Field field) |
static Property |
newScalarProperty(Property parent,
Field field,
int flags) |
void |
unregisterFactory(String schema,
String type) |
createProperty, getFactory, getFactory, registerFactory, registerFactory
public static final PropertyFactory DEFAULT
public static final PropertyFactory STRING
public static final PropertyFactory INTEGER
public static final PropertyFactory DOUBLE
public static final PropertyFactory DATE
public static final PropertyFactory BOOLEAN
public static final PropertyFactory BINARY
public static final PropertyFactory BLOB
public static final PropertyFactory EXTERNAL_BLOB
public static DefaultPropertyFactory getInstance()
public static DocumentPart newDocumentPart(Schema schema)
public static DocumentPart newDocumentPart(String schemaName)
Copyright © 2011 Nuxeo SA. All Rights Reserved.