@Immutable public class BasicPropertyFactory extends Object implements PropertyFactory
PropertyFactory implementation.| Constructor and Description |
|---|
BasicPropertyFactory(ValueFactories valueFactories) |
| Modifier and Type | Method and Description |
|---|---|
Property |
create(Name name)
Create an empty multi-valued property with the supplied name.
|
Property |
create(Name name,
Iterable<?> values)
Create a multi-valued property with the supplied name and values
|
Property |
create(Name name,
Iterator<?> values)
Create a multi-valued property with the supplied name and values
|
Property |
create(Name name,
Object value)
Create a single-valued property with the supplied name and values
|
Property |
create(Name name,
Object[] values)
Create a multi-valued property with the supplied name and values
|
Property |
create(Name name,
Path value)
Create a single-valued property with the supplied name and
Path value. |
Property |
create(Name name,
PropertyType desiredType,
Iterable<?> values)
Create a multi-valued property with the supplied name and values
|
Property |
create(Name name,
PropertyType desiredType,
Iterator<?> values)
Create a multi-valued property with the supplied name and values
|
Property |
create(Name name,
PropertyType desiredType,
Object firstValue)
Create a single-valued property with the supplied name and values
|
Property |
create(Name name,
PropertyType desiredType,
Object[] values)
Create a multi-valued property with the supplied name and values
|
public BasicPropertyFactory(ValueFactories valueFactories)
valueFactories - the value factoriesIllegalArgumentException - if the reference to the value factories is nullpublic Property create(Name name, Path value)
PropertyFactoryPath value. This method is provided because Path
implements Iterable<Segment>.create in interface PropertyFactoryname - the property name; may not be nullvalue - the path valuepublic Property create(Name name, Iterable<?> values)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nullvalues - the valuespublic Property create(Name name, Iterator<?> values)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nullvalues - the valuespublic Property create(Name name)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nullpublic Property create(Name name, Object value)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nullvalue - the valuepublic Property create(Name name, Object[] values)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nullvalues - the valuespublic Property create(Name name, PropertyType desiredType, Object firstValue)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nulldesiredType - the type that the objects should be converted to; if null, they will be used as isfirstValue - the first value; may not be nullpublic Property create(Name name, PropertyType desiredType, Object[] values)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nulldesiredType - the type that the objects should be converted to; if null, they will be used as isvalues - the values; may not be null but may be emptypublic Property create(Name name, PropertyType desiredType, Iterable<?> values)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nulldesiredType - the type that the objects should be converted to; if null, they will be used as isvalues - the valuespublic Property create(Name name, PropertyType desiredType, Iterator<?> values)
PropertyFactorycreate in interface PropertyFactoryname - the property name; may not be nulldesiredType - the type that the objects should be converted to; if null, they will be used as isvalues - the valuesCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.