|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimple.ml.ParserConstants
public final class ParserConstants
Created: Oct 23, 2010
| Field Summary | |
|---|---|
private java.util.HashSet<CIString> |
OPTIONALEND
|
private MVHashtable<CIString,CIString> |
OPTIONALENDEND
|
private java.util.HashSet<CIString> |
PCDATA
|
private java.util.HashSet<CIString> |
SELFCLOSER
|
private static CIString |
TAGA
|
| Constructor Summary | |
|---|---|
ParserConstants()
|
|
| Method Summary | |
|---|---|
void |
addOptionalEnder(java.lang.String tag)
Adds this tag as a tag that may or may not have a closing tag. |
void |
addOptionalEnderEnd(CIString otag,
CIString etag)
Adds this tag as a tag that will close the optional end tag when it opens. |
void |
addOptionalEnderEnd(java.lang.String otag,
java.lang.String etag)
Adds this tag as a tag that will close the optional end tag when it opens. |
void |
addPcdataTag(java.lang.String tag)
Sets this tag as only containing PCDATA. |
void |
addSelfCloser(java.lang.String tag)
Defines this tag as never having content or sub-tags. |
boolean |
isOptionalEnder(CIString tag)
Checks to see if the end tag is optional for this tag. |
boolean |
isOptionalEnder(java.lang.String tag)
Checks to see if the end tag is optional for this tag. |
boolean |
isOptionalEnderEnd(CIString otag,
CIString etag)
Checks to see if etag serves as an ending tag for otag. |
boolean |
isPcdataTag(CIString tag)
Checks to see if the tag contains PCDATA. |
boolean |
isPcdataTag(java.lang.String tag)
Checks to see if the tag contains PCDATA. |
boolean |
isSelfCloser(CIString tag)
Checks to see if tag is a self-closer. |
boolean |
isSelfCloser(java.lang.String tag)
Checks to see if tag is a self-closer. |
void |
load(java.io.File file)
Loads the configuration file. |
void |
load(java.io.InputStream in)
Loads the configuration file. |
void |
load(java.io.Reader in)
Loads the configuration file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.HashSet<CIString> PCDATA
private final java.util.HashSet<CIString> SELFCLOSER
private final java.util.HashSet<CIString> OPTIONALEND
private final MVHashtable<CIString,CIString> OPTIONALENDEND
private static final CIString TAGA
| Constructor Detail |
|---|
public ParserConstants()
| Method Detail |
|---|
public void load(java.io.File file)
throws java.io.IOException,
java.text.ParseException
file -
java.io.IOException
java.text.ParseException
public void load(java.io.InputStream in)
throws java.io.IOException,
java.text.ParseException
in -
java.io.IOException
java.text.ParseException
public void load(java.io.Reader in)
throws java.io.IOException,
java.text.ParseException
in -
java.io.IOException
java.text.ParseExceptionpublic void addOptionalEnder(java.lang.String tag)
tag - the tag name
public void addOptionalEnderEnd(CIString otag,
CIString etag)
otag - The optional tag nameetag - The tag name that ends this tag
public void addOptionalEnderEnd(java.lang.String otag,
java.lang.String etag)
otag - The optional tag nameetag - The tag name that ends this tagpublic void addSelfCloser(java.lang.String tag)
tag - The tag namepublic void addPcdataTag(java.lang.String tag)
tag - public boolean isOptionalEnder(java.lang.String tag)
tag - the tag name
public boolean isOptionalEnder(CIString tag)
tag - the tag name
public boolean isOptionalEnderEnd(CIString otag,
CIString etag)
otag - The optional tag nameetag - The ending tag name
public boolean isPcdataTag(java.lang.String tag)
tag - the tag name
public boolean isPcdataTag(CIString tag)
tag - the tag name
public boolean isSelfCloser(java.lang.String tag)
tag - the tag name
public boolean isSelfCloser(CIString tag)
tag - the tag name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||