13 private readonly
string dataType =
null;
51 this.dataType = DataType;
57 public const string TypeUri = XmlSchema.Namespace +
"integer";
71 return ValueType == typeof(BigInteger) ? Grade.Ok :
Grade.NotAtAll;
96 return Grade.NotAtAll;
103 public const string IntegerUri = XmlSchema.Namespace +
"integer";
135 if (BigInteger.TryParse(
Value, out BigInteger i))
148 if (
Value is BigInteger Typed)
181 return ((BigInteger)this.
Value).CompareTo((BigInteger)Typed.Value);
183 return base.CompareTo(obj);
Represents a custom literal.
Represents an integer literal of undefined size.
const string NonNegativeIntegerUri
http://www.w3.org/2001/XMLSchema#nonNegativeInteger
override ISemanticLiteral Encapsulate(object Value)
Encapsulates an object value as a semantic literal value.
IntegerLiteral(BigInteger Value)
Represents an integer literal of undefined size.
override int GetHashCode()
IntegerLiteral(BigInteger Value, string StringValue)
Represents an integer literal of undefined size.
const string NegativeIntegerUri
http://www.w3.org/2001/XMLSchema#negativeInteger
override string StringType
Type name
IntegerLiteral(BigInteger Value, string StringValue, string DataType)
Represents an integer literal of undefined size.
override double ComparableValue
Comparable numeric value.
override int CompareTo(object obj)
Compares the current instance with another object of the same type and returns an integer that indica...
override ISemanticLiteral Parse(string Value, string DataType, string Language)
Tries to parse a string value of the type supported by the class..
const string IntegerUri
http://www.w3.org/2001/XMLSchema#integer
IntegerLiteral()
Represents an integer literal of undefined size.
override Grade Supports(string DataType)
How well the type supports a given data type.
const string TypeUri
http://www.w3.org/2001/XMLSchema#byte
const string NonPositiveIntegerUri
http://www.w3.org/2001/XMLSchema#nonPositiveInteger
const string PositiveIntegerUri
http://www.w3.org/2001/XMLSchema#positiveInteger
override bool Equals(object obj)
override Grade Supports(Type ValueType)
How well the type supports a given value type.
Represents a string literal.
string StringValue
String representation of value.
override string ToString()
object Value
Parsed value.
Abstract base class for semantic literal numeric values.
Interface for semantic literals.