Package org.eclipse.wst.xml.xpath2.processor.internal.types


org.eclipse.wst.xml.xpath2.processor.internal.types
Class QName



public class QName
extends org.eclipse.wst.xml.xpath2.processor.internal.types.CtrType
A representation of a QName datatype (name of a node)

Constructor Summary

QName(java.lang.String prefix , java.lang.String local_part , java.lang.String ns)
QName(java.lang.String prefix , java.lang.String local_part)
QName(java.lang.String local_part)
QName()
QName(javax.xml.namespace.QName name)

Method Summary

public javax.xml.namespace.QNameasQName()
    
public org.eclipse.wst.xml.xpath2.api.ResultSequenceconstructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Creates a new ResultSequence consisting of the extractable QName in the supplied ResultSequence
public booleaneq(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext)
     Equality comparison between this QName and the supplied QName
public booleanequals(java.lang.Object obj)
     Equality comparison between this QName and a supplied QName
public booleanexpanded()
     Check for whether a namespace has been defined for this node
public java.lang.Stringexpanded_name()
     Retrieves the full pathname including the namespace. This method must not be called if a namespace does exist for this node
public java.lang.ObjectgetNativeValue()
    
public java.lang.StringgetStringValue()
     Retrieves a String representation of the node name. This method is functionally identical to string()
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetTypeDefinition()
    
public inthashCode()
     Calculates the hashcode for the full pathname
public java.lang.Stringlocal()
     Retrieves the node's name
public java.lang.Stringnamespace()
     Retrieves the namespace that this node belongs in. This method must not be called if the node does not belong in a namespace
public static org.eclipse.wst.xml.xpath2.processor.internal.types.QNameparse_QName(java.lang.String str)
     Creates a new QName by parsing a String representation of the node name
public java.lang.Stringprefix()
     Retrieves the prefix of the node's pathname
public voidset_namespace(java.lang.String n)
     Sets the namespace for this node
public java.lang.Stringstring()
     Retrieves a String representation of the node name. This method is functionally identical to string_value()
public java.lang.Stringstring_type()
     Retrieves the datatype's full pathname
public java.lang.StringtoString()
    
public java.lang.Stringtype_name()
     Retrieves the datatype's name

Constructor Detail

QName

public QName(java.lang.String prefix , java.lang.String local_part , java.lang.String ns)

Initialises using the supplied parameters


QName

public QName(java.lang.String prefix , java.lang.String local_part)

Initialises using the supplied parameters


QName

public QName(java.lang.String local_part)

Initialises using only the node name (no prefix)


QName

public QName()

Initialises with a null prefix and null node name


QName

public QName(javax.xml.namespace.QName name)


Methods Detail

asQName

public javax.xml.namespace.QName asQName()

Returns

javax.xml.namespace.QName


constructor

public org.eclipse.wst.xml.xpath2.api.ResultSequence constructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)

Creates a new ResultSequence consisting of the extractable QName in the supplied ResultSequence

Parameters

arg - The ResultSequence to extract from

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New ResultSequence consisting of the QName supplied

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


eq

public boolean eq(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext)

Equality comparison between this QName and the supplied QName

Parameters

arg - The QName to compare with

dynamicContext

Returns

boolean - True if the two represent the same node. False otherwise

Throws:

org.eclipse.wst.xml.xpath2.processor.DynamicError


equals

public boolean equals(java.lang.Object obj)

Equality comparison between this QName and a supplied QName

Parameters

obj - The object to compare with. Should be of type QName

Returns

boolean - True if the two represent the same node. False otherwise


expanded

public boolean expanded()

Check for whether a namespace has been defined for this node

Returns

boolean - True if a namespace has been defined for node. False otherwise


expanded_name

public java.lang.String expanded_name()

Retrieves the full pathname including the namespace. This method must not be called if a namespace does exist for this node

Returns

java.lang.String - Full pathname including namespace


getNativeValue

public java.lang.Object getNativeValue()

Returns

java.lang.Object


getStringValue

public java.lang.String getStringValue()

Retrieves a String representation of the node name. This method is functionally identical to string()

Returns

java.lang.String - String representation of the node name


getTypeDefinition

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition


hashCode

public int hashCode()

Calculates the hashcode for the full pathname

Returns

int - The hashcode for the full pathname


local

public java.lang.String local()

Retrieves the node's name

Returns

java.lang.String - Node's name


namespace

public java.lang.String namespace()

Retrieves the namespace that this node belongs in. This method must not be called if the node does not belong in a namespace

Returns

java.lang.String - Namespace that this node belongs in


parse_QName

public org.eclipse.wst.xml.xpath2.processor.internal.types.QName parse_QName(java.lang.String str)

Creates a new QName by parsing a String representation of the node name

Parameters

str - String representation of the name

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.QName - null


prefix

public java.lang.String prefix()

Retrieves the prefix of the node's pathname

Returns

java.lang.String - Prefix of the node's pathname


set_namespace

public void set_namespace(java.lang.String n)

Sets the namespace for this node

Parameters

n - Namespace this node belongs in


string

public java.lang.String string()

Retrieves a String representation of the node name. This method is functionally identical to string_value()

Returns

java.lang.String - String representation of the node name


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

java.lang.String - "xs:QName" which is the datatype's full pathname


toString

public java.lang.String toString()

Returns

java.lang.String


type_name

public java.lang.String type_name()

Retrieves the datatype's name

Returns

java.lang.String - "QName" which is the datatype's name