public class ValueFactoryImpl extends Object
ValueFactory
interface.Constructor and Description |
---|
ValueFactoryImpl(Root root,
NamePathMapper namePathMapper)
Creates a new instance of
ValueFactory . |
Modifier and Type | Method and Description |
---|---|
Binary |
createBinary(InputStream stream) |
Value |
createValue(BigDecimal value) |
Value |
createValue(Binary value) |
Value |
createValue(boolean value) |
Value |
createValue(Calendar value) |
Value |
createValue(double value) |
Value |
createValue(InputStream value) |
Value |
createValue(long value) |
Value |
createValue(Node value) |
Value |
createValue(Node value,
boolean weak) |
static Value |
createValue(PropertyState property,
NamePathMapper namePathMapper)
Utility method for creating a
Value based on a PropertyState . |
static Value |
createValue(PropertyValue property,
NamePathMapper namePathMapper)
Utility method for creating a
Value based on a PropertyValue . |
Value |
createValue(String value) |
Value |
createValue(String value,
int type) |
List<Value> |
createValues(PropertyState property)
Utility method for creating
Value s based on a PropertyState . |
static List<Value> |
createValues(PropertyState property,
NamePathMapper namePathMapper)
Utility method for creating
Value s based on a PropertyState . |
public ValueFactoryImpl(Root root, NamePathMapper namePathMapper)
ValueFactory
.root
- the root instance for creating binary valuesnamePathMapper
- The name/path mapping used for converting JCR names/paths to
the internal representation.public static Value createValue(PropertyState property, NamePathMapper namePathMapper)
Value
based on a PropertyState
.property
- The property statenamePathMapper
- The name/path mapping used for converting JCR names/paths to
the internal representation.Value
instanceIllegalArgumentException
- if property.isArray()
is true
.public static Value createValue(PropertyValue property, NamePathMapper namePathMapper)
Value
based on a PropertyValue
.property
- The property valuenamePathMapper
- The name/path mapping used for converting JCR names/paths to
the internal representation.Value
instanceIllegalArgumentException
- if property.isArray()
is true
.public static List<Value> createValues(PropertyState property, NamePathMapper namePathMapper)
Value
s based on a PropertyState
.property
- The property statenamePathMapper
- The name/path mapping used for converting JCR names/paths to
the internal representation.Value
instancespublic List<Value> createValues(PropertyState property)
Value
s based on a PropertyState
.property
- The property stateValue
instancespublic Value createValue(String value)
public Value createValue(InputStream value)
public Value createValue(Binary value)
public Value createValue(long value)
public Value createValue(double value)
public Value createValue(Calendar value)
public Value createValue(boolean value)
public Value createValue(Node value) throws RepositoryException
RepositoryException
public Value createValue(Node value, boolean weak) throws RepositoryException
RepositoryException
public Value createValue(BigDecimal value)
public Value createValue(String value, int type) throws ValueFormatException
ValueFormatException
public Binary createBinary(InputStream stream) throws RepositoryException
RepositoryException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"