public static class XMLUtility.XMLTextRetriever<C extends XMLUtility.XMLRetrCtxt> extends Object implements XMLUtility.XMLRetriever<C>, Serializable
Constructor and Description |
---|
XMLTextRetriever() |
Modifier and Type | Method and Description |
---|---|
int |
getAsInteger(int dv)
保持テキストをintで取得.
|
long |
getAsLong(long dv)
保持テキストをlongで取得.
|
double |
getAsReal(double dv)
保持テキストをdoubleで取得.
|
String |
getAsText(String dv)
保持テキストをStringで取得.
|
String |
getText()
保持テキストを得る..
|
boolean |
hasValidText()
保持テキストの検査.
|
void |
postProcess(C ctx)
XMLからテキストを取得後に呼び出される.
ただし,最上位では呼び出されない.
|
void |
preProcess(C ctx)
XMLからテキストを取得前に呼び出される.
ただし,最上位では呼び出されない.
|
boolean |
retrieve(XMLUtility.XMLNode node,
C ctx)
XMLからテキストを取得する.
|
String text
public boolean retrieve(XMLUtility.XMLNode node, C ctx)
retrieve
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
node
- 対象ノード.ctx
- parser context.public void preProcess(C ctx)
preProcess
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
ctx
- parser context.public void postProcess(C ctx)
postProcess
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
ctx
- parser context.public String getText()
getText
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
public boolean hasValidText()
hasValidText
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
public String getAsText(String dv)
getAsText
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
dv
- デフォルト値.public double getAsReal(double dv)
getAsReal
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
dv
- デフォルト値.public long getAsLong(long dv)
getAsLong
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
dv
- デフォルト値.public int getAsInteger(int dv)
getAsInteger
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
dv
- デフォルト値.EDB Working Group at Tue Jun 10 17:08:59 JST 2025