public class CompositePropertyFactory extends Object implements PropertyFactory
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.
Constructor and Description |
---|
CompositePropertyFactory(PropertyFactory defaultFactory) |
Modifier and Type | Method and Description |
---|---|
Property |
createProperty(Property parent,
Field field,
int flags) |
PropertyFactory |
getFactory(String type) |
PropertyFactory |
getFactory(String schema,
String type) |
void |
registerFactory(String type,
PropertyFactory factory) |
void |
registerFactory(String schema,
String type,
PropertyFactory factory) |
public CompositePropertyFactory(PropertyFactory defaultFactory)
public void registerFactory(String type, PropertyFactory factory)
public void registerFactory(String schema, String type, PropertyFactory factory)
public PropertyFactory getFactory(String type)
public PropertyFactory getFactory(String schema, String type)
public Property createProperty(Property parent, Field field, int flags)
createProperty
in interface PropertyFactory
Copyright © 2011 Nuxeo SA. All Rights Reserved.