nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 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_williams | 5677702 | 2005-04-11 06:21:55 +0000 | [diff] [blame] | 11 | package org.eclipse.wst.html.core.internal.contentmodel.chtml; |
nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 12 | |
| 13 | |
| 14 | |
| 15 | import java.util.Arrays; |
| 16 | |
| 17 | /** |
| 18 | * BASE. |
| 19 | */ |
| 20 | final 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 | } |