/** * Get the character data of a Text or Comment node. * DOM method. */ public String getData() { return node.getStringValue(); }
/** * Return the character value of an attribute node (DOM method) * * @return the attribute value */ public String getValue() { return node.getStringValue(); }
/** * Return the string value of the current node. * * @return the string value, as an instance of CharSequence. * @throws NullPointerException if there is no current node */ public CharSequence getStringValue() { return currentVirtualNode.getStringValue(); }
/** * Get the character data of a Text or Comment node. * DOM method. */ public String getData() { return node.getStringValue(); }
/** * The content of this processing instruction. This is from the first non * white space character after the target to the character immediately * preceding the <code>?></code>. */ public String getData() { return node.getStringValue(); }
/** * Return the string value of the current node. * * @return the string value, as an instance of CharSequence. * @throws NullPointerException if there is no current node */ public CharSequence getStringValue() { return currentVirtualNode.getStringValue(); }
/** * The content of this processing instruction. This is from the first non * white space character after the target to the character immediately * preceding the <code>?></code>. */ public String getData() { return node.getStringValue(); }
@Override public String getStringValue() { return externalNode.getStringValue(); }
/** * Return the string value of the node. The interpretation of this depends on the type * of node. For an element it is the accumulated character content of the element, * including descendant elements. * * @return the string value of the node */ public String getStringValue() { return original.getStringValue(); }
/** * Get the length of a Text or Comment node. * DOM method. */ public int getLength() { return node.getStringValue().length(); }
/** * Get the length of a Text or Comment node. * DOM method. */ public int getLength() { return node.getStringValue().length(); }
/** * Get the typed value of a node that is annotated with this schema type. * * @param node the node whose typed value is required * @return the typed value. * @since 8.5 */ /*@NotNull*/ public AtomicSequence atomize(/*@NotNull*/ NodeInfo node) { return new UntypedAtomicValue(node.getStringValue()); }
/** * Return the string value of the current node. * * @return the string value, as an instance of CharSequence. * @throws NullPointerException if there is no current node */ public CharSequence getStringValue() { return ((NodeInfo)current()).getStringValue(); }
/** * Get the typed value of a node that is annotated with this schema type. The result of this method will always be consistent with the method * {@link #getTypedValue}. However, this method is often more convenient and may be * more efficient, especially in the common case where the value is expected to be a singleton. * * @param node the node whose typed value is required * @return the typed value. * @since 8.5 */ public Value atomize(NodeInfo node) { return new UntypedAtomicValue(node.getStringValue()); }
public String getAttributeValue(int i) { if (currentStaxEvent != START_ELEMENT) { throw new IllegalStateException(""+currentStaxEvent); } return startElementEvent.getAttribute(i).getStringValue(); }
/** * Get the typed value of a node that is annotated with this schema type. The result of this method will always be consistent with the method * {@link #getTypedValue}. However, this method is often more convenient and may be * more efficient, especially in the common case where the value is expected to be a singleton. * * @param node the node whose typed value is required * @return the typed value. * @since 8.5 */ public Value atomize(NodeInfo node) { return new UntypedAtomicValue(node.getStringValue()); }
public String getAttributeValue(String uri, String local) { for (Iterator iter = startElementEvent.iterateAttributes(); iter.hasNext(); ) { NodeInfo att = (NodeInfo)iter.next(); if (att.getURI().equals(uri) && att.getLocalPart().equals(local)) { return att.getStringValue(); } } return null; }
/** * Get the typed value of a node that is annotated with this schema type * @param node the node whose typed value is required * @return an iterator returning a single untyped atomic value, equivalent to the string value of the node. This * follows the standard rules for elements with mixed content. */ public SequenceIterator getTypedValue(NodeInfo node) { return SingletonIterator.makeIterator(new UntypedAtomicValue(node.getStringValue())); }
/** * Get the typed value of a node that is annotated with this schema type * @param node the node whose typed value is required * @return an iterator returning a single untyped atomic value, equivalent to the string value of the node. This * follows the standard rules for elements with mixed content. */ public SequenceIterator getTypedValue(NodeInfo node) { return SingletonIterator.makeIterator(new UntypedAtomicValue(node.getStringValue())); }
/** * Evaluate as an expression. We rely on the fact that when these instructions * are generated by XQuery, there will always be a valueExpression to evaluate * the content */ public Item evaluateItem(XPathContext context) throws XPathException { NodeInfo node = (NodeInfo)super.evaluateItem(context); String prefix = node.getLocalPart(); String uri = node.getStringValue(); checkPrefixAndUri(prefix, uri, context); return node; }