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

java.lang.Object
  上位を拡張 org.util.xml.parse.policy.DefaultParserPolicy
      上位を拡張 org.util.xml.parse.policy.XMLParserPolicy
すべての実装されたインタフェース:
ParserPolicy

public class XMLParserPolicy
extends DefaultParserPolicy

作成者:
masaru

コンストラクタの概要
XMLParserPolicy()
           
 
メソッドの概要
 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.
 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.
 
クラス org.util.xml.parse.policy.DefaultParserPolicy から継承されたメソッド
getInnerPolicy, startElement, throwExceptionIfDocumentHasError
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

XMLParserPolicy

public XMLParserPolicy()
メソッドの詳細

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
オーバーライド:
クラス DefaultParserPolicy 内の selectEncoding

checkEndTag

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

定義:
インタフェース ParserPolicy 内の checkEndTag
オーバーライド:
クラス DefaultParserPolicy 内の checkEndTag

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
オーバーライド:
クラス DefaultParserPolicy 内の forceEmptyTag

allowElement

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

定義:
インタフェース ParserPolicy 内の allowElement
オーバーライド:
クラス DefaultParserPolicy 内の allowElement