Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.model.impl
Class DefaultPropertyFactory

java.lang.Object
  extended by org.nuxeo.ecm.core.api.model.impl.CompositePropertyFactory
      extended by org.nuxeo.ecm.core.api.model.impl.DefaultPropertyFactory
All Implemented Interfaces:
PropertyFactory

public class DefaultPropertyFactory
extends CompositePropertyFactory

A composite property factory that uses children factories to create properties.

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.

Author:
Bogdan Stefanescu

Field Summary
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
           
 
Method Summary
 PropertyFactory getFactory(String schema, String type)
           
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)
           
 
Methods inherited from class org.nuxeo.ecm.core.api.model.impl.CompositePropertyFactory
createProperty, getFactory, registerFactory, registerFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final PropertyFactory DEFAULT

STRING

public static final PropertyFactory STRING

INTEGER

public static final PropertyFactory INTEGER

DOUBLE

public static final PropertyFactory DOUBLE

DATE

public static final PropertyFactory DATE

BOOLEAN

public static final PropertyFactory BOOLEAN

BINARY

public static final PropertyFactory BINARY

BLOB

public static final PropertyFactory BLOB

EXTERNAL_BLOB

public static final PropertyFactory EXTERNAL_BLOB
Method Detail

getInstance

public static DefaultPropertyFactory getInstance()

unregisterFactory

public void unregisterFactory(String schema,
                              String type)

getFactory

public PropertyFactory getFactory(String schema,
                                  String type)
Overrides:
getFactory in class CompositePropertyFactory

newDocumentPart

public static DocumentPart newDocumentPart(Schema schema)

newDocumentPart

public static DocumentPart newDocumentPart(String schemaName)

newMapProperty

public static Property newMapProperty(Property parent,
                                      Field field)

newMapProperty

public static Property newMapProperty(Property parent,
                                      Field field,
                                      int flags)

newListProperty

public static Property newListProperty(Property parent,
                                       Field field)

newListProperty

public static Property newListProperty(Property parent,
                                       Field field,
                                       int flags)

newScalarProperty

public static Property newScalarProperty(Property parent,
                                         Field field)

newScalarProperty

public static Property newScalarProperty(Property parent,
                                         Field field,
                                         int flags)

newArrayProperty

public static Property newArrayProperty(Property parent,
                                        Field field,
                                        int flags)

newProperty

public static Property newProperty(Property parent,
                                   Field field,
                                   int flags)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.