Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/contentmodel/HTMLElementDeclaration.java')
-rw-r--r--bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/contentmodel/HTMLElementDeclaration.java81
1 files changed, 81 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/contentmodel/HTMLElementDeclaration.java b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/contentmodel/HTMLElementDeclaration.java
new file mode 100644
index 0000000000..99e673578b
--- /dev/null
+++ b/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/contentmodel/HTMLElementDeclaration.java
@@ -0,0 +1,81 @@
+/*******************************************************************************
+ * 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.contentmodel;
+
+
+
+import org.eclipse.wst.common.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.
+ * @return com.ibm.sed.contentmodel.html.HTMLAttributeDeclaration
+ * @param attrName java.lang.String
+ */
+ HTMLAttributeDeclaration getAttributeDeclaration(String attrName);
+} \ No newline at end of file

Back to the top