public abstract class AbstractValueFactory extends Object implements ValueFactory
ValueFactory interface.Session.getValueFactory()| Modifier | Constructor and Description |
|---|---|
protected |
AbstractValueFactory()
Constructs a
ValueFactory object. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkNameFormat(String nameValue)
Checks the format of the given string representing a name value.
|
protected abstract void |
checkPathFormat(String pathValue)
Checks the format of the given string representing a path value.
|
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 node,
boolean weak) |
Value |
createValue(String value) |
Value |
createValue(String value,
int type) |
protected AbstractValueFactory()
ValueFactory object.protected abstract void checkPathFormat(String pathValue) throws ValueFormatException
pathValue - ValueFormatException - If the given pathValue
isn't a valid jcr path.protected abstract void checkNameFormat(String nameValue) throws ValueFormatException
nameValue - ValueFormatException - If the given pathValue
isn't a valid jcr name.public Value createValue(boolean value)
createValue in interface ValueFactorypublic Value createValue(Calendar value)
createValue in interface ValueFactorypublic Value createValue(double value)
createValue in interface ValueFactorypublic Value createValue(InputStream value)
createValue in interface ValueFactorypublic Value createValue(long value)
createValue in interface ValueFactorypublic Value createValue(Node value) throws RepositoryException
createValue in interface ValueFactoryRepositoryExceptionpublic Value createValue(String value)
createValue in interface ValueFactorypublic Value createValue(String value, int type) throws ValueFormatException
createValue in interface ValueFactoryValueFormatExceptionpublic Binary createBinary(InputStream stream) throws RepositoryException
createBinary in interface ValueFactoryRepositoryExceptionpublic Value createValue(Binary value)
createValue in interface ValueFactorypublic Value createValue(BigDecimal value)
createValue in interface ValueFactorypublic Value createValue(Node node, boolean weak) throws RepositoryException
createValue in interface ValueFactoryRepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.