public class SafeTagList extends java.lang.Object
| Constructor | Description |
|---|---|
SafeTagList() |
Creates a new list.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(java.lang.String tag) |
Adds a tag with both the 'open' and 'close' flags set to
true. |
void |
add(java.lang.String tag,
boolean open,
boolean closed) |
Adds a tag.
|
boolean |
isSafeForClose(java.lang.String tag) |
Returns
true if it is safe to start a new
line immediately after a close tag. |
boolean |
isSafeForOpen(java.lang.String tag) |
Returns
true if it is safe to start a new line
immediately after an open tag. |
public SafeTagList()
public void add(java.lang.String tag)
true.tag - the tag name.public void add(java.lang.String tag, boolean open, boolean closed)
tag - the tag name.open - the 'open' flag.closed - the 'close' flag.public boolean isSafeForOpen(java.lang.String tag)
true if it is safe to start a new line
immediately after an open tag.tag - the tag name.public boolean isSafeForClose(java.lang.String tag)
true if it is safe to start a new
line immediately after a close tag.tag - the tag name.