/** * Get the value of the item as a CharSequence. This is in some cases more efficient than * the version of the method that returns a String. */ public CharSequence getStringValueCS() { return original.getStringValueCS(); }
/** * Get the value of the item as a CharSequence. This is in some cases more efficient than * the version of the method that returns a String. */ public CharSequence getStringValueCS() { // default implementation returns the string value of the base node return node.getStringValueCS(); }
/** * 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 current.getStringValueCS(); }
/** * 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 current.getStringValueCS(); }
/** * Get the value of the item as a CharSequence. This is in some cases more efficient than * the version of the method that returns a String. */ public CharSequence getStringValueCS() { return original.getStringValueCS(); }
/** * Get the value of the item as a CharSequence. This is in some cases more efficient than * the version of the method that returns a String. */ public CharSequence getStringValueCS() { return original.getStringValueCS(); }
/** * 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.getStringValueCS()); }
/** * 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.getStringValueCS()); }
/** * 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.getStringValueCS()); }
/** * 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()).getStringValueCS(); }
/** * 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.getStringValueCS()); }
/** * 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.getStringValueCS()); }
/** * 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.getStringValueCS()); }
/** * 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()).getStringValueCS(); }
/** * 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()).getStringValueCS(); }
/** * 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()).getStringValueCS(); }
public NodeInfo next() { while (true) { NodeInfo next = base.next(); if (next == null) { return null; } if (!(next.getNodeKind() == Type.TEXT && next.getStringValueCS().length() == 0)) { return next; } } }
private static boolean isIgnorable(NodeInfo node, int flags) { final int kind = node.getNodeKind(); if (kind == Type.COMMENT) { return (flags & INCLUDE_COMMENTS) == 0; } else if (kind == Type.PROCESSING_INSTRUCTION) { return (flags & INCLUDE_PROCESSING_INSTRUCTIONS) == 0; } else if (kind == Type.TEXT) { return ((flags & EXCLUDE_WHITESPACE_TEXT_NODES) != 0) && Whitespace.isWhite(node.getStringValueCS()); } return false; }
/** * 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.getStringValueCS())); }
/** * Get the typed value of a node that is annotated with this schema type. This shouldn't happen: nodes * are never annotated as xs:anySimpleType; but if it does happen, we treat it as if it were * untypedAtomic. * @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. */ public SequenceIterator getTypedValue(NodeInfo node) { return SingletonIterator.makeIterator(new UntypedAtomicValue(node.getStringValueCS())); }