net.sf.saxon.om
Interface Item

All Known Subinterfaces:
DocumentInfo, NodeInfo, SiblingCountingNode
All Known Implementing Classes:
AbsentExtensionElement, AbstractNode, AnyURIValue, AtomicUserDefinedValue, AtomicValue, AttributeImpl, Base64BinaryValue, BooleanValue, CalendarValue, CommentImpl, DataElement, DateTimeValue, DateValue, DecimalValue, DocumentImpl, DocumentWrapper, DocumentWrapper, DoubleValue, DurationValue, ElementImpl, ElementWithAttributes, FloatValue, GDayValue, GMonthDayValue, GMonthValue, GYearMonthValue, GYearValue, HexBinaryValue, IntegerValue, LiteralResultElement, MonthDurationValue, NamespaceImpl, NamespaceNode, NodeImpl, NodeWrapper, NodeWrapper, NumericValue, ObjectValue, Orphan, ParentNodeImpl, ProcInstImpl, QNameValue, RestrictedStringValue, SaxonAssign, SaxonCallTemplate, SaxonCollation, SaxonDoctype, SaxonEntityRef, SaxonImportQuery, SaxonScript, SaxonWhile, SecondsDurationValue, SQLClose, SQLColumn, SQLConnect, SQLInsert, SQLQuery, StringValue, StrippedDocument, StrippedNode, StyleElement, TextFragmentValue, TextImpl, TimeValue, TinyAttributeImpl, TinyCommentImpl, TinyDocumentImpl, TinyElementImpl, TinyNamespaceImpl, TinyNodeImpl, TinyParentNodeImpl, TinyProcInstImpl, TinyTextImpl, UntypedAtomicValue, XSLAnalyzeString, XSLApplyImports, XSLApplyTemplates, XSLAttribute, XSLAttributeSet, XSLCallTemplate, XSLCharacterMap, XSLChoose, XSLComment, XSLCopy, XSLCopyOf, XSLDecimalFormat, XSLDocument, XSLElement, XSLFallback, XSLForEach, XSLForEachGroup, XSLFunction, XSLGeneralIncorporate, XSLGeneralVariable, XSLIf, XSLImport, XSLImportSchema, XSLInclude, XSLKey, XSLMatchingSubstring, XSLMessage, XSLNamespace, XSLNamespaceAlias, XSLNextMatch, XSLNumber, XSLOtherwise, XSLOutput, XSLOutputCharacter, XSLParam, XSLPerformSort, XSLPreserveSpace, XSLProcessingInstruction, XSLResultDocument, XSLSequence, XSLSort, XSLStringConstructor, XSLStyleSheet, XSLTemplate, XSLText, XSLValueOf, XSLVariable, XSLVariableDeclaration, XSLWhen, XSLWithParam

public interface Item

An Item is an object that can occur as a member of a sequence. There are two kinds of Item: simple values, and nodes.


Method Summary
 String getStringValue()
          Get the value of the item as a string
 SequenceIterator getTypedValue()
          Get the typed value of the item
 

Method Detail

getStringValue

String getStringValue()
                      throws XPathException
Get the value of the item as a string

Returns:
the string value of the item
Throws:
XPathException - if the string value cannot be obtained. Some items have no string value, e.g. a QName

getTypedValue

SequenceIterator getTypedValue()
                               throws XPathException
Get the typed value of the item

Returns:
the typed value of the item. In general this will be a sequence, though at present in Saxon the typed value is always a single atomic value
Throws:
XPathException - where no typed value is available, e.g. for an element with complex content