Package org.eclipse.wst.xml.xpath2.processor.internal.types
public class QName extends org.eclipse.wst.xml.xpath2.processor.internal.types.CtrTypeA 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.QName | asQName() |
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 |
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 |
public boolean | equals(java.lang.Object obj) Equality comparison between this QName and a supplied QName |
public boolean | expanded() Check for whether a namespace has been defined for this node |
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 |
public java.lang.Object | getNativeValue() |
public java.lang.String | getStringValue() Retrieves a String representation of the node name. This method is functionally identical to string() |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | getTypeDefinition() |
public int | hashCode() Calculates the hashcode for the full pathname |
public java.lang.String | local() Retrieves the node's name |
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 |
public static 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 |
public java.lang.String | prefix() Retrieves the prefix of the node's pathname |
public void | set_namespace(java.lang.String n) Sets the namespace for this node |
public java.lang.String | string() Retrieves a String representation of the node name. This method is functionally identical to string_value() |
public java.lang.String | string_type() Retrieves the datatype's full pathname |
public java.lang.String | toString() |
public java.lang.String | type_name() Retrieves the datatype's name |
Constructor Detail |
public QName(java.lang.String prefix
,
java.lang.String local_part
,
java.lang.String ns)
Initialises using the supplied parameters
public QName(java.lang.String prefix
,
java.lang.String local_part)
Initialises using the supplied parameters
public QName(java.lang.String local_part)
Initialises using only the node name (no prefix)
public QName()
Initialises with a null prefix and null node name
public QName(javax.xml.namespace.QName name)
Methods Detail |
public javax.xml.namespace.QName asQName()
javax.xml.namespace.QName
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
arg
- The ResultSequence to extract from
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New ResultSequence consisting of the QName supplied
org.eclipse.wst.xml.xpath2.processor.DynamicError
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
arg
- The QName to compare with
dynamicContext
boolean
- True if the two represent the same node. False otherwise
org.eclipse.wst.xml.xpath2.processor.DynamicError
public boolean equals(java.lang.Object obj)
Equality comparison between this QName and a supplied QName
obj
- The object to compare with. Should be of type QName
boolean
- True if the two represent the same node. False otherwise
public boolean expanded()
Check for whether a namespace has been defined for this node
boolean
- True if a namespace has been defined for node. False otherwise
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
java.lang.String
- Full pathname including namespace
public java.lang.Object getNativeValue()
java.lang.Object
public java.lang.String getStringValue()
Retrieves a String representation of the node name. This method is functionally identical to string()
java.lang.String
- String representation of the node name
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition
public int hashCode()
Calculates the hashcode for the full pathname
int
- The hashcode for the full pathname
public java.lang.String local()
Retrieves the node's name
java.lang.String
- Node's name
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
java.lang.String
- Namespace that this node belongs in
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
str
- String representation of the name
org.eclipse.wst.xml.xpath2.processor.internal.types.QName
- null
public java.lang.String prefix()
Retrieves the prefix of the node's pathname
java.lang.String
- Prefix of the node's pathname
public void set_namespace(java.lang.String n)
Sets the namespace for this node
n
- Namespace this node belongs in
public java.lang.String string()
Retrieves a String representation of the node name. This method is functionally identical to string_value()
java.lang.String
- String representation of the node name
public java.lang.String string_type()
Retrieves the datatype's full pathname
java.lang.String
- "xs:QName" which is the datatype's full pathname
public java.lang.String toString()
java.lang.String
public java.lang.String type_name()
Retrieves the datatype's name
java.lang.String
- "QName" which is the datatype's name