01: // Copyright 2006 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.tapestry.dom;
16:
17: /**
18: * Part of a {@link MarkupModel}, used to define how end tags are handled when the {@link Document}
19: * in rendered out as a text stream.
20: */
21: public enum EndTagStyle {
22:
23: /** Omit the end tag. Examples for HTML include the input, br and img elements. */
24: OMIT,
25: /** Require an end tag always. This is the default for most elements in HTML. */
26: REQUIRE,
27: /**
28: * Require an end tag, but abbreviate it if the element has no children. This is the only value
29: * used in XML documents.
30: */
31: ABBREVIATE
32: }
|