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
クラス 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 |
クラス 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.