Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3bdbe3ef5c1f4079972f1a74a6003082858de5ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*******************************************************************************
 * Copyright (c) 2011, 2015 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
 *******************************************************************************/
package org.eclipse.jst.jsf.core.internal.contenttype;

import java.util.regex.Pattern;

/**
 * Content Describer for a "facelet composite component" (document element has an xmlns attribute
 * with a value that matches "http://java.sun.com/jsf/composite" or
 * "http://xmlns.jcp.org/jsf/composite").
 * 
 * @author ian.trimble@oracle.com
 */
public class ContentDescriberForFaceletCompositeComponent extends AbstractContentDescriberForFacelets {

	@Override
	protected Pattern[] getNSValuePatterns() {
		return new Pattern[] {
			Pattern.compile("http://java.sun.com/jsf/composite"), //$NON-NLS-1$
			Pattern.compile("http://xmlns.jcp.org/jsf/composite") //$NON-NLS-1$
		};
	}

}

Back to the top