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


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



public class XSInteger
extends org.eclipse.wst.xml.xpath2.processor.internal.types.XSDecimal
A representation of the Integer datatype

Constructor Summary

XSInteger()
XSInteger(java.math.BigInteger x)
XSInteger(java.lang.String x)

Method Summary

public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericTypeabs()
     Absolutes the integer stored
public org.eclipse.wst.xml.xpath2.api.ResultSequenceconstructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Creates a new ResultSequence consisting of the extractable integer in the supplied ResultSequence
protected org.eclipse.wst.xml.xpath2.api.ItemconvertArg(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg)
    
public org.eclipse.wst.xml.xpath2.api.ResultSequencediv(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
    
public java.lang.StringgetStringValue()
     Retrieves a String representation of the integer 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)
    
public java.math.BigIntegerint_value()
     Retrieves the actual integer value stored
protected booleanisLexicalValue(java.lang.String value)
    
public booleanlt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg , org.eclipse.wst.xml.xpath2.api.DynamicContext context)
    
public org.eclipse.wst.xml.xpath2.api.ResultSequenceminus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical subtraction operator between this XSInteger and the supplied ResultSequence.
public org.eclipse.wst.xml.xpath2.api.ResultSequencemod(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical modulus operator between this XSInteger and the supplied ResultSequence.
public org.eclipse.wst.xml.xpath2.api.ResultSequenceplus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical addition operator between this XSInteger and the supplied ResultSequence.
public voidset_int(java.math.BigInteger x)
     Sets the integer stored to that supplied
public java.lang.Stringstring_type()
     Retrieves the datatype's full pathname
public org.eclipse.wst.xml.xpath2.api.ResultSequencetimes(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
     Mathematical multiplication operator between this XSInteger and the supplied ResultSequence.
public java.lang.Stringtype_name()
     Retrieves the datatype's name
public org.eclipse.wst.xml.xpath2.api.ResultSequenceunary_minus()
     Negates the integer stored
public booleanzero()
     Check whether the integer represented is 0

Constructor Detail

XSInteger

public XSInteger()

Initializes a representation of 0


XSInteger

public XSInteger(java.math.BigInteger x)

Initializes a representation of the supplied integer


XSInteger

public XSInteger(java.lang.String x)

Initializes a representation of the supplied integer


Methods Detail

abs

public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType abs()

Absolutes the integer stored

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType - New XSInteger representing the absolute of the integer stored


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

Parameters

arg - The ResultSequence from which the integer is to be extracted

Returns

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

Throws:

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


convertArg

protected org.eclipse.wst.xml.xpath2.api.Item convertArg(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg)

Parameters

arg

Returns

org.eclipse.wst.xml.xpath2.api.Item

Throws:

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


div

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

Parameters

arg

Returns

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

Throws:

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


getStringValue

public java.lang.String getStringValue()

Retrieves a String representation of the integer stored

Returns

java.lang.String - String representation of the integer 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)

Parameters

arg

context

Returns

boolean

Throws:

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


int_value

public java.math.BigInteger int_value()

Retrieves the actual integer value stored

Returns

java.math.BigInteger - The actual integer value stored


isLexicalValue

protected boolean isLexicalValue(java.lang.String value)

Parameters

value

Returns

boolean


lt

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

Parameters

arg

context

Returns

boolean

Throws:

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


minus

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

Mathematical subtraction operator between this XSInteger and the supplied ResultSequence.

Parameters

arg - The ResultSequence to perform a subtraction with

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - A XSInteger consisting of the result of the mathematical subtraction.

Throws:

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


mod

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

Mathematical modulus operator between this XSInteger and the supplied ResultSequence.

Parameters

arg - The ResultSequence to perform a modulus with

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - A XSInteger consisting of the result of the mathematical modulus.

Throws:

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


plus

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

Mathematical addition operator between this XSInteger and the supplied ResultSequence.

Parameters

arg - The ResultSequence to perform an addition with

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - A XSInteger consisting of the result of the mathematical addition.

Throws:

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


set_int

public void set_int(java.math.BigInteger x)

Sets the integer stored to that supplied

Parameters

x - Integer to be stored


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

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


times

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

Mathematical multiplication operator between this XSInteger and the supplied ResultSequence.

Parameters

arg - The ResultSequence to perform a multiplication with

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - A XSInteger consisting of the result of the mathematical multiplication.

Throws:

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


type_name

public java.lang.String type_name()

Retrieves the datatype's name

Returns

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


unary_minus

public org.eclipse.wst.xml.xpath2.api.ResultSequence unary_minus()

Negates the integer stored

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New XSInteger representing the negation of the integer stored


zero

public boolean zero()

Check whether the integer represented is 0

Returns

boolean - True is the integer represented is 0. False otherwise