Package org.eclipse.wst.xml.xpath2.processor.internal.types
public class XSBoolean extends org.eclipse.wst.xml.xpath2.processor.internal.types.CtrTypeA representation of a true or a false value.
Field Summary | |
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBoolean | FALSE |
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBoolean | TRUE |
Constructor Summary |
XSBoolean(boolean x) |
XSBoolean() |
Method Summary | |
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 |
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 |
public java.lang.Object | getNativeValue() |
public java.lang.String | getStringValue() Retrieve the String representation of the boolean value stored |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | getTypeDefinition() |
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 |
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 |
public java.lang.String | string_type() Retrieve the full type pathname of this datatype |
public java.lang.String | type_name() Retrieve the datatype name |
public boolean | value() Retrieves the actual boolean value stored |
public static org.eclipse.wst.xml.xpath2.api.ResultSequence | valueOf(boolean answer) |
Field Detail |
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBoolean FALSE
public static org.eclipse.wst.xml.xpath2.processor.internal.types.XSBoolean TRUE
Constructor Detail |
public XSBoolean(boolean x)
Initiates the new representation to the boolean supplied
public XSBoolean()
Initiates to a default representation of false.
Methods Detail |
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
arg
- The result sequence from which to extract the boolean value.
org.eclipse.wst.xml.xpath2.api.ResultSequence
- A new result sequence consisting of the boolean value 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)
Comparison for equality between the supplied and this boolean representation. Returns true if both represent same boolean value, false otherwise
arg
- The XSBoolean representation of the boolean value to compare with.
dynamicContext
boolean
- New XSBoolean representation of true/false result of the equality comparison
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.Object getNativeValue()
java.lang.Object
public java.lang.String getStringValue()
Retrieve the String representation of the boolean value stored
java.lang.String
- the String representation of the boolean value stored
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition
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
arg
- The XSBoolean representation of the boolean value to compare with.
context
boolean
- New XSBoolean representation of true/false result of the comparison
org.eclipse.wst.xml.xpath2.processor.DynamicError
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
arg
- The XSBoolean representation of the boolean value to compare with.
context
boolean
- New XSBoolean representation of true/false result of the comparison
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.String string_type()
Retrieve the full type pathname of this datatype
java.lang.String
- "xs:boolean", the full datatype pathname
public java.lang.String type_name()
Retrieve the datatype name
java.lang.String
- "boolean", which is the datatype name.
public boolean value()
Retrieves the actual boolean value stored
boolean
- the actual boolean value stored
public org.eclipse.wst.xml.xpath2.api.ResultSequence valueOf(boolean answer)
answer
org.eclipse.wst.xml.xpath2.api.ResultSequence