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


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



public class XSString
extends org.eclipse.wst.xml.xpath2.processor.internal.types.CtrType
A representation of the String datatype

Constructor Summary

XSString(java.lang.String x)
XSString()

Method Summary

public org.eclipse.wst.xml.xpath2.api.ResultSequenceconstructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Creates a new ResultSequence consisting of the extractable String 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 and the supplied representation which must be of type String
public java.lang.ObjectgetNativeValue()
    
public java.lang.StringgetStringValue()
     Retrieves a String representation of the string stored. This method is functionally identical to value()
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetTypeDefinition()
    
public booleangt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext context)
     Comparison between this and the supplied representation which must be of type String
public booleanlt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext context)
     Comparison between this and the supplied representation which must be of type String
public java.lang.Stringstring_type()
     Retrieves the datatype's full pathname
public java.lang.Stringtype_name()
     Retrieves the datatype's name
public java.lang.Stringvalue()
     Retrieves a String representation of the string stored. This method is functionally identical to string_value()

Constructor Detail

XSString

public XSString(java.lang.String x)

Initialises using the supplied String


XSString

public XSString()

Initialises to null


Methods Detail

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 String in the supplied ResultSequence

Parameters

arg - The ResultSequence from which to extract the String

Returns

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

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 and the supplied representation which must be of type String

Parameters

arg - The representation to compare with

dynamicContext

Returns

boolean - True if the two representation are of the same String. False otherwise

Throws:

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


getNativeValue

public java.lang.Object getNativeValue()

Returns

java.lang.Object


getStringValue

public java.lang.String getStringValue()

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

Returns

java.lang.String - The String stored


getTypeDefinition

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

Returns

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


gt

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

Comparison between this and the supplied representation which must be of type String

Parameters

arg - The representation to compare with

context

Returns

boolean - True if this String is lexographically greater than that supplied. False otherwise

Throws:

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


lt

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

Comparison between this and the supplied representation which must be of type String

Parameters

arg - The representation to compare with

context

Returns

boolean - True if this String is lexographically less than that supplied. False otherwise

Throws:

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


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

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


type_name

public java.lang.String type_name()

Retrieves the datatype's name

Returns

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


value

public java.lang.String value()

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

Returns

java.lang.String - The String stored