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


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



public class XSBoolean
extends org.eclipse.wst.xml.xpath2.processor.internal.types.CtrType
A representation of a true or a false value.

Field Summary

public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBooleanFALSE
    
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBooleanTRUE
    

Constructor Summary

XSBoolean(boolean x)
XSBoolean()

Method Summary

public org.eclipse.wst.xml.xpath2.api.ResultSequenceconstructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Creates a new result sequence consisting of the retrievable boolean value in the supplied result sequence
public booleaneq(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext)
     Comparison for equality between the supplied and this boolean representation. Returns true if both represent same boolean value, false otherwise
public java.lang.ObjectgetNativeValue()
    
public java.lang.StringgetStringValue()
     Retrieve the String representation of the boolean value stored
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 the supplied and this boolean representation. Returns true if this XSBoolean represents true and that XSBoolean supplied represents false. Returns false otherwise
public booleanlt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext context)
     Comparison between the supplied and this boolean representation. Returns true if this XSBoolean represents false and that XSBoolean supplied represents true. Returns false otherwise
public java.lang.Stringstring_type()
     Retrieve the full type pathname of this datatype
public java.lang.Stringtype_name()
     Retrieve the datatype name
public booleanvalue()
     Retrieves the actual boolean value stored
public static org.eclipse.wst.xml.xpath2.api.ResultSequencevalueOf(boolean answer)
    

Field Detail

FALSE

public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBoolean FALSE


TRUE

public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBoolean TRUE


Constructor Detail

XSBoolean

public XSBoolean(boolean x)

Initiates the new representation to the boolean supplied


XSBoolean

public XSBoolean()

Initiates to a default representation of false.


Methods Detail

constructor

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

Creates a new result sequence consisting of the retrievable boolean value in the supplied result sequence

Parameters

arg - The result sequence from which to extract the boolean value.

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - A new result sequence consisting of the boolean value 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)

Comparison for equality between the supplied and this boolean representation. Returns true if both represent same boolean value, false otherwise

Parameters

arg - The XSBoolean representation of the boolean value to compare with.

dynamicContext

Returns

boolean - New XSBoolean representation of true/false result of the equality comparison

Throws:

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


getNativeValue

public java.lang.Object getNativeValue()

Returns

java.lang.Object


getStringValue

public java.lang.String getStringValue()

Retrieve the String representation of the boolean value stored

Returns

java.lang.String - the String representation of the boolean value 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 the supplied and this boolean representation. Returns true if this XSBoolean represents true and that XSBoolean supplied represents false. Returns false otherwise

Parameters

arg - The XSBoolean representation of the boolean value to compare with.

context

Returns

boolean - New XSBoolean representation of true/false result of the comparison

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 the supplied and this boolean representation. Returns true if this XSBoolean represents false and that XSBoolean supplied represents true. Returns false otherwise

Parameters

arg - The XSBoolean representation of the boolean value to compare with.

context

Returns

boolean - New XSBoolean representation of true/false result of the comparison

Throws:

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


string_type

public java.lang.String string_type()

Retrieve the full type pathname of this datatype

Returns

java.lang.String - "xs:boolean", the full datatype pathname


type_name

public java.lang.String type_name()

Retrieve the datatype name

Returns

java.lang.String - "boolean", which is the datatype name.


value

public boolean value()

Retrieves the actual boolean value stored

Returns

boolean - the actual boolean value stored


valueOf

public org.eclipse.wst.xml.xpath2.api.ResultSequence valueOf(boolean answer)

Parameters

answer

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence