blob: d9ae2ea6defc0ad5156c41dffb399ec4579afd63 [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_williams63219a22005-04-10 01:59:51 +000011package org.eclipse.wst.css.core.internal.metamodel;
nitind958d79a2004-11-23 19:23:00 +000012
13
14
15import java.util.Iterator;
16
17public interface CSSMMNode {
18 String getType();
19
20 String getName();
21
22 String getDescription();
23
24 String getAttribute(String name);
25
26 Iterator getChildNodes();
27
28 Iterator getDescendants();
29
30
31 static final String _PREFIX = "CSSMM."; //$NON-NLS-1$
32 static final String TYPE_KEYWORD = _PREFIX + "Keyword"; //$NON-NLS-1$
33 static final String TYPE_UNIT = _PREFIX + "Unit"; //$NON-NLS-1$
34 static final String TYPE_FUNCTION = _PREFIX + "Function"; //$NON-NLS-1$
35 static final String TYPE_STRING = _PREFIX + "String"; //$NON-NLS-1$
36 static final String TYPE_STYLE_SHEET = _PREFIX + "StyleSheet"; //$NON-NLS-1$
37 static final String TYPE_PROPERTY = _PREFIX + "Property"; //$NON-NLS-1$
38 static final String TYPE_DESCRIPTOR = _PREFIX + "Descriptor"; //$NON-NLS-1$
39 static final String TYPE_CONTAINER = _PREFIX + "Container"; //$NON-NLS-1$
40 static final String TYPE_NUMBER = _PREFIX + "Number"; //$NON-NLS-1$
41 static final String TYPE_SEPARATOR = _PREFIX + "Separator"; //$NON-NLS-1$
42 static final String TYPE_CHARSET_RULE = _PREFIX + "CharsetRule"; //$NON-NLS-1$
43 static final String TYPE_IMPORT_RULE = _PREFIX + "ImportRule"; //$NON-NLS-1$
44 static final String TYPE_STYLE_RULE = _PREFIX + "StyleRule"; //$NON-NLS-1$
45 static final String TYPE_MEDIA_RULE = _PREFIX + "MediaRule"; //$NON-NLS-1$
46 static final String TYPE_PAGE_RULE = _PREFIX + "PageRule"; //$NON-NLS-1$
47 static final String TYPE_FONT_FACE_RULE = _PREFIX + "FontFaceRule"; //$NON-NLS-1$
48 static final String TYPE_CATEGORY = _PREFIX + "Category"; //$NON-NLS-1$
49 static final String TYPE_META_MODEL = _PREFIX + "MetaModel"; //$NON-NLS-1$
50 static final String TYPE_SELECTOR = _PREFIX + "Selector"; //$NON-NLS-1$
51}