org.seasar.robot.transformer.impl
クラス XpathTransformer

java.lang.Object
  上位を拡張 org.seasar.robot.transformer.impl.AbstractTransformer
      上位を拡張 org.seasar.robot.transformer.impl.HtmlTransformer
          上位を拡張 org.seasar.robot.transformer.impl.XpathTransformer
すべての実装されたインタフェース:
Transformer

public class XpathTransformer
extends HtmlTransformer

XpathTransformer stores WEB data as XML content.

作成者:
shinsuke

入れ子のクラスの概要
protected static class XpathTransformer.DocHandler
           
 
フィールドの概要
protected  String charsetName
           
protected  Class<?> dataClass
          Class type returned by getData() method.
protected  Map<String,String> fieldRuleMap
           
protected  boolean trimSpace
          a flag to trim a space characters.
 
クラス org.seasar.robot.transformer.impl.HtmlTransformer から継承されたフィールド
childUrlRuleMap, defaultEncoding, featureMap, invalidUrlPattern, preloadSizeForCharset, propertyMap
 
クラス org.seasar.robot.transformer.impl.AbstractTransformer から継承されたフィールド
name
 
コンストラクタの概要
XpathTransformer()
           
 
メソッドの概要
 void addFieldRule(String name, String xpath)
           
protected  String escapeXml(String value)
           
protected  String getAdditionalData(ResponseData responseData, Document document)
           
 String getCharsetName()
           
 Object getData(AccessResultData accessResultData)
          Returns data as XML content of String.
 Class<?> getDataClass()
           
protected  Map<String,Object> getDataMap(AccessResultData accessResultData)
           
 Map<String,String> getFieldRuleMap()
           
protected  String getResultDataBody(String name, List<String> values)
           
protected  String getResultDataBody(String name, String value)
           
protected  String getResultDataFooter()
           
protected  String getResultDataHeader()
           
 boolean isTrimSpace()
           
 void setCharsetName(String charsetName)
           
 void setDataClass(Class<?> dataClass)
           
 void setFieldRuleMap(Map<String,String> fieldRuleMap)
           
 void setTrimSpace(boolean trimSpace)
           
protected  void storeData(ResponseData responseData, ResultData resultData)
           
protected  String trimSpace(String value)
           
 
クラス org.seasar.robot.transformer.impl.HtmlTransformer から継承されたメソッド
addChildUrlFromTagAttribute, addChildUrlRule, addFeature, addProperty, convertChildUrlList, createResponseBodyFile, encodeUrl, getBaseHref, getChildUrlRuleMap, getDefaultEncoding, getDomParser, getDuplicateUrl, getFeatureMap, getInvalidUrlPattern, getPreloadSizeForCharset, getPropertyMap, getUrlFromTagAttribute, getXPathAPI, isHtml, isSupportedCharset, isValidPath, loadCharset, normalizeUrl, parseCharset, setChildUrlRuleMap, setDefaultEncoding, setFeatureMap, setInvalidUrlPattern, setPreloadSizeForCharset, setPropertyMap, storeChildUrls, transform, updateCharset
 
クラス org.seasar.robot.transformer.impl.AbstractTransformer から継承されたメソッド
getName, setName
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

fieldRuleMap

protected Map<String,String> fieldRuleMap

trimSpace

protected boolean trimSpace
a flag to trim a space characters.


charsetName

protected String charsetName

dataClass

protected Class<?> dataClass
Class type returned by getData() method. The default is null(XML content of String).

コンストラクタの詳細

XpathTransformer

public XpathTransformer()
メソッドの詳細

storeData

protected void storeData(ResponseData responseData,
                         ResultData resultData)
オーバーライド:
クラス HtmlTransformer 内の storeData

getResultDataHeader

protected String getResultDataHeader()

getResultDataBody

protected String getResultDataBody(String name,
                                   String value)

getResultDataBody

protected String getResultDataBody(String name,
                                   List<String> values)

getAdditionalData

protected String getAdditionalData(ResponseData responseData,
                                   Document document)

getResultDataFooter

protected String getResultDataFooter()

escapeXml

protected String escapeXml(String value)

trimSpace

protected String trimSpace(String value)

addFieldRule

public void addFieldRule(String name,
                         String xpath)

getData

public Object getData(AccessResultData accessResultData)
Returns data as XML content of String.

定義:
インタフェース Transformer 内の getData
オーバーライド:
クラス HtmlTransformer 内の getData
戻り値:
XML content of String.

getDataMap

protected Map<String,Object> getDataMap(AccessResultData accessResultData)

getFieldRuleMap

public Map<String,String> getFieldRuleMap()

setFieldRuleMap

public void setFieldRuleMap(Map<String,String> fieldRuleMap)

isTrimSpace

public boolean isTrimSpace()

setTrimSpace

public void setTrimSpace(boolean trimSpace)

getCharsetName

public String getCharsetName()

setCharsetName

public void setCharsetName(String charsetName)

getDataClass

public Class<?> getDataClass()

setDataClass

public void setDataClass(Class<?> dataClass)


Copyright © 2009-2010 The Seasar Foundation. All Rights Reserved.