Skip to main content
summaryrefslogtreecommitdiffstats
blob: 7fe71f3cb3a81c3b9f7b7758a090eeb742141fc3 (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
/*******************************************************************************
 * Copyright (c) 2004 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.contentmodel;



import org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration;

/**
 * This interface is intended to be a public interface which has
 * interfaces defined in both of {@link <code>CMElementDeclaration</code>}
 * and {@link <code>HTMLCMNode</code>}.<br>
 * In addition to this, some interfaces are added to this interface,
 * those are specially to HTML elements.<br>
 */
public interface HTMLElementDeclaration extends CMElementDeclaration {

	/** Tag ommission; Not ommisible. */
	int OMIT_NONE = 0;
	/** Tag ommission; Both tags are ommisible. */
	int OMIT_BOTH = 1;
	/** Tag ommission; The end tag is ommisible. */
	int OMIT_END = 2;
	/** Tag ommission; The end tag is ommitted when created. */
	int OMIT_END_DEFAULT = 3;
	/** Tag ommission; The end tag must be omitted. */
	int OMIT_END_MUST = 4;
	/** Line Break; No break. */
	int BREAK_NONE = 10;
	/** Line Break; Break after the start tag. */
	int BREAK_AFTER_START = 11;
	/** Line Break; Break both before the start tagn and after the end tag. */
	int BREAK_BEFORE_START_AND_AFTER_END = 12;
	/* Layout */
	/** initial value; the value should never returns to client programs. */
	int LAYOUT_NONE = 100;
	int LAYOUT_BLOCK = 101;
	int LAYOUT_WRAP = 102;
	/** No wrap object; like IMG, APPLET,... */
	int LAYOUT_OBJECT = 103;
	/** BR */
	int LAYOUT_BREAK = 104;
	/** Hidden object; like HTML or HEAD */
	int LAYOUT_HIDDEN = 105;
	/* Correction */
	/** Correct; No correct. */
	int CORRECT_NONE = 1000;
	/** Correct; Meaningless when the content is empty. */
	int CORRECT_EMPTY = 1001;
	/** Correct; Meaningless when no attribut is set. */
	int CORRECT_NEUTRAL = 1002;
	/** Correct; Meaningless when same element is nested. */
	int CORRECT_DUPLICATED = 1003;
	/** Format; HTML */
	int FORMAT_HTML = 10000;
	/** Format; SSI */
	int FORMAT_SSI = 10001;
	/** Format; JSP script */
	int FORMAT_JSP_SCRIPT = 10002;
	/** Format; JSP directive */
	int FORMAT_JSP_DIRECTIVE = 10003;
	/** Format; XML */
	int FORMAT_XML = 10004;
	/** Format; MW */
	int FORMAT_MW = 10005;

	/**
	 * A short hand method to get an attribute declaration of a HTML element.
	 * @param attrName java.lang.String
	 */
	HTMLAttributeDeclaration getAttributeDeclaration(String attrName);
}

Back to the top