blob: b8406a95f5065ea4ad4ee524843bb04a86732324 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2005 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());
}
}