blob: cd3e388722d4b6442287fcd9e65df5134254d9bd [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 Oracle Corporation and others.
* 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 Corporation - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.jst.jsf.common.metadata.query.internal.taglib;
import org.eclipse.jst.jsf.common.metadata.query.internal.IQuerySpec;
import org.eclipse.jst.jsf.common.metadata.query.internal.Key;
/**
* Implements a tag trait query spec where the trait id's are matched.
* <p>
* The PredicateMatcher will use this class to do an regex match of the id to the value
*
*/
public final class TaglibDomainTraitQuerySpec implements IQuerySpec {
private final String _traidId;
/**
* Construct a query spec for a tag library model
* @param traidId - may not be null
*/
public TaglibDomainTraitQuerySpec(final String traidId) {
_traidId = traidId;
}
public TagDomainTraitKey getKey() {
return new TagDomainTraitKey();
}
class TagDomainTraitKey extends Key {
/**
* @return model traidId
*/
public String getTraitId() {
return _traidId;
}
public Object getAdapter(Class adapter) {
return null;
}
}
}