PropertyType.DIMENSION_TYPE );
IPropertyType.DIMENSION_TYPE );
	private static String validateUnit( String value )			throws PropertyValueException	{		assert value != null;		int indexOfFirstLetter = indexOfUnitLetter( value );		if ( indexOfFirstLetter == -1 )		{			// No unit.			return DEFAULT_UNIT;		}		String suffix = value.substring( indexOfFirstLetter ).trim( );		if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_IN ) )			return DesignChoiceConstants.UNITS_IN;		else if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_CM ) )			return DesignChoiceConstants.UNITS_CM;		else if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_MM ) )			return DesignChoiceConstants.UNITS_MM;		else if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_PT ) )			return DesignChoiceConstants.UNITS_PT;		else if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_PC ) )			return DesignChoiceConstants.UNITS_PC;		else if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_EM ) )			return DesignChoiceConstants.UNITS_EM;		else if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_EX ) )			return DesignChoiceConstants.UNITS_EX;		else if ( suffix.equalsIgnoreCase( DesignChoiceConstants.UNITS_PX ) )			return DesignChoiceConstants.UNITS_PX;		else if ( suffix				.equalsIgnoreCase( DesignChoiceConstants.UNITS_PERCENTAGE ) )			return DesignChoiceConstants.UNITS_PERCENTAGE;		throw new PropertyValueException( value,				PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE,				PropertyType.DIMENSION_TYPE );	}