thrownewBuildException("Value provide for "+childName+" node must be a decimal number. Specified value "+dimensionAsString+" could not be interpreted as such!");//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

}

switch(unit){

caseCAMERA:

dimension=newPoint(CameraCoordinates.class);

break;

caseMILLIMETERS:

dimension=newPoint(TableCoordinates.class);

break;

casePIXELS:

dimension=newPoint(ScreenCoordinates.class);

break;

default:

dimension=newPoint(ScreenCoordinates.class);

}

dimension.setLocation(value,value);

dimension.toCoordinates(targetStateClass);

value=dimension.getX();

}

}else{

if(optional)

value=defaultValue;

else

thrownewBuildException("Node "+childName+" is mandatory and MUST be provided!");//$NON-NLS-1$//$NON-NLS-2$