Integer Numbers
You can force users to enter integers for custom block property that corresponds to a macro input parameter with a number datatype. Use the macro metadata element <type> in <parameter> and a datatype of integer. For example:
<macros xmlns="http://www.open-mashup.org/schemas/v1.0/EMML"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openmashup.org/schemas/v1.0/EMML/..
/schemas/EMMLPrestoSpec.xsd"
domain="myBlocks">
<macro name="helloWorld"
xmlns:presto="http://www.jackbe.com/v1.0/EMMLPrestoExtensions"
xmlns:macro="http://www.openmashup.org/schemas/v1.0/EMMLMacro">
<presto:macro-meta>
<block usage="Wires">
...
</block>
<parameters>
<parameter name="aNumber">
<label>An integer</label>
<type datatype="integer"/>
</parameter>
...
</parameters>
</presto:macro-meta>
....
</macro>
...
</macros>
With an integer datatype in the macro metadata, Wires does not accept a decimal point (.) or any alphabetic characters in user entries.