Package org.eclipse.wst.xml.xpath2.processor.internal.types
public class XSInteger extends org.eclipse.wst.xml.xpath2.processor.internal.types.XSDecimalA 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.NumericType | abs() Absolutes the integer stored |
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 |
protected org.eclipse.wst.xml.xpath2.api.Item | convertArg(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg) |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | div(org.eclipse.wst.xml.xpath2.api.ResultSequence arg) |
public java.lang.String | getStringValue() Retrieves a String representation of the integer 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) |
public java.math.BigInteger | int_value() Retrieves the actual integer value stored |
protected boolean | isLexicalValue(java.lang.String value) |
public boolean | lt(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.ResultSequence | minus(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.ResultSequence | mod(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.ResultSequence | plus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg) Mathematical addition operator between this XSInteger and the supplied ResultSequence. |
public void | set_int(java.math.BigInteger x) Sets the integer stored to that supplied |
public java.lang.String | string_type() Retrieves the datatype's full pathname |
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. |
public java.lang.String | type_name() Retrieves the datatype's name |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | unary_minus() Negates the integer stored |
public boolean | zero() Check whether the integer represented is 0 |
Constructor Detail |
public XSInteger()
Initializes a representation of 0
public XSInteger(java.math.BigInteger x)
Initializes a representation of the supplied integer
public XSInteger(java.lang.String x)
Initializes a representation of the supplied integer
Methods Detail |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType abs()
Absolutes the integer stored
org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType
- New XSInteger representing the absolute of the integer stored
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
arg
- The ResultSequence from which the integer is to be extracted
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New ResultSequence consisting of the integer supplied
org.eclipse.wst.xml.xpath2.processor.DynamicError
protected org.eclipse.wst.xml.xpath2.api.Item convertArg(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg)
arg
org.eclipse.wst.xml.xpath2.api.Item
org.eclipse.wst.xml.xpath2.processor.DynamicError
public org.eclipse.wst.xml.xpath2.api.ResultSequence div(org.eclipse.wst.xml.xpath2.api.ResultSequence arg)
arg
org.eclipse.wst.xml.xpath2.api.ResultSequence
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.String getStringValue()
Retrieves a String representation of the integer stored
java.lang.String
- String representation of the integer 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)
arg
context
boolean
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.math.BigInteger int_value()
Retrieves the actual integer value stored
java.math.BigInteger
- The actual integer value stored
protected boolean isLexicalValue(java.lang.String value)
value
boolean
public boolean lt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType arg
,
org.eclipse.wst.xml.xpath2.api.DynamicContext context)
arg
context
boolean
org.eclipse.wst.xml.xpath2.processor.DynamicError
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.
arg
- The ResultSequence to perform a subtraction with
org.eclipse.wst.xml.xpath2.api.ResultSequence
- A XSInteger consisting of the result of the mathematical subtraction.
org.eclipse.wst.xml.xpath2.processor.DynamicError
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.
arg
- The ResultSequence to perform a modulus with
org.eclipse.wst.xml.xpath2.api.ResultSequence
- A XSInteger consisting of the result of the mathematical modulus.
org.eclipse.wst.xml.xpath2.processor.DynamicError
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.
arg
- The ResultSequence to perform an addition with
org.eclipse.wst.xml.xpath2.api.ResultSequence
- A XSInteger consisting of the result of the mathematical addition.
org.eclipse.wst.xml.xpath2.processor.DynamicError
public void set_int(java.math.BigInteger x)
Sets the integer stored to that supplied
x
- Integer to be stored
public java.lang.String string_type()
Retrieves the datatype's full pathname
java.lang.String
- "xs:integer" which is the datatype's full pathname
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.
arg
- The ResultSequence to perform a multiplication with
org.eclipse.wst.xml.xpath2.api.ResultSequence
- A XSInteger consisting of the result of the mathematical multiplication.
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.String type_name()
Retrieves the datatype's name
java.lang.String
- "integer" which is the datatype's name
public org.eclipse.wst.xml.xpath2.api.ResultSequence unary_minus()
Negates the integer stored
org.eclipse.wst.xml.xpath2.api.ResultSequence
- New XSInteger representing the negation of the integer stored
public boolean zero()
Check whether the integer represented is 0
boolean
- True is the integer represented is 0. False otherwise