Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 1d7a75395203181651701ea3a9a6a0437cf56d00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*******************************************************************************
 * Copyright (c) 2004, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.wst.html.core.internal.provisional;


/**
 * HTMLCMProperties defines all property names and pre-defined values in HTML CM.
 * All of those properties can be retreived from element declarations of HTML CM
 * via CMNode#getProperty(String propName).
 */
public interface HTMLCMProperties {

	/**
	 * "shouldIgnoreCase" returns java.lang.Boolean object.
	 */
	public static final String SHOULD_IGNORE_CASE = "shouldIgnoreCase";//$NON-NLS-1$
	/**
	 * "shouldKeepSpace" returns java.lang.Boolean object.
	 */
	public static final String SHOULD_KEEP_SPACE = "shouldKeepSpace";//$NON-NLS-1$
	/**
	 * "indentChildSource" returns java.lang.Boolean object.
	 */
	public static final String SHOULD_INDENT_CHILD_SOURCE = "shouldIndentChildSource";//$NON-NLS-1$
	/**
	 * "terminators" returns java.util.Iterator (an array of String objects).
	 */
	public static final String TERMINATORS = "terminators";//$NON-NLS-1$
	/**
	 * "contentHint" returns CMElementDeclaration instnace.
	 */
	public static final String CONTENT_HINT = "contentHint";//$NON-NLS-1$
	/**
	 * "prohibitedAncestors" returns org.eclipse.wst.xml.core.internal.contentmodel.CMNamedNodeMap.
	 */
	public static final String PROHIBITED_ANCESTORS = "prohibitedAncestors";//$NON-NLS-1$
	/**
	 * "isJSP" returns java.lang.Boolean object.
	 */
	public static final String IS_JSP = "isJSP";//$NON-NLS-1$
	/**
	 * "isXHTML" returns java.lang.Boolean object.
	 */
	public static final String IS_XHTML = "isXHTML";//$NON-NLS-1$
	/**
	 * "isSSI" returns java.lang.Boolean object.
	 */
	public static final String IS_SSI = "isSSI";//$NON-NLS-1$
	/**
	 * "lineBreakHint" returns String (one of pre-defined values in Values).
	 */
	public static final String LINE_BREAK_HINT = "lineBreakHint";//$NON-NLS-1$
	/**
	 * "layoutType" returns String (one of pre-defined values in Values).
	 */
	public static final String LAYOUT_TYPE = "layoutType";//$NON-NLS-1$
	/**
	 * "tagInfo" returns String (documentation for this element).
	 */
	public static final String TAGINFO = "tagInfo";//$NON-NLS-1$
	/**
	 * "omitType" returns String (one of pre-defined values in Values).
	 */
	public static final String OMIT_TYPE = "omitType";//$NON-NLS-1$
	/**
	 * "inclusion" returns org.eclipse.wst.xml.core.internal.contentmodel.CMContent.
	 */
	public static final String INCLUSION = "inclusion";//$NON-NLS-1$
	/**
	 * "isScriptable" returns java.lang.Boolean object.
	 */
	public static final String IS_SCRIPTABLE = "isScriptable"; //$NON-NLS-1$

	public static interface Values {
		/*
		 * for LINE_BREAK_HINT = "lineBreakHint".
		 */
		public static final String BREAK_NONE = "breakNone";//$NON-NLS-1$
		public static final String BREAK_AFTER_START = "breakAfterStart";//$NON-NLS-1$
		public static final String BREAK_BEFORE_START_AND_AFTER_END = "breakBeforeStartAndAfterEnd";//$NON-NLS-1$
		/*
		 * for LAYOUT_TYPE = "layoutType"
		 */
		public static final String LAYOUT_BLOCK = "layoutBlock";//$NON-NLS-1$
		/** BR */
		public static final String LAYOUT_BREAK = "layoutBreak";//$NON-NLS-1$
		/** Hidden object; like HTML or HEAD */
		public static final String LAYOUT_HIDDEN = "layoutHidden";//$NON-NLS-1$
		public static final String LAYOUT_NONE = "layoutNone";//$NON-NLS-1$
		/** No wrap object; like IMG, APPLET,... */
		public static final String LAYOUT_OBJECT = "layoutObject";//$NON-NLS-1$
		public static final String LAYOUT_WRAP = "layoutWrap";//$NON-NLS-1$
		/*
		 * for OMIT_TYPE = "omitType"
		 */
		/** Not ommisible. */
		public static final String OMIT_NONE = "omitNone";//$NON-NLS-1$
		/** Both tags are ommisible. */
		public static final String OMIT_BOTH = "omitBoth";//$NON-NLS-1$
		/** The end tag is ommisible. */
		public static final String OMIT_END = "omitEnd";//$NON-NLS-1$
		/** The end tag is ommitted when created. */
		public static final String OMIT_END_DEFAULT = "omitEndDefault";//$NON-NLS-1$
		/** The end tag must be omitted. */
		public static final String OMIT_END_MUST = "omitEndMust";//$NON-NLS-1$

	}
}

Back to the top