15 import(
'lib.pkp.classes.filter.TypeDescription');
16 import(
'lib.pkp.classes.filter.TypeDescriptionFactory');
29 parent::__construct($typeName);
40 return TYPE_DESCRIPTION_NAMESPACE_PRIMITIVE;
54 $this->_primitiveType = $typeName;
63 if (!is_scalar($object))
return false;
80 assert(!(is_object($variable) || is_array($variable) || is_null($variable)));
85 return str_replace(
'double',
'float', gettype($variable));
94 static $supportedPrimitiveTypes = array(
95 'string',
'integer',
'float',
'boolean'
97 return $supportedPrimitiveTypes;