public enum ScopeType extends Enum<ScopeType>
| Enum Constant and Description |
|---|
PAGE |
WT_BLOCK |
WT_ELEMENT_BODY |
WT_INLINE |
WT_TABLE |
WT_TABLE_ITEM |
XML_BLOCK |
XML_INLINE |
XML_ITEM |
XML_PARAGRAPH |
XML_TABLE |
XML_TABLE_ITEM |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dropIfEmpty()
When closing an element which has no content should we drop it entirely
instead?
|
boolean |
dropIfOnlyWhitespace()
When closing an element which contains only whitespace should we drop it
entirely instead?
|
boolean |
isBlockScope() |
boolean |
isClosableBeforeBlock()
Whether an element can be forcibly closed in front of an opening tag that
returns true for isCloseInline() (inline elements, paragraph).
|
boolean |
isCloseInline()
Whether an opening tag closes preceding scopes that return true for
isClosableBeforeBlock() (table, div, p, ...).
|
boolean |
isCloseSamePred()
If an opening tag automatically closes a preceding tag with the same name
(li, td, ...).
|
boolean |
isContinueClosed()
Some elements (tables) close inline elements in front of their opening
tag, DON'T propagate their effects into the table but continue the closed
elements AFTER the closing element of the table.
|
boolean |
isInlineScope() |
boolean |
isPropagateOut()
If elements closed in front of the closing tag of scome scope will be
continued after that closing tag (inline, block, NOT table).
|
boolean |
isReopen()
If an element can be re-opened after it was forcibly closed (inline
elements).
|
boolean |
isReopenClosedInline()
Whether scopes that have been closed in front of an opening tag
(isCloseInline) will be reopened inside the scope of the opening tag
(div, p, NOT table).
|
boolean |
isTableScope() |
boolean |
isWikitextScope() |
static ScopeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScopeType WT_ELEMENT_BODY
public static final ScopeType PAGE
public static final ScopeType WT_INLINE
public static final ScopeType WT_BLOCK
public static final ScopeType WT_TABLE
public static final ScopeType WT_TABLE_ITEM
public static final ScopeType XML_INLINE
public static final ScopeType XML_BLOCK
public static final ScopeType XML_PARAGRAPH
public static final ScopeType XML_ITEM
public static final ScopeType XML_TABLE
public static final ScopeType XML_TABLE_ITEM
public static ScopeType[] values()
for (ScopeType c : ScopeType.values()) System.out.println(c);
public static ScopeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean isWikitextScope()
public boolean isInlineScope()
public boolean isBlockScope()
public boolean isTableScope()
public boolean isCloseInline()
public boolean isReopenClosedInline()
public boolean isClosableBeforeBlock()
public boolean isReopen()
public boolean isCloseSamePred()
public boolean isContinueClosed()
public boolean isPropagateOut()
public boolean dropIfEmpty()
public boolean dropIfOnlyWhitespace()
Copyright © 2010-2012 University of Erlangen-Nürnberg - Open Source Research Group. All Rights Reserved.