org.util.xml.parse.policy
クラス DefaultParserPolicy

java.lang.Object
  上位を拡張 org.util.xml.parse.policy.DefaultParserPolicy
すべての実装されたインタフェース:
ParserPolicy
直系の既知のサブクラス:
HTMLParserPolicy, XMLParserPolicy

public class DefaultParserPolicy
extends java.lang.Object
implements ParserPolicy

作成者:
masaru

コンストラクタの概要
DefaultParserPolicy()
           
 
メソッドの概要
 Element allowElement(Element element)
          called when element is detected.
 boolean checkEndTag()
          if true, check open tag key and close tag key.
 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.
 Element startElement(Element element)
           
 boolean throwExceptionIfDocumentHasError()
          Throw exception if document has error.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DefaultParserPolicy

public DefaultParserPolicy()
メソッドの詳細

throwExceptionIfDocumentHasError

public boolean throwExceptionIfDocumentHasError()
インタフェース ParserPolicy の記述:
Throw exception if document has error. In case this method returns false, if there are errors, skip some texts and continue parsing.

定義:
インタフェース ParserPolicy 内の throwExceptionIfDocumentHasError

checkEndTag

public boolean checkEndTag()
インタフェース ParserPolicy の記述:
if true, check open tag key and close tag key.

定義:
インタフェース ParserPolicy 内の checkEndTag

selectEncoding

public java.lang.String selectEncoding(java.lang.String last_tag_key)
インタフェース ParserPolicy の記述:
if encoding cannot be detected by first line of document, this method will be called. while returned null, this method will be called every time that tag detected.

定義:
インタフェース ParserPolicy 内の selectEncoding

forceEmptyTag

public boolean forceEmptyTag(java.lang.String key)
インタフェース ParserPolicy の記述:
Basicly, all the tag must open and close. But if this method return true, opentag will be considerd to empty tag. So end tag will disregarded.

定義:
インタフェース ParserPolicy 内の forceEmptyTag

getInnerPolicy

public ParserPolicy getInnerPolicy(Element element)
インタフェース ParserPolicy の記述:
return handler that handle this element

定義:
インタフェース ParserPolicy 内の getInnerPolicy

allowElement

public Element allowElement(Element element)
インタフェース ParserPolicy の記述:
called when element is detected.

定義:
インタフェース ParserPolicy 内の allowElement

startElement

public Element startElement(Element element)