ATDecimalOrDerived::Ptr ItemFactoryImpl::createNonNegativeInteger(const MAPM value, const DynamicContext* context) { if(value.is_integer() && value.sign() >= 0) { return new ATDecimalOrDerivedImpl(SchemaSymbols::fgURI_SCHEMAFORSCHEMA, SchemaSymbols::fgDT_NONNEGATIVEINTEGER, value, context); } return createDecimalOrDerived( SchemaSymbols::fgURI_SCHEMAFORSCHEMA, SchemaSymbols::fgDT_NONNEGATIVEINTEGER, value, context); }
ATDecimalOrDerived::Ptr ItemFactoryImpl::createInteger(const MAPM value, const DynamicContext* context) { if(value.is_integer()) { return new ATDecimalOrDerivedImpl(SchemaSymbols::fgURI_SCHEMAFORSCHEMA, SchemaSymbols::fgDT_INTEGER, value, context); } return createDecimalOrDerived( SchemaSymbols::fgURI_SCHEMAFORSCHEMA, SchemaSymbols::fgDT_INTEGER, value, context); }