blob: 4d4316438602eb47fee8c1584bb719d697897313 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2010 Oracle Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Oracle - initial API and implementation
*
********************************************************************************/
package org.eclipse.jst.jsf.common.metadata.query;
import org.eclipse.jst.jsf.common.metadata.Entity;
/**
* Abstract class implementing {@link IEntityQueryVisitor} that concrete subclasses should provide implementations
* <p><b>Provisional API - subject to change</b></p>
*/
public abstract class AbstractEntityQueryVisitor extends AbstractEntityVisitor
implements IEntityQueryVisitor {
private String _delimiter = "/"; //$NON-NLS-1$
/**
* @return EmptyResultSet. Subclasses should override.
*/
public IResultSet<Entity> findEntities(final Entity initialEntityContext, final String entityKey) {
return new EmptyResultSet();
}
/**
* @return String delimiting levels in the hierarchy. Defaults to "/"
*/
protected String getLevelDelimiter() {
return _delimiter;
}
/**
* Sets the string used to delimit the levels in an entityKey
* @param delimiter
*/
protected void setLevelDelimiter(final String delimiter) {
_delimiter = delimiter;
}
}