blob: d450994ee8f1e968f5912d4c056ac2f6cc6931b9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Oracle Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Oracle Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jsf.core.internal.contenttype;
import java.util.regex.Pattern;
/**
* Content Describer for a "facelet" (document element has an xmlns attribute with a value that
* matches ".*jsf.*" or ".*faces.*").
*
* @author ian.trimble@oracle.com
*/
public class ContentDescriberForFacelet extends AbstractContentDescriberForFacelets {
@Override
protected Pattern[] getNSValuePatterns() {
return new Pattern[] {
Pattern.compile(".*jsf.*"), //$NON-NLS-1$
Pattern.compile(".*faces.*") //$NON-NLS-1$
};
}
}