|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.util.xml.parse.policy.DefaultParserPolicy
public class DefaultParserPolicy
| Constructor Summary | |
|---|---|
DefaultParserPolicy()
|
|
| Method Summary | |
|---|---|
Element |
allowElement(Element element)
called when element is detected. |
boolean |
checkEndTag()
if true, check open tag key and close tag key. |
boolean |
finished()
|
boolean |
forceEmptyTag(java.lang.String key)
Basicly, all the tag must open and close. |
ParserPolicy |
getInnerPolicy(Element element)
return handler that handle this element |
java.lang.String |
selectEncoding(java.lang.String last_tag_key)
if encoding cannot be detected by first line of document, this method will be called. |
boolean |
throwExceptionIfDocumentHasError()
Throw exception if document has error. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultParserPolicy()
| Method Detail |
|---|
public boolean throwExceptionIfDocumentHasError()
ParserPolicy
throwExceptionIfDocumentHasError in interface ParserPolicypublic boolean checkEndTag()
ParserPolicy
checkEndTag in interface ParserPolicypublic java.lang.String selectEncoding(java.lang.String last_tag_key)
ParserPolicy
selectEncoding in interface ParserPolicypublic boolean forceEmptyTag(java.lang.String key)
ParserPolicy
forceEmptyTag in interface ParserPolicypublic ParserPolicy getInnerPolicy(Element element)
ParserPolicy
getInnerPolicy in interface ParserPolicypublic Element allowElement(Element element)
ParserPolicy
allowElement in interface ParserPolicypublic boolean finished()
finished in interface ParserPolicy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||