org.apache.xml.dtm.Axis类的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.apache.xml.dtm.Axis类的一些代码示例,展示了Axis类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Axis类的具体详情如下:
包路径:org.apache.xml.dtm.Axis
类名称:Axis

Axis介绍

[英]Specifies values related to XPath Axes.

The ancestor, descendant, following, preceding and self axes partition a document (ignoring attribute and namespace nodes): they do not overlap and together they contain all the nodes in the document.
[中]指定与XPath轴相关的值。
祖先轴、后代轴、跟随轴、前轴和自轴对文档进行分区(忽略属性和命名空间节点):它们不重叠,并且一起包含文档中的所有节点。

代码示例

代码示例来源:origin: xalan/xalan

/**
   * Returns a string representation of this step.
   */
  public String toString() {
  final StringBuffer buffer = new StringBuffer("step(\"");
  buffer.append(Axis.getNames(_axis)).append("\", ").append(_nodeType);
  if (_predicates != null) {
    final int n = _predicates.size();
    for (int i = 0; i < n; i++) {
    final Predicate pred = (Predicate)_predicates.elementAt(i);
    buffer.append(", ").append(pred.toString());
    }
  }
  return buffer.append(')').toString();
  }
}

代码示例来源:origin: robovm/robovm

m_traversers = new DTMAxisTraverser[Axis.getNamesLength()];
traverser = null;
throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.getNames(axis)}));

代码示例来源:origin: xalan/xalan

public boolean isReverse() {
  return Axis.isReverse(_axis);
}

代码示例来源:origin: xalan/xalan

public String toString() {
final StringBuffer buffer = new StringBuffer("stepPattern(\"");
buffer.append(Axis.getNames(_axis))
  .append("\", ")
  .append(_isEpsilon ? 
    ("epsilon{" + Integer.toString(_nodeType) + "}") :
     Integer.toString(_nodeType));
if (_predicates != null)
  buffer.append(", ").append(_predicates.toString());
return buffer.append(')').toString();
}

代码示例来源:origin: xalan/xalan

m_traversers = new DTMAxisTraverser[Axis.getNamesLength()];
traverser = null;
throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.getNames(axis)}));

代码示例来源:origin: xalan/xalan

public void setParser(Parser parser) {
super.setParser(parser);
// find all expressions in this Union
final Vector components = new Vector();
flatten(components);
final int size = components.size();
_components = (Expression[])components.toArray(new Expression[size]);
for (int i = 0; i < size; i++) {
  _components[i].setParser(parser);
  _components[i].setParent(this);
  if (_components[i] instanceof Step) {
  final Step step = (Step)_components[i];
  final int axis = step.getAxis();
  final int type = step.getNodeType();
  // Put attribute iterators first
  if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) {
    _components[i] = _components[0];
    _components[0] = step;
  }
  // Check if the union contains a reverse iterator
  if (Axis.isReverse(axis)) _reverse = true;
  }
}
// No need to reverse anything if another expression lies on top of this
if (getParent() instanceof Expression) _reverse = false;
}

代码示例来源:origin: robovm/robovm

buf.append("/");
buf.append(Axis.getNames(pat.m_axis));
buf.append("::");

代码示例来源:origin: MobiVM/robovm

m_traversers = new DTMAxisTraverser[Axis.getNamesLength()];
traverser = null;
throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.getNames(axis)}));

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

public boolean isReverse() {
  return Axis.isReverse(_axis);
}

代码示例来源:origin: xalan/xalan

buf.append("/");
buf.append(Axis.getNames(pat.m_axis));
buf.append("::");

代码示例来源:origin: ibinti/bugvm

m_traversers = new DTMAxisTraverser[Axis.getNamesLength()];
traverser = null;
throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.getNames(axis)}));

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

public boolean isReverse() {
  return Axis.isReverse(_axis);
}

代码示例来源:origin: xalan/xalan

default:
  BasisLibrary.runTimeError(BasisLibrary.AXIS_SUPPORT_ERR, 
      Axis.getNames(axis));

代码示例来源:origin: com.bugvm/bugvm-rt

m_traversers = new DTMAxisTraverser[Axis.getNamesLength()];
traverser = null;
throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.getNames(axis)}));

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

public boolean isReverse() {
  return Axis.isReverse(_axis);
}

代码示例来源:origin: robovm/robovm

throw new DTMException(XMLMessages.createXMLMessage(
 XMLErrorResources.ER_ITERATOR_AXIS_NOT_IMPLEMENTED, 
 new Object[]{Axis.getNames(axis)}));

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

m_traversers = new DTMAxisTraverser[Axis.getNamesLength()];
traverser = null;
throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.getNames(axis)}));

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

public void setParser(Parser parser) {
super.setParser(parser);
// find all expressions in this Union
final Vector components = new Vector();
flatten(components);
final int size = components.size();
_components = (Expression[])components.toArray(new Expression[size]);
for (int i = 0; i < size; i++) {
  _components[i].setParser(parser);
  _components[i].setParent(this);
  if (_components[i] instanceof Step) {
  final Step step = (Step)_components[i];
  final int axis = step.getAxis();
  final int type = step.getNodeType();
  // Put attribute iterators first
  if ((axis == Axis.ATTRIBUTE) || (type == DTM.ATTRIBUTE_NODE)) {
    _components[i] = _components[0];
    _components[0] = step;
  }
  // Check if the union contains a reverse iterator
  if (Axis.isReverse(axis)) _reverse = true;
  }
}
// No need to reverse anything if another expression lies on top of this
if (getParent() instanceof Expression) _reverse = false;
}

代码示例来源:origin: xalan/xalan

default:
  BasisLibrary.runTimeError(BasisLibrary.TYPED_AXIS_SUPPORT_ERR, 
      Axis.getNames(axis));

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

m_traversers = new DTMAxisTraverser[Axis.getNamesLength()];
traverser = null;
throw new DTMException(XMLMessages.createXMLMessage(XMLErrorResources.ER_AXIS_TRAVERSER_NOT_SUPPORTED, new Object[]{Axis.getNames(axis)}));

相关文章