Search in sources :

Example 16 with MalformedPathException

use of org.apache.jackrabbit.spi.commons.conversion.MalformedPathException in project jackrabbit by apache.

the class TextsearchQueryNode method setPropertyName.

/**
 * Sets a new name as the search scope for this fulltext query.
 *
 * @param property the name of the property.
 * @deprecated Use {@link #setRelativePath(Path)} instead.
 */
public void setPropertyName(Name property) {
    PathBuilder builder = new PathBuilder();
    builder.addLast(property);
    try {
        this.relPath = builder.getPath();
        this.propertyRef = true;
    } catch (MalformedPathException e) {
    // path is always valid
    }
}
Also used : PathBuilder(org.apache.jackrabbit.spi.commons.name.PathBuilder) MalformedPathException(org.apache.jackrabbit.spi.commons.conversion.MalformedPathException)

Aggregations

MalformedPathException (org.apache.jackrabbit.spi.commons.conversion.MalformedPathException)16 Path (org.apache.jackrabbit.spi.Path)10 RepositoryException (javax.jcr.RepositoryException)8 PathBuilder (org.apache.jackrabbit.spi.commons.name.PathBuilder)5 ItemNotFoundException (javax.jcr.ItemNotFoundException)3 NodeId (org.apache.jackrabbit.core.id.NodeId)3 NodeState (org.apache.jackrabbit.core.state.NodeState)3 ItemExistsException (javax.jcr.ItemExistsException)2 PathNotFoundException (javax.jcr.PathNotFoundException)2 ValueFormatException (javax.jcr.ValueFormatException)2 ConstraintViolationException (javax.jcr.nodetype.ConstraintViolationException)2 ChildNodeEntry (org.apache.jackrabbit.core.state.ChildNodeEntry)2 ItemStateException (org.apache.jackrabbit.core.state.ItemStateException)2 Name (org.apache.jackrabbit.spi.Name)2 QValue (org.apache.jackrabbit.spi.QValue)2 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 SimpleDateFormat (java.text.SimpleDateFormat)1 ArrayList (java.util.ArrayList)1 Calendar (java.util.Calendar)1