@Test public void testGetStringValueCS() { assertEquals("oops1foooops2baroops3", node.getStringValueCS()); AxisIterator iterator = node.iterateAxis(Axis.DESCENDANT); node = (NodeWrapper)iterator.next(); assertEquals("oops1foooops2baroops3", node.getStringValueCS()); final NodeWrapper attrib = (NodeWrapper)node.iterateAxis(Axis.ATTRIBUTE).next(); assertEquals("j", attrib.getStringValueCS()); final NodeWrapper text = (NodeWrapper)node.iterateAxis(Axis.CHILD).next(); assertEquals("oops1", text.getStringValueCS()); }
@Override public final CharSequence getStringValueCS() { String mValue = ""; try { final INodeReadTrx rtx = createRtxAndMove(); switch (nodeKind) { case ROOT: case ELEMENT: mValue = expandString(); break; case ATTRIBUTE: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; case TEXT: mValue = rtx.getValueOfCurrentNode(); break; case COMMENT: case PROCESSING: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; default: mValue = ""; } } catch (final TTException exc) { LOGGER.error(exc.toString()); } return mValue; }
NodeWrapper implements NodeInfo, VirtualNode, SiblingCountingNode { @Override public final CharSequence getStringValueCS() { String mValue = ""; try { final INodeReadTrx rtx = createRtxAndMove(); switch (nodeKind) { case ROOT: case ELEMENT: mValue = expandString(); break; case ATTRIBUTE: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; case TEXT: mValue = rtx.getValueOfCurrentNode(); break; case COMMENT: case PROCESSING: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; default: mValue = ""; } } catch (final TTException exc) { LOGGER.error(exc.toString()); } return mValue; } }
NodeWrapper implements NodeInfo, VirtualNode, SiblingCountingNode { @Override public final CharSequence getStringValueCS() { String mValue = ""; try { final INodeReadTrx rtx = createRtxAndMove(); switch (nodeKind) { case ROOT: case ELEMENT: mValue = expandString(); break; case ATTRIBUTE: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; case TEXT: mValue = rtx.getValueOfCurrentNode(); break; case COMMENT: case PROCESSING: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; default: mValue = ""; } } catch (final TTException exc) { LOGGER.error(exc.toString()); } return mValue; } protected  NodeWrapper(final DocumentWrapper pDocWrapper, final long pNodekeyToStart); }
NodeWrapper implements NodeInfo, VirtualNode, SiblingCountingNode { @Override public final CharSequence getStringValueCS() { String mValue = ""; try { final INodeReadTrx rtx = createRtxAndMove(); switch (nodeKind) { case ROOT: case ELEMENT: mValue = expandString(); break; case ATTRIBUTE: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; case TEXT: mValue = rtx.getValueOfCurrentNode(); break; case COMMENT: case PROCESSING: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; default: mValue = ""; } } catch (final TTException exc) { LOGGER.error(exc.toString()); } return mValue; } protected  NodeWrapper(final DocumentWrapper pDocWrapper, final long pNodekeyToStart); @Override Value atomize(); @Override int compareOrder(final NodeInfo node); void copy(final Receiver out, final int copyOption, final int locationId); @Override void generateId(final FastStringBuffer buf); @Override String getAttributeValue(final int fingerprint); @Override String getBaseURI(); @Override int getColumnNumber(); @Override Configuration getConfiguration(); @Override String getDisplayName(); @Override long getDocumentNumber(); @Override DocumentInfo getDocumentRoot(); @Override int getFingerprint(); @Override int getLineNumber(); @Override String getLocalPart(); @Override int getNameCode(); @Override NamePool getNamePool(); @Override int getNodeKind(); @Override NodeInfo getParent(); @Override String getPrefix(); @Override NodeInfo getRoot(); @Override final String getStringValue(); @Override final CharSequence getStringValueCS(); @Override String getSystemId(); int getTypeAnnotation(); @Override String getURI(); @Override boolean hasChildNodes(); @Override boolean isId(); @Override boolean isIdref(); @Override boolean isNilled(); @Override boolean isSameNodeInfo(final NodeInfo other); @Override AxisIterator iterateAxis(final byte axisNumber); @Override AxisIterator iterateAxis(final byte axisNumber, final NodeTest nodeTest); @Override void setSystemId(final String systemId); @Override SequenceIterator getTypedValue(); @Override Object getRealNode(); @Override Object getUnderlyingNode(); @Override int getSiblingPosition(); @Override String getAttributeValue(String arg0, String arg1); @Override NamespaceBinding[] getDeclaredNamespaces(NamespaceBinding[] arg0); @Override SchemaType getSchemaType(); }
NodeWrapper implements NodeInfo, VirtualNode, SiblingCountingNode { @Override public final CharSequence getStringValueCS() { String mValue = ""; try { final INodeReadTrx rtx = createRtxAndMove(); switch (nodeKind) { case ROOT: case ELEMENT: mValue = expandString(); break; case ATTRIBUTE: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; case TEXT: mValue = rtx.getValueOfCurrentNode(); break; case COMMENT: case PROCESSING: mValue = emptyIfNull(rtx.getValueOfCurrentNode()); break; default: mValue = ""; } } catch (final TTException exc) { LOGGER.error(exc.toString()); } return mValue; } protected  NodeWrapper(final DocumentWrapper pDocWrapper, final long pNodekeyToStart); @Override Value atomize(); @Override int compareOrder(final NodeInfo node); void copy(final Receiver out, final int copyOption, final int locationId); @Override void generateId(final FastStringBuffer buf); @Override String getAttributeValue(final int fingerprint); @Override String getBaseURI(); @Override int getColumnNumber(); @Override Configuration getConfiguration(); @Override String getDisplayName(); @Override long getDocumentNumber(); @Override DocumentInfo getDocumentRoot(); @Override int getFingerprint(); @Override int getLineNumber(); @Override String getLocalPart(); @Override int getNameCode(); @Override NamePool getNamePool(); @Override int getNodeKind(); @Override NodeInfo getParent(); @Override String getPrefix(); @Override NodeInfo getRoot(); @Override final String getStringValue(); @Override final CharSequence getStringValueCS(); @Override String getSystemId(); int getTypeAnnotation(); @Override String getURI(); @Override boolean hasChildNodes(); @Override boolean isId(); @Override boolean isIdref(); @Override boolean isNilled(); @Override boolean isSameNodeInfo(final NodeInfo other); @Override AxisIterator iterateAxis(final byte axisNumber); @Override AxisIterator iterateAxis(final byte axisNumber, final NodeTest nodeTest); @Override void setSystemId(final String systemId); @Override SequenceIterator getTypedValue(); @Override Object getRealNode(); @Override Object getUnderlyingNode(); @Override int getSiblingPosition(); @Override String getAttributeValue(String arg0, String arg1); @Override NamespaceBinding[] getDeclaredNamespaces(NamespaceBinding[] arg0); @Override SchemaType getSchemaType();  }