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