Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogblamecommitdiffstats
blob: 71d292c455bd40f97e68c845cac9ea85ec407e6d (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                 
                                                        




                        
                                                                      






























                                                                                                                                          
/*******************************************************************************
 * Copyright (c) 2004 IBM 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.wst.html.core.internal.contentmodel;



import java.util.Arrays;

import org.eclipse.wst.html.core.internal.provisional.HTML40Namespace;


/**
 * SSI:CONFIG.
 */
final class HedSSIConfig extends HedSSIBase {

	/**
	 */
	public HedSSIConfig(ElementCollection collection) {
		super(HTML40Namespace.ElementName.SSI_CONFIG, collection);
	}

	/**
	 * SSI:CONFIG.
	 * (errmsg CDATA #IMPLIED)
	 * (sizefmt CDATA #IMPLIED)
	 * (timefmt CDATA #IMPLIED)
	 */
	protected void createAttributeDeclarations() {
		if (attributes != null)
			return; // already created.
		if (attributeCollection == null)
			return; // fatal

		attributes = new CMNamedNodeMapImpl();

		String[] names = {HTML40Namespace.ATTR_NAME_ERRMSG, HTML40Namespace.ATTR_NAME_SIZEFMT, HTML40Namespace.ATTR_NAME_TIMEFMT};
		attributeCollection.getDeclarations(attributes, Arrays.asList(names).iterator());
	}
}

Back to the top