本文整理汇总了Java中com.pervasive.datarush.tokens.scalar.StringValued类的典型用法代码示例。如果您正苦于以下问题:Java StringValued类的具体用法?Java StringValued怎么用?Java StringValued使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StringValued类属于com.pervasive.datarush.tokens.scalar包,在下文中一共展示了StringValued类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValueAt
import com.pervasive.datarush.tokens.scalar.StringValued; //导入依赖的package包/类
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
if (columnIndex == 0) {
return new Long(rowIndex + 1);
}
ScalarSettable cell = data.getTokenSetter(rowIndex).getField(columnIndex-1);
if (((TokenValued)cell).isNull()) {
return "?";
}
if (cell instanceof StringValued) {
return ((StringValued)cell).asString();
} else if (cell instanceof IntValued) {
return String.valueOf(((IntValued)cell).asInt());
}
return "?";
}
示例2: XPath
import com.pervasive.datarush.tokens.scalar.StringValued; //导入依赖的package包/类
public XPath(StringSettable result, StringValued expression, StringValued value) {
this.result = result;
this.expression = expression;
this.value = value;
Thread t = Thread.currentThread();
ClassLoader cl = t.getContextClassLoader();
t.setContextClassLoader(getClass().getClassLoader());
try {
xpathfactory = XPathFactory.newInstance();
documentBuilderFactory = DocumentBuilderFactory.newInstance();
} finally {
t.setContextClassLoader(cl);
}
}
示例3: NewFunction
import com.pervasive.datarush.tokens.scalar.StringValued; //导入依赖的package包/类
public NewFunction(StringSettable result, StringValued arg1, StringValued arg2) {
this.result = result;
this.arg1 = arg1;
this.arg2 = arg2;
}
示例4: JSONPath
import com.pervasive.datarush.tokens.scalar.StringValued; //导入依赖的package包/类
public JSONPath(StringSettable result, StringValued expression, StringValued value) {
this.result = result;
this.expression = expression;
this.value = value;
}
示例5: XMLEscape
import com.pervasive.datarush.tokens.scalar.StringValued; //导入依赖的package包/类
public XMLEscape(StringSettable result, StringValued expression) {
this.result = result;
this.expression = expression;
}