public abstract class AbstractValueFactory extends Object implements javax.jcr.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.
|
javax.jcr.Binary |
createBinary(InputStream stream) |
javax.jcr.Value |
createValue(BigDecimal value) |
javax.jcr.Value |
createValue(javax.jcr.Binary value) |
javax.jcr.Value |
createValue(boolean value) |
javax.jcr.Value |
createValue(Calendar value) |
javax.jcr.Value |
createValue(double value) |
javax.jcr.Value |
createValue(InputStream value) |
javax.jcr.Value |
createValue(long value) |
javax.jcr.Value |
createValue(javax.jcr.Node value) |
javax.jcr.Value |
createValue(javax.jcr.Node node,
boolean weak) |
javax.jcr.Value |
createValue(String value) |
javax.jcr.Value |
createValue(String value,
int type) |
protected AbstractValueFactory()
ValueFactory object.protected abstract void checkPathFormat(String pathValue) throws javax.jcr.ValueFormatException
pathValue - javax.jcr.ValueFormatException - If the given pathValue
isn't a valid jcr path.protected abstract void checkNameFormat(String nameValue) throws javax.jcr.ValueFormatException
nameValue - javax.jcr.ValueFormatException - If the given pathValue
isn't a valid jcr name.public javax.jcr.Value createValue(boolean value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(Calendar value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(double value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(InputStream value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(long value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(javax.jcr.Node value)
throws javax.jcr.RepositoryException
createValue in interface javax.jcr.ValueFactoryjavax.jcr.RepositoryExceptionpublic javax.jcr.Value createValue(String value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(String value, int type) throws javax.jcr.ValueFormatException
createValue in interface javax.jcr.ValueFactoryjavax.jcr.ValueFormatExceptionpublic javax.jcr.Binary createBinary(InputStream stream) throws javax.jcr.RepositoryException
createBinary in interface javax.jcr.ValueFactoryjavax.jcr.RepositoryExceptionpublic javax.jcr.Value createValue(javax.jcr.Binary value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(BigDecimal value)
createValue in interface javax.jcr.ValueFactorypublic javax.jcr.Value createValue(javax.jcr.Node node,
boolean weak)
throws javax.jcr.RepositoryException
createValue in interface javax.jcr.ValueFactoryjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.