public int intValue() { return toBigInteger().intValue(); }
public Object _createValue( String lexicalValue, ValidationContext context ) { // Implementation of JDK1.2.2/JDK1.3 is suitable enough final IntegerValueType v = IntegerValueType.create(lexicalValue); if(v==null) return null; if( !v.isNonNegative() ) return null; if( upperBound.compareTo(v)<0 ) return null; return v; }
public float floatValue() { return (float)doubleValue(); }
public Object _createValue( String lexicalValue, ValidationContext context ) { return IntegerValueType.create(lexicalValue); }
return new IntegerValueType("0"); return new IntegerValueType(v);
public Object _createJavaObject( String literal, ValidationContext context ) { IntegerValueType o = (IntegerValueType)_createValue(literal,context); if(o==null) return null; return new BigInteger(o.toString()); }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isNegative() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isNonNegative() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isPositive() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isNonPositive() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { return IntegerValueType.create(lexicalValue); }
return new IntegerValueType("0"); return new IntegerValueType(v);
public Object _createJavaObject( String literal, ValidationContext context ) { IntegerValueType o = (IntegerValueType)_createValue(literal,context); if(o==null) return null; return new BigInteger(o.toString()); }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isNegative() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isNonNegative() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isPositive() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { Object o = super._createValue(lexicalValue,context); if(o==null) return null; final IntegerValueType v = (IntegerValueType)o; if( !v.isNonPositive() ) return null; return v; }
public Object _createValue( String lexicalValue, ValidationContext context ) { // Implementation of JDK1.2.2/JDK1.3 is suitable enough final IntegerValueType v = IntegerValueType.create(lexicalValue); if(v==null) return null; if( !v.isNonNegative() ) return null; if( upperBound.compareTo(v)<0 ) return null; return v; }