public static class XMLUtility.XMLUniversalRetriever<C extends XMLUtility.XMLRetrCtxt> extends Object implements XMLUtility.XMLRetriever<C>, Serializable
Modifier and Type | Field and Description |
---|---|
(package private) XMLUtility.XMLRetrOp<C> |
postProcessor |
(package private) XMLUtility.XMLRetrOp<C> |
preProcessor |
protected XMLUtility.XMLTextRetriever<C> |
textRetriever |
Constructor and Description |
---|
XMLUniversalRetriever() |
protected XMLUtility.XMLTextRetriever<C extends XMLUtility.XMLRetrCtxt> textRetriever
XMLUtility.XMLRetrOp<C extends XMLUtility.XMLRetrCtxt> preProcessor
XMLUtility.XMLRetrOp<C extends XMLUtility.XMLRetrCtxt> postProcessor
public XMLUtility.XMLUniversalRetriever<C> addAttributeRetriever(String name, XMLUtility.XMLRetriever<C> retr)
public XMLUtility.XMLUniversalRetriever<C> addIgnoreAttributes(String... names)
public XMLUtility.XMLUniversalRetriever<C> addNodeRetriever(String name, XMLUtility.XMLRetriever<C> retr)
public XMLUtility.XMLUniversalRetriever<C> addIgnoreNodes(String... names)
public XMLUtility.XMLUniversalRetriever<C> setTextRetriever(XMLUtility.XMLTextRetriever<C> retr)
protected boolean retrieveAttribute(XMLUtility.XMLAttribute attr, C ctx)
protected boolean retrieveChild(XMLUtility.XMLElement node, C ctx)
public boolean retrieve(XMLUtility.XMLNode node, C ctx)
XMLUtility.XMLRetriever
retrieve
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
node
- 対象ノード.ctx
- parser context.public XMLUtility.XMLUniversalRetriever<C> setPreProcessor(XMLUtility.XMLRetrOp<C> op)
public void preProcess(C ctx)
preProcess
in interface XMLUtility.XMLRetriever<C extends XMLUtility.XMLRetrCtxt>
ctx
- parser context.public XMLUtility.XMLUniversalRetriever<C> setPostProcessor(XMLUtility.XMLRetrOp<C> op)
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