blob: ab2c8161be9f311c30a8060c0477bb141a222eae [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.chtml;
nitind958d79a2004-11-23 19:23:00 +000012
13
14
15import java.util.Arrays;
16
17/**
18 * BASE.
19 */
20final class HedBASE extends HedEmpty {
21
22 /**
23 */
24 public HedBASE(ElementCollection collection) {
25 super(CHTMLNamespace.ElementName.BASE, collection);
26 // LAYOUT_HIDDEN.
27 // Because, BASE is GROUP_HIDDEN in the C++DOM/DTDParser.cpp.
28 layoutType = LAYOUT_HIDDEN;
29 }
30
31 /**
32 * BASE.
33 * (href %URI; #IMPLIED)
34 * (target %FrameTarget; #IMPLIED)
35 */
36 protected void createAttributeDeclarations() {
37 if (attributes != null)
38 return; // already created.
39 if (attributeCollection == null)
40 return; // fatal
41
42 attributes = new CMNamedNodeMapImpl();
43
44 String[] names = {CHTMLNamespace.ATTR_NAME_HREF,};
45 attributeCollection.getDeclarations(attributes, Arrays.asList(names).iterator());
46 }
47}