|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.sf.saxon.value.Value
|
+--net.sf.saxon.value.AtomicValue
|
+--net.sf.saxon.value.QNameValue
A QName value
| Constructor Summary | |
QNameValue(java.lang.String uri,
java.lang.String localName)
Constructor |
|
| Method Summary | |
int |
conversionPreference(java.lang.Class required,
Configuration config)
Get conversion preference for this value to a Java class. |
AtomicValue |
convert(int requiredType)
Convert to target data type |
java.lang.Object |
convertToJava(java.lang.Class target,
Configuration config)
Convert to Java object (for passing to external functions) |
void |
display(int level,
NamePool pool)
Diagnostic print of expression structure |
boolean |
equals(java.lang.Object other)
Determine if two anyURI values are equal |
AtomicValue |
getComponent(int part)
Get a component. |
ItemType |
getItemType()
Return the type of the expression |
java.lang.String |
getLocalName()
Get the local part |
java.lang.String |
getNamespaceURI()
Get the namespace part (null means no namespace) |
java.lang.String |
getStringValue()
Get the string value as a String. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class net.sf.saxon.value.AtomicValue |
convert, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getPrimitiveValue, getTypedValue, iterate |
| Methods inherited from class net.sf.saxon.value.Value |
analyze, asItem, asValue, collapseWhitespace, getDependencies, getSpecialProperties, getSubExpressions, inverse, normalizeWhitespace, promote, simplify, stringToNumber, trimWhitespace |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QNameValue(java.lang.String uri,
java.lang.String localName)
throws XPathException
uri - The namespace part of the QNamelocalName - The local part of the QName.| Method Detail |
public java.lang.String getStringValue()
throws XPathException
getStringValue in interface ItemgetStringValue in class ValueXPathException - if the string value cannot be obtained. Some
items have no string value, e.g. a QNamepublic java.lang.String getLocalName()
public java.lang.String getNamespaceURI()
public AtomicValue getComponent(int part)
getComponent in class AtomicValuepart - either Component.LOCALNAME or Componenet.NAMESPACE indicating which
component of the value is required
public AtomicValue convert(int requiredType)
throws XPathException
convert in class AtomicValuerequiredType - an integer identifying the required atomic type
XPathException - if the conversion is not possiblepublic ItemType getItemType()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectjava.lang.ClassCastException - if they are not comparablepublic int hashCode()
hashCode in class java.lang.Object
public int conversionPreference(java.lang.Class required,
Configuration config)
conversionPreference in class AtomicValue
public java.lang.Object convertToJava(java.lang.Class target,
Configuration config)
throws XPathException
convertToJava in class AtomicValuetarget - The class required by the external functionconfig - The configuration (needed for access to schema information)
XPathException
public void display(int level,
NamePool pool)
level - indentation level for this expressionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||