本文整理汇总了Java中net.sf.saxon.value.SequenceType.makeSequenceType方法的典型用法代码示例。如果您正苦于以下问题:Java SequenceType.makeSequenceType方法的具体用法?Java SequenceType.makeSequenceType怎么用?Java SequenceType.makeSequenceType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.saxon.value.SequenceType
的用法示例。
在下文中一共展示了SequenceType.makeSequenceType方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[] {
SequenceType.makeSequenceType(new JavaExternalObjectType(Connection.class), StaticProperty.ALLOWS_ONE),
SequenceType.SINGLE_STRING
};
}
示例2: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[] {
SequenceType.SINGLE_STRING,
SequenceType.makeSequenceType(AnyItemType.getInstance(), StaticProperty.ALLOWS_ZERO_OR_MORE),
SequenceType.OPTIONAL_NODE };
}
示例3: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
// 1/ element(http:request)
final int one = StaticProperty.EXACTLY_ONE;
final int kind = Type.ELEMENT;
final String uri = HttpConstants.HTTP_CLIENT_NS_URI;
final NamePool pool = myConfig.getNamePool();
final ItemType itype = new NameTest(kind, uri, "request", pool);
SequenceType stype1 = SequenceType.makeSequenceType(itype, one); // 2/ xs:string?
SequenceType stype2 = SequenceType.OPTIONAL_STRING; // 3/ item()*
SequenceType stype3 = SequenceType.ANY_SEQUENCE; // 1/, 2/ and 3/
return new SequenceType[] { stype1, stype2, stype3 };
}
示例4: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[] {
SequenceType.SINGLE_STRING,
SequenceType.makeSequenceType(BuiltInAtomicType.STRING, StaticProperty.ALLOWS_ZERO_OR_MORE),
SequenceType.SINGLE_STRING };
}
示例5: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[] {
SequenceType.SINGLE_STRING,
SequenceType.makeSequenceType(AnyItemType.getInstance(), StaticProperty.ALLOWS_ZERO_OR_MORE),
SequenceType.SINGLE_NODE };
}
示例6: getResultType
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType getResultType(SequenceType[] suppliedArgumentTypes) {
int resultCardinality = 1;
return SequenceType.makeSequenceType(SequenceType.SINGLE_STRING.getPrimaryType(), resultCardinality);
}
示例7: getResultType
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType getResultType(SequenceType[] suppliedArgumentTypes) {
int resultCardinality = 1;
return SequenceType.makeSequenceType(SequenceType.SINGLE_INTEGER.getPrimaryType(), resultCardinality);
}
示例8: getResultType
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType getResultType(SequenceType[] suppliedArgumentTypes) {
return SequenceType.makeSequenceType(new JavaExternalObjectType(Connection.class), StaticProperty.ALLOWS_ONE);
}
示例9: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[]{SequenceType.makeSequenceType(AnyItemType.getInstance(), StaticProperty.ALLOWS_ZERO_OR_ONE)};
}
示例10: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[] {
SequenceType.makeSequenceType(new JavaExternalObjectType(AutoCloseable.class), StaticProperty.ALLOWS_ONE)
};
}
示例11: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[] { SequenceType.SINGLE_STRING,
SequenceType.makeSequenceType(BuiltInAtomicType.DATE_TIME, StaticProperty.ALLOWS_ONE) };
}
示例12: getArgumentTypes
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType[] getArgumentTypes() {
return new SequenceType[] {
SequenceType.SINGLE_STRING,
SequenceType.makeSequenceType(BuiltInAtomicType.BASE64_BINARY, StaticProperty.EXACTLY_ONE) };
}
示例13: getResultType
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType getResultType(SequenceType[] suppliedArgumentTypes) {
return SequenceType.makeSequenceType(BuiltInAtomicType.STRING, StaticProperty.ALLOWS_ZERO_OR_MORE);
}
示例14: getResultType
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType getResultType(SequenceType[] suppliedArgumentTypes) {
return SequenceType.makeSequenceType(NodeKindTest.DOCUMENT, StaticProperty.EXACTLY_ONE);
}
示例15: getResultType
import net.sf.saxon.value.SequenceType; //导入方法依赖的package包/类
@Override
public SequenceType getResultType(SequenceType[] suppliedArgumentTypes) {
return SequenceType.makeSequenceType(BuiltInAtomicType.DATE_TIME, StaticProperty.EXACTLY_ONE);
}