@ThreadSafe public interface PropertyFactory
Property
objects.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
|
Property create(Name name)
name
- the property name; may not be nullProperty create(Name name, Object value)
name
- the property name; may not be nullvalue
- the valueProperty create(Name name, Object[] values)
name
- the property name; may not be nullvalues
- the valuesProperty create(Name name, Iterable<?> values)
name
- the property name; may not be nullvalues
- the valuesProperty create(Name name, Iterator<?> values)
name
- the property name; may not be nullvalues
- the valuesProperty create(Name name, PropertyType desiredType, Object firstValue)
name
- 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 nullProperty create(Name name, PropertyType desiredType, Object[] values)
name
- 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 emptyProperty create(Name name, PropertyType desiredType, Iterable<?> values)
name
- 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 valuesProperty create(Name name, PropertyType desiredType, Iterator<?> values)
name
- 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–2016 JBoss, a division of Red Hat. All rights reserved.