blob: 71d292c455bd40f97e68c845cac9ea85ec407e6d [file] [log] [blame]
nitind958d79a2004-11-23 19:23:00 +00001/*******************************************************************************
2 * Copyright (c) 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
david_williams56777022005-04-11 06:21:55 +000011package org.eclipse.wst.html.core.internal.contentmodel;
nitind958d79a2004-11-23 19:23:00 +000012
13
14
15import java.util.Arrays;
16
david_williams4ad020f2005-04-18 08:00:30 +000017import org.eclipse.wst.html.core.internal.provisional.HTML40Namespace;
nitind958d79a2004-11-23 19:23:00 +000018
19
20/**
21 * SSI:CONFIG.
22 */
23final class HedSSIConfig extends HedSSIBase {
24
25 /**
26 */
27 public HedSSIConfig(ElementCollection collection) {
28 super(HTML40Namespace.ElementName.SSI_CONFIG, collection);
29 }
30
31 /**
32 * SSI:CONFIG.
33 * (errmsg CDATA #IMPLIED)
34 * (sizefmt CDATA #IMPLIED)
35 * (timefmt CDATA #IMPLIED)
36 */
37 protected void createAttributeDeclarations() {
38 if (attributes != null)
39 return; // already created.
40 if (attributeCollection == null)
41 return; // fatal
42
43 attributes = new CMNamedNodeMapImpl();
44
45 String[] names = {HTML40Namespace.ATTR_NAME_ERRMSG, HTML40Namespace.ATTR_NAME_SIZEFMT, HTML40Namespace.ATTR_NAME_TIMEFMT};
46 attributeCollection.getDeclarations(attributes, Arrays.asList(names).iterator());
47 }
48}