本文整理了Java中org.apache.xpath.objects.XObject.getTypeString()
方法的一些代码示例,展示了XObject.getTypeString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XObject.getTypeString()
方法的具体详情如下:
包路径:org.apache.xpath.objects.XObject
类名称:XObject
方法名:getTypeString
[英]Given a request type, return the equivalent string. For diagnostic purposes.
[中]给定请求类型,返回等效字符串。用于诊断目的。
代码示例来源:origin: xalan/xalan
private static String errArgs(Object[] xsltArgs, int startingArg)
{
StringBuffer returnArgs = new StringBuffer();
for (int i = startingArg; i < xsltArgs.length; i++)
{
if (i != startingArg)
returnArgs.append(", ");
if (xsltArgs[i] instanceof XObject)
returnArgs.append(((XObject) xsltArgs[i]).getTypeString());
else
returnArgs.append(xsltArgs[i].getClass().getName());
}
return returnArgs.toString();
}
代码示例来源:origin: robovm/robovm
/**
* Cast result object to a number. Always issues an error.
*
* @return 0.0
*
* @throws javax.xml.transform.TransformerException
*/
public double num() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number");
return 0.0;
}
代码示例来源:origin: robovm/robovm
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return null
*
* @throws javax.xml.transform.TransformerException
*/
public DTMIterator iter() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!");
return null;
}
代码示例来源:origin: robovm/robovm
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return null
*
* @throws javax.xml.transform.TransformerException
*/
public NodeList nodelist() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!");
return null;
}
代码示例来源:origin: robovm/robovm
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return null
*
* @throws javax.xml.transform.TransformerException
*/
public NodeIterator nodeset() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!");
return null;
}
代码示例来源:origin: robovm/robovm
/**
* Cast result object to a boolean. Always issues an error.
*
* @return false
*
* @throws javax.xml.transform.TransformerException
*/
public boolean bool() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number");
return false;
}
代码示例来源:origin: robovm/robovm
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return The object as a NodeSetDTM.
*
* @throws javax.xml.transform.TransformerException
*/
public NodeSetDTM mutableNodeset()
throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_MUTABLENODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeSetDTM!");
return (NodeSetDTM) m_obj;
}
代码示例来源:origin: xalan/xalan
/**
* Cast result object to a number. Always issues an error.
*
* @return 0.0
*
* @throws javax.xml.transform.TransformerException
*/
public double num() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number");
return 0.0;
}
代码示例来源:origin: xalan/xalan
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return null
*
* @throws javax.xml.transform.TransformerException
*/
public NodeIterator nodeset() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!");
return null;
}
代码示例来源:origin: xalan/xalan
/**
* Cast result object to a boolean. Always issues an error.
*
* @return false
*
* @throws javax.xml.transform.TransformerException
*/
public boolean bool() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number");
return false;
}
代码示例来源:origin: xalan/xalan
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return null
*
* @throws javax.xml.transform.TransformerException
*/
public DTMIterator iter() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!");
return null;
}
代码示例来源:origin: xalan/xalan
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return null
*
* @throws javax.xml.transform.TransformerException
*/
public NodeList nodelist() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!");
return null;
}
代码示例来源:origin: xalan/xalan
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return The object as a NodeSetDTM.
*
* @throws javax.xml.transform.TransformerException
*/
public NodeSetDTM mutableNodeset()
throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_MUTABLENODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeSetDTM!");
return (NodeSetDTM) m_obj;
}
代码示例来源:origin: robovm/robovm
new Object[]{ getTypeString(),
代码示例来源:origin: xalan/xalan
new Object[]{ getTypeString(),
代码示例来源:origin: xalan/xalan
/**
* The value of this string result.
* @exception XPathException
* TYPE_ERR: raised if <code>resultType</code> is not
* <code>STRING_TYPE</code>.
*
* @see org.w3c.dom.xpath.XPathResult#getStringValue()
*/
public String getStringValue() throws XPathException {
if (getResultType() != STRING_TYPE) {
String fmsg = XPATHMessages.createXPATHMessage(XPATHErrorResources.ER_CANT_CONVERT_TO_STRING, new Object[] {m_xpath.getPatternString(), m_resultObj.getTypeString()});
throw new XPathException(XPathException.TYPE_ERR,fmsg);
// "The XPathResult of XPath expression {0} has an XPathResultType of {1} which cannot be converted to a string."
} else {
try {
return m_resultObj.str();
} catch (Exception e) {
// Type check above should prevent this exception from occurring.
throw new XPathException(XPathException.TYPE_ERR,e.getMessage());
}
}
}
代码示例来源:origin: MobiVM/robovm
/**
* Cast result object to a boolean. Always issues an error.
*
* @return false
*
* @throws javax.xml.transform.TransformerException
*/
public boolean bool() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number");
return false;
}
代码示例来源:origin: MobiVM/robovm
/**
* Cast result object to a number. Always issues an error.
*
* @return 0.0
*
* @throws javax.xml.transform.TransformerException
*/
public double num() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number");
return 0.0;
}
代码示例来源:origin: ibinti/bugvm
/**
* Cast result object to a boolean. Always issues an error.
*
* @return false
*
* @throws javax.xml.transform.TransformerException
*/
public boolean bool() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a number");
return false;
}
代码示例来源:origin: ibinti/bugvm
/**
* Cast result object to a nodelist. Always issues an error.
*
* @return null
*
* @throws javax.xml.transform.TransformerException
*/
public DTMIterator iter() throws javax.xml.transform.TransformerException
{
error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST,
new Object[]{ getTypeString() }); //"Can not convert "+getTypeString()+" to a NodeList!");
return null;
}
内容来源于网络,如有侵权,请联系作者删除!