nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
amywu | 923ee60 | 2007-04-10 18:32:07 +0000 | [diff] [blame] | 2 | * Copyright (c) 2004, 2005 IBM Corporation and others. |
nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 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 |
amywu | 923ee60 | 2007-04-10 18:32:07 +0000 | [diff] [blame] | 7 | * |
nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 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 | |
david_williams | c06c86f | 2005-03-18 18:23:41 +0000 | [diff] [blame] | 15 | import org.eclipse.wst.xml.core.internal.contentmodel.CMNamedNodeMap; |
nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 16 | |
| 17 | /** |
| 18 | * SSI:PRINTENV. |
| 19 | */ |
| 20 | final class HedSSIPrintenv extends HedSSIBase { |
| 21 | |
| 22 | /** |
| 23 | */ |
| 24 | public HedSSIPrintenv(ElementCollection collection) { |
| 25 | super(CHTMLNamespace.ElementName.SSI_PRINTENV, collection); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | */ |
| 30 | protected void createAttributeDeclarations() { |
| 31 | if (attributes != null) |
| 32 | return; // already created. |
| 33 | if (attributeCollection == null) |
| 34 | return; // fatal |
| 35 | |
| 36 | attributes = new CMNamedNodeMapImpl(); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * SSI:PRINTENV has no attributes. So, this method should |
| 41 | * always return <code>null</code>. |
| 42 | * Note: Since somebody doesn't expect null is returned, return the empty attribute |
| 43 | * like a custom tag which doesn't have attributes |
| 44 | */ |
| 45 | public CMNamedNodeMap getAttributes() { |
| 46 | return super.getAttributes(); |
| 47 | } |
amywu | 923ee60 | 2007-04-10 18:32:07 +0000 | [diff] [blame] | 48 | } |